Elements of programming

Write a QBASIC program that calculates the area of a circle, a rectangle and a triangle. The program should allow the user to select the shape (C or c for circle, R or r for Rectangle, T or t for Triangle) whose area he or she wants calculated. It should then accept the dimensions of the shape, and calculate and print the area . The table below details the formula and dimensions to use for each of the shapes.

  1. 👍 0
  2. 👎 0
  3. 👁 313
  1. area of a circle

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. algebra 1

    Evan is making a table that will be created in the shape of the figure below. The table top is a triangle attached to a rectangle. To purchase the right amount of paint, he needs to know the area of the table top. He can only

  2. Programming

    Write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five day week and the hours worked in a 252 day work year. The

  3. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert

  4. Math- HELP

    There is a triangle inside of a circle. I have to find area of the shaded region which is the circle. So i would have to substract the area of the triangle from the area of the circle. the radius of the circle is 3 inches. I found

  1. Math

    The ratio of the perimeter of triangle PQR to the perimeter of rectangle ABCD is 5 : 9. All in centimeters Triangle (sides) PQ: (x-3) PR: (3x-5) QR: (4x+3) Rectangle (sides) AB: (2x+2) BC: (4x - 1/2) [AB is longer than BC] a.

  2. gtuc

    1. WRITE A PROGRAM TO CALCULATRE THE AREA OF A RECTANGLE OF LENGTH =5 CM AND BREADTH=8CM. 2. CALCULATE THE PRICE OF AN ITEM COSTING 100 GHANA CEDIS AFTER A DISCOUNT OF 10% IS APPLIED TO IT. 3. WRITE A PROGRAM TO CALCULATE THE

  3. geometry

    The perimeter of a triangle, its area, and the radius of the circle inscribed in the triangle are related in an interesting way. Prove that the radius of the circle times the perimeter of the triangle equals twice the area of the

  4. Programming

    Here is the question that I need help to write the code for the following program in Visual Basic 2010. I am trying to write the code but it has a run time error. If your could helps me to write the code it would be greatly

  1. programming

    write a program that asks the user to enter an objects mass, and then calculates and displays its weight.

  2. solid mensuration

    A circle has an area equal to 25 pi sq.cm. Its diameter AB coincides with one of the sides of triangle ACB in which the vertex C lies on the circle. If the triangle has an area equal to 11 sq.cm, find its perimeter. Please include

  3. geometry

    The height of triangle ACE is 12 and base AE=20. A rectangle is inscribed in triangle ACE as shown in the diagram a) express the rectangle's area as a function of x and y b)Use the fact that triangle ACE is similar to BCD to write

  4. Polyhedren Question, pls help asap!!!!!

    ok, i really don't know this one and i cant post the pic of the triangle, so im gonna go to extremes here if u want to find the pic. I think it is a triangular prism though... 1. What is the shape of the bases for the following

You can view more similar questions or ask a new question.