Computer Science, asked by aayushk77, 8 months ago

Write QBASIC programs:
a) To input marks in 5 subjects and display sum & percentage
b) To find circumference of a circle
c) To read and display information (name, post, basic salary, join date, no.) of staff in tabular form.

Answers

Answered by mehakbhatia45
3

CLS

Input 'Enter you name';n$

Print 'The name is';n$

End

CLS

Input " Enter the name ";N$

Input " Enter the city";C$

Input " Enter the country";CO$

Input " Enter the age";A

Print " The name is ";N$

Print " The city is ";C$

Print " The country is ";CO$

Print " The age is ";A

End

Hope it's helpful dear.....

Answered by mohit921
1

Answer:

1)Write a program to enter your name and print it .

CLS

Input 'Enter you name';n$

Print 'The name is';n$

End

2)Write a program to enter your name, city, country, age and print them.

CLS

Input " Enter the name ";N$

Input " Enter the city";C$

Input " Enter the country";CO$

Input " Enter the age";A

Print " The name is ";N$

Print " The city is ";C$

Print " The country is ";CO$

Print " The age is ";A

End

3)Write a program to find the area of rectangle.

Cls

Input " enter the length " ;l

Input " enter the breadth " ;b

let A = l*b

Print" the area of rectangle=" ;a

End

4)Write a program to find the area of the triangle.

Cls

Input " enter the base" ;b

Input " enter the height" ;h

let T = 1/2*b*h

Print" The area of triangle=" ;T

End

5)Write a program to find the area of the circle.

Cls

Input" Enter the radius " ;R

Let C=22/7*R^2

Print " The area of circle =" ;C

End

6)Write a program to find the circumference of the circle.

Cls

Input" Enter the radius " ;R

Let Circumference=22/7*R*2

Print " The area of circle =" ;Circumference

End

7)Write a program to find the area of the square.

Cls

Input" Enter the number" ;n

Let square= n^2

Print" The area of square=" ;Square

End

8)Write a program to find the area of the square and cube.

Cls

Input" Enter the number" ;n

Let square= n^2

Let Cube = n^3

Print" The area of square=" ;Square

Print" The area of cube=" ; Cube

End

9)Write a program to find the volume of the box.

Cls

Input " enter the length " ;l

Input " enter the breadth " ;b

Input " enter the height " ;h

Let Volume= l*b*h

Print" The volume of box =" ;Volume

End

10)Write a program to convert the weight from kilogram to pounds.

CLS

Input"Enter the weight in kilogram";K

Let P=K*2.2

Print "The pound is ";P

End

Similar questions