Answered step by step
Verified Expert Solution
Link Copied!

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

1. Walk slowly; then be as still as possible.

Answered: 1 week ago

Question

2. Name and explain the three properties of probability.

Answered: 1 week ago