IT programing Volume of a Cylinder
SleeplessThis programming assignment requires you to write the pseudocode for a program that gets the radius and height of a cylinder from the user, and then calculates the volume of the cylinder by using the following formula:
Volume = radius * radius * height * 3.1416
Once calculated, the volume of the cylinder is displayed to the user.
Please read the problem description carefully so that you know exactly what the program is supposed to do. Understanding the problem is part of the programming process. Follow the program requirements precisely. You may want to ask yourself the following questions about this problem:
- What input does the program need to get from the user?
- How do I use the given input to calculate the volume of the cylinder?
- What information needs to be displayed to the user after the calculations have been completed?
This is your first attempt at writing a program, so remember the following hints as you write your pseudocode:
- Every program needs to have a Main Module.
- Consider breaking down the problem into smaller modules to make the solution easier, and use the Call statement to call those modules when needed.
- Determine what variables will be needed, and use the Declare statement to declare all variables and their data types properly before they are used.
- Once a variable is declared, use its name throughout the program exactly as it is declared.
- Use the Input statement to get any input required from the user.
- Use the Set statement to set values to variables.
- Use the Write statement to display output to the user.
- 12 years ago
- 10
Purchase the answer to view it
- pseudocode_for_cylinder.docx
- what was the monroe doctriine and why was it issued
- 0.35a-0.1a=0.03(5a+4)
- week8
- If the social security administration increased the taxable wage base from $94,200 to $97,500 and the 6.2% tax rate is unchanged.Geraldine earned over $100,000 each of the past two years. What is her increase in SS tax for new year?
- What arguments could you make for the statement that humans are causing extinctions unlike any in the history of the...
- when was the world war started
- If one leg of an isosceles right triangle is 73 cm long, what is the exact length of the hypotenuse?
- Martin Luther King's speech contains other allusions in addition to the one with which he opens his speech. Find an...
- Biology Evolution Help Please
- a river is rising at a rate of 3 inches per hour.if the river rises more than 2 feet,it will...