subject

For this simulation, you will need a scoop class, a carton class and an icecreamshoppe class in addition to your application class (these classes described in the below uml diagrams). your ice cream shoppe should create two scoops with radii entered by the user, create a carton with radius and height entered by the user. then, you should ask the user if they would like ice cream. if they would, you should ask how many of the each size scoop and subtract the appropriate amount from the carton. if the requested amount ever exceeds the amount remaining in the carton, you should open a new carton to complete the order. continue asking the user until they indicate they are done. at the end, you should print how many cartons were used. remember that the volume of a sphere is (4/3)πr 3 and the volume of a cylinder is πr 2h. you can use math. pi where you want the value of π.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut-off on an hev are both colored orange.
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Auniform resource locator (url) is a formatted string of text that web browsers, email applications, and other software programs use to identify a particular resource on the internet. true false
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
question
Computers and Technology, 24.06.2019 13:30
Type the correct answer in the box. spell all words correctly. what is the default margin width on all four sides of a document? by default, the document has a margin on all four sides.
Answers: 1
You know the right answer?
For this simulation, you will need a scoop class, a carton class and an icecreamshoppe class in addi...
Questions
question
Mathematics, 18.02.2020 23:28
question
Mathematics, 18.02.2020 23:28
question
Mathematics, 18.02.2020 23:28
Questions on the website: 13722361