logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Bobby DavroComputer science
(5/5)

600 Answers

Hire Me
expert
Barbara ElseMathematics
(5/5)

858 Answers

Hire Me
expert
Jesse RossesManagement
(5/5)

585 Answers

Hire Me
expert
Darshan MaheshwariEducation
(/5)

699 Answers

Hire Me
Python Programming
(5/5)

write a program to compute the volume of the bottle. Seek user input for h1, h2, h3, r1, and r2.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

General information/requirements/grading rules

1. Adhere to the naming conventions discussed in class for variable names, program names, and

function names

2. For the program name first letter of each word uppercase. For example, StringBasics.py

3. Use meaningful names for variables. Do not just use letters. Eg., use word “payment” instead of just the letter ‘p’ Use “futureValue” instead of FV or fv

4. If there are multiple words in the variable name, use camel case notation Eg., firstName, shippingCost

5. Include proper comments in the code

6. Display output exactly as mentioned against each problem

7. Use def main() function for all programs

8. Indent the lines of code appropriately

 

 

*******************************************************************************************

 

1) Volume.py (33 Points)

The shape of a can is shown in the figure below. It has two cylinders of radius r1 and r2 and heights h1 and h2, joined by a cone section of height h3.

 

 

 

 

write a program to compute the volume of the bottle. Seek user input for h1, h2, h3, r1, and r2.

Expected output

Enter r1(in inches): 8.4 Enter r2(in inches): 4.5 Enter h1(in inches): 5 Enter h2(in inches): 3 Enter h3(in inches): 4

 

Bottom radius: 8.40 Inches Top radius: 4.50 Inches

 

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme