Important MS Small Basic Programs for Class 6

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
  • 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)
Program 2 MS Small Basic Programs for Class 6
MS Small Basic Programs for Class 6
  • 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)
Pro3 MS Small Basic Programs
Pro3
  • 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)
Pro 4 MS Small Basic
Pro4 MS Small Basic Programs
  • 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")
pro5 small basic programs
Pro5 MS Small Basic Programs

Follow these links for earlier chapters:

Chapter 1 The computer system

Chapter 2 Formatting in Excel

Chapter 3 Advanced Features of MS Excel

Chapter 4 Paint 3D

2 thoughts on “Important MS Small Basic Programs for Class 6”

  1. Aaradhya Jahagirdar

    Thank you sir. I will try my best in Annual Exam

Comment Your Views

%d bloggers like this: