SEE Modular Programming - 4 marks

  1. Write a program in QBASIC that asks length, breadth and height of room and calculates its area and volume. Create a user-defined function to calculate area and sub-program to calculate volume. Hint: [A=L x B], [V=L x B x H]. CDC Model Set 2077
  2. Write a program in QBASIC that asks length, breadth of a room and calculate its area and perimeter. Create a user defined function to calculate area and sub program to calculate perimeter. [Hint: [Area=LxB], [p=2(L+B]] SEE 2078 (2022)
  3. D D I D P C END
  4. Write a program in QBASIC that asks radius of a circle to calculate its area and circumference. Create a user-defined function to calculate area and sub-program to calculate circumference. [Hint: A=πr2 C=2πr] SEE 2079 (2023)
  5. Write a program in QBASIC to calculate total surface area of a cylinder using function procedure and volume using sub procedure. [Area=Total surface area=2ℼr(r+h) and volume=ℼr2h] SEE Pre Qualify 2079
  6. Write a program in QBASIC that ask the radius of circle. Write a program to calculate the area and circumference of a circle. Create a user defined function first (r) to calculate area and sub procedure second (r) to calculate circumference of a circle. PABSON Board Exam Set B - 2078 (2022)
  7. Write a program in QBASIC that allows user to enter radius of a circle. Create a user defined function to find area of circle and sub procedure to find volume of a cylinder. Hint: [A=πr2, V=πr2h] PABSON Board Exam Set B - 2078 (2022)
  8. Write a program in QBASIC to input radius of circle and calculate its area using function and circumference using sub procedure. [Area=pie×r2 and Circumference=2pier] SEE Pre-Qualify 2078
  9. Write a program in Q-BASIC that asks length and breadth of a room and calculate its area and perimeter. Create a user-defined FUNCTION to calculate area and SUB program to calculate perimeter. [Hint: A=L×B, P=2(L+B)] GIE Exam Set B - 2079 (2023)