Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In QBasic, design and create a program named \" Final_1.bas \" with the followin

ID: 665919 • Letter: I

Question

In QBasic, design and create a program named "Final_1.bas" with the following requirements.

Have the program display "Welcome to the RCC Geometry Calculator".

The program will allow the user to calculate the area of various geometrical shapes.

The program should ask the user which shape they want to calculate the area of:
(1) Calculate the Area of a Circle
(2) Calculate the Area of a Rectangle

The program should allow the user to enter their choice.

The program should then react to the input given by the user:

If the user entered 1, the program should ask for the radius of the circle, and calculate the area of the circle using the following equation: [ area = 3.14 * r^2 ]. The program should display the calculated area.

If the user entered 2, the program should ask for the length and width of the rectangle, and then pass the provided length and width to a function named calcRectangleArea. The function, calcRectangleArea, should calculate the area of the rectangle using the following equation: [ area = length X width ]. The function MUST return the calculated area and then the program should display the calculated area.

Explanation / Answer

#include #include float area(int); // circle float area(float); // cube int area(int,int); // rectangle void main() { int radius,length,breadth; float side; coutradius; coutside; coutlength>>breadth; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote