Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) Please write a program to calculate volume of a cylinder (V = rh). Prompt the user to enter values for radius and height.
1) Please write a program to calculate volume of a cylinder (V = rh). Prompt the user to enter values for radius and height. Use 3.14 for . Only two decimal places. Print out the values in the following format The radius of the cylinder is: 8.50 The height of the cylinder is: 2.00 The volume of the cylinder is: 453.73 2) Write a program to calculate the total in sales tax one will pay for a product of a certain price. Prompt the user for price of a product and the sales tax as a percentage. Only two decimal places. Then calculate how much the total sales tax will be and print it out the answer in the following format: For a product whose price is $20 you will pay $1.25 in sales tax.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Here is the answer to the given question 1 Heres a program to calculate the volume of a cylinder in ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started