This article – Important MS Small Basic Programs for Class 6 provides programs in MS Small basic. Here we go!
Important MS Small Basic Programs for Class 6
- Ask the user to enter the name and age details and print them.
TextWindow.Write("Enter your name:")
nm=TextWindow.Read()
TextWindow.Write("Enter you age:")
age=TextWindow.ReadNumber()
TextWindow.WriteLine("Welcome "+ nm)
TextWindow.WriteLine("Your age:"+age)
Observe the screen shot attached with output:
![MS Small Basic Programs for Class 6 MS Small Basic Programs for Class 6](https://i0.wp.com/www.tutorialaicsip.com/wp-content/uploads/2021/03/MS-Small-Basic-Programs-for-Class-6.png?resize=634%2C409&ssl=1)
- Ask user to collect the information from the student and display the total marks and compute percentage.
TextWindow.Write("Enter the roll no. of student:")
rn=TextWindow.ReadNumber()
TextWindow.Write("Enter the name of student:")
rn=TextWindow.Read()
TextWindow.Write("Enter the Marks of English:")
eng=TextWindow.ReadNumber()
TextWindow.Write("Enter the Marks of Hindi:")
hin=TextWindow.ReadNumber()
TextWindow.Write("Enter the Marks of Maths:")
mat=TextWindow.ReadNumber()
TextWindow.Write("Enter the Marks of Science:")
sci=TextWindow.ReadNumber()
TextWindow.Write("Enter the Marks of Social Science:")
ss=TextWindow.ReadNumber()
tot=eng+hin+mat+sci+ss
TextWindow.WriteLine("Total Marks:" + tot)
per=tot/5
TextWindow.WriteLine("Percentage:" +per)
![Important MS Small Basic Programs for Class 6 1 Program 2 MS Small Basic Programs for Class 6](https://i0.wp.com/www.tutorialaicsip.com/wp-content/uploads/2021/03/Small-Basic-programs-2.png?resize=483%2C530&ssl=1)
- Write a program to perform basic arithmetic operations in small basic using 2 numbers.
TextWindow.Write("Enter the roll no. of student:")
n1=TextWindow.ReadNumber()
TextWindow.Write("Enter the roll no. of student:")
n2=TextWindow.ReadNumber()
ad = n1+n2
su = n1-n2
mu = n1*n2
di = n1/n2
TextWindow.Writeline("Addition:"+ad)
TextWindow.Writeline("Subtraction:"+su)
TextWindow.Writeline("Multiplication:"+mu)
TextWindow.Writeline("Div:"+di)
![Important MS Small Basic Programs for Class 6 2 Pro3 MS Small Basic Programs](https://i0.wp.com/www.tutorialaicsip.com/wp-content/uploads/2021/03/Pro3-MS-Small-Basic-Programs.png?resize=434%2C529&ssl=1)
- Write a program to compute simple interest.
TextWindow.Write("Enter Principal Amount:")
p=TextWindow.ReadNumber()
TextWindow.Write("Enter rate of interest:")
r=TextWindow.ReadNumber()
TextWindow.Write("Enter rate of interest:")
t=TextWindow.ReadNumber()
si=p*r*n/100
TextWindow.Write("Simple Interest is:"+si)
![Important MS Small Basic Programs for Class 6 3 Important MS Small Basic Programs for Class 6](https://i0.wp.com/www.tutorialaicsip.com/wp-content/uploads/2021/03/Pro-4-MS-Small-Basic.png?resize=551%2C530&ssl=1)
- Write a small basic program to compute the area of a circle.
TextWindow.Write("Enter Principal Amount:")
r=TextWindow.ReadNumber()
pie=3.14
area = pierr
TextWindow.Write("Area of circle")
![Important MS Small Basic Programs for Class 6 4 Important MS Small Basic Programs for Class 6](https://i0.wp.com/www.tutorialaicsip.com/wp-content/uploads/2021/03/pro5-small-basic-programs.png?resize=572%2C340&ssl=1)
Follow these links for earlier chapters:
Thank you sir. I will try my best in Annual Exam
Best of Luck Aaradhya