logo Use SA10RAM to get 10%* Discount.
Order Now logo

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

expert
Roshan NehraPhilosophy
(5/5)

522 Answers

Hire Me
expert
Lance BlaserComputer science
(5/5)

616 Answers

Hire Me
expert
Drake WeberPhilosophy
(5/5)

801 Answers

Hire Me
expert
Michele PerezPhilosophy
(4/5)

532 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

Get Free Quote!

314 Experts Online