Question: Problem: Suppose your math professor asks you to create a calculator to determine the volume of a cone based on its height and radius. To

 Problem: Suppose your math professor asks you to create a calculator
to determine the volume of a cone based on its height and

Problem: Suppose your math professor asks you to create a calculator to determine the volume of a cone based on its height and radius. To make it more charming you decide that your program will ask the user's name before asking for the needed data to calculate the volume. You must use the formula shown below where r is the radius and h is the height of the cone. Cone akne The height and the radius must be whole numbers but the volume must a double precision real number with just one decimal digit. Your task: implement in Ctt the algorithm solution shown below. Part A (79 points) Algorithm solution (in pseudocode): To solve this problem your program must perform the following tasks: Unlikeesampleliput height.andradius with 2 different cin cornmands. Declares a variable named name that holds text Declares variables named height and radius that hold whole numbers. Declares a variable named volume that holds double precision real numbers Prompts the user "May I get your full name please?: Reads the value from the keyboard and stores it in name Prompts the user Thanks ". name.,. now enter height and radius of the cone please: " Reads the values from the keyboard and stores them in height and radius respectively Calculates the volume using the formula volume-'4x 3.4159 radius radius x height ounds the volume to the nearest thousandths (3 decimal digits) and reassigns it to volume. Prints a message like the one below: Ok ", name "the cone's volume is" ", volume Note: ensure your tormala does not uwe mixed data types by defining your constants appropriaely Note ensure your formiala does not use mixed da and using the static, cast operator where needed. ta types by defining your constants appropriately Implement this formula

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!