SEQUENTIAL
STRUCTURE
SET
1
1.
Write
a program to calculate the volume of a cylinder using FUNCTION….END
FUNCTION.[SEE MODEL 2065], [SLC 2071 S]
2.
Using
FUNCTION….END FUNCTION, Write a program to calculate distance travelled by a
body. (Hint: s=ut+ (1/2) at2) [SLC 2065R]
3.
Write
a program using SUB…END SUB to get radius of circle and then print its area.
[SLC 2065 S], [SLC 2071 R] [SEE 2074]
4.
Write
a program using FUNCTION module to calculate and print the volume of a box.
[SLC 2066 R]
5.
Write
a program using FUNCTION…END FUNCTION to find the average of any two numbers
given by the user. [SLC 2066 S]
6.
Using
FUNCTION…END FUNCTION Write a program to calculate the average of three
numbers. [SLC 2067 R], [SLC 2070 S]
7.
Write
a program using SUB…END SUB to get radius of a circle and then print its
circumference. [SLC 2067 S]
8.
Write
a program to calculate the area of four walls using SUB…END SUB. [SLC 2068 R],
[SEE 2073]
9.
Write a program in QBASIC to find the total surface area of a
box using FUNCTION…END FUNCTION. [SLC 2068 S]
10.
Write a program to calculate and print the simple interest
using FUNCTION…END FUNCTION. [SLC 2069 S]
11.
Write a program using FUNCTION…END FUNCTION to get
temperature in celsius from the user and then print the temperature in
fahrenheit.(hint:
F=9C/5+32) [SLC 2070 R]
12.
Write a program using FUNCTION…END FUNCTION, to find the area
of triangle. [SEE 2072]
SET
2
1.
Using
FUNCTION…END FUNTION, write a program to calculate the sum and product of three
numbers.
2.
Write
a program in QBASIC to find square of a given number using FUNCTION…..END
FUNCTION.
3.
Write
a program in QBASIC to find cube root of a given number using FUNCTION…..END
FUNCTION.
4.
Write
a program using SUB……END SUB to find the area of rectangle. [A=L*B]
5.
Write
a program using SUB……END SUB to find the perimeter of square. [P=4L]
6.
Write
a program in QBASIC to find the area of four wall of a room using
FUNCTION…..END FUNCTION.
7.
Write
a program to convert USD(dollar) into NC (NEPALI currency) using DECLARE
FUNCTION.
8.
Using
Function…… End Function, write a program to calculate area and volume of
hemisphere. [ volume = 2/3 πR3] .[
A= 2 * 3.14 * R ^ 2
9.
Write
a sub program cost(l,b,h,c) to find the cost of painting the four walls of a
room.
10.
Write
a program to input cost price and selling price and calculate profit percentage
using sub procedure. [P= ((SP-CP)/CP*100)]
SET
3
1.
Write a program using SUB…..END SUB to find the
sum, difference, product and average of any two numbers given by the user.
2.
Write
a program in QBASIC to find cube of a given number using SUB…..END SUB.
3.
Write
a program in QBASIC to find square root of a given number using SUB…..END SUB.
4.
Write
a program using FUNCTION……END FUNCTION to find the perimeter of rectangle.
[P=2(L+B)]
5.
Write
a program using FUNCTION……END FUNCTION to find the area of square. [A=L2]
6.
Write
a function procedure to read the side of a cube. Calculate its volume and
surface area. (Hint: vol=side3 and sa=6 side2]
7.
Write
a program to input Fahrenheit and convert it into Celsius using SUB - END
SUB. Hint: C = (5/9)×(F-32)
8.
Write
a program to convert NC (NEPALI currency) into IC (Indian Currency) using
DECLARE SUB.
9.
Write
a program to calculate the area of triangle by using SUB…..END SUB. [Hints:
Area=]
10.
Write
a function procedure to calculate volume and area of sphere.[ A= 4 * 3.14 * R ^ 2 ,
V = (4 / 3) * 3.14 * R ^ 3]
***