Question: coding c++ visual studio community2022 Open a new project in Visual Studio Community and name it in the form of: Last name_CourseSection_Assignment2. Write a program
Open a new project in Visual Studio Community and name it in the form of: Last name_CourseSection_Assignment2. Write a program in Ct+ that calculates the area or the volume of a cylinder depending on the option entered by the user. The program must give the user a chance to enter the Radius of the cylinder, and then ask them to enter ' A ' for area or ' V ' for volume. Depending on the input, the program must calculate the required quantity and output result as The volume of the cylinder with radius is is , with correct units displayed along with the magnitudes. area of the cylinder with radius Use if-else structure to write this program. Note: You will need to define variables of appropriate type to store the radius, area and volume. Rather than naming your variables a,b,c, try to name them as radius, area, volume. Your output must contain 2 digits after the decimal point (use relevant manipulator). You may also want to specify the units in which the user must enter the radius, so that the answer can be correctly calculated. Use descriptive prompts in cout statements. Look up formula for area and volume of cylinder online if you need help with that
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
