subject

Instructions: Write a program that calculates the amount of ingredients needed for various flavors of cheesecake. CheeseCakeV1 folder. CheeseCakeTesterV1 folder. Create a 07.02 Assignment project in the Mod07 Assignments folder.
Carefully read the instructions before you attempt the assignment.
You will benefit from writing a pseudocode algorithm and a class diagram before you actually start writing code.
Use the CheeseCakeV1.java and CheeseCakeTesterV1.java files provided.
The program should be written in OOP format. An ArrayList filled with objects of the CheeseCake class is needed as part of the design.
Initialize all private instance variables in the provided constructor shown below.
Your program should include the following methods:
public void calcTotalServings()
public void calcCreamCheese()
public void calcSugar()
public void calcVanila()
Values to be used in the calculations can be reviewed in the Background Information section below.
Add records for at least six cheesecakes to the ArrayList. A sample set of values could be: Blueberry, 4. This represents 4 blueberry flavored cheesecakes.
Print the results in a user-friendly format (see expected output).
Background Information:
Cheesecakes are a very versatile dessert! Making a "base batter" affords you the opportunity to make a variety of cake "flavors" by either changing toppings or mixing the extra ingredient in with the batter. Some unusual combinations are quite tasty.
A basic 9-inch cheesecake serves 16 people and has the following ingredients:
32 ounces of cream cheese
1/3 cup of sugar
1 teaspoon of Vanilla flavoring
Before you try to write any calculation statements, make sure you can reproduce with a calculator the results shown in the expected output.
Expected Output: When your program runs correctly, you should see output similar to the following screenshot:
All of it should be in java


Instructions: Write a program that calculates the amount of ingredients needed for various flavors

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:50, Cnolteb5663
Is one of the most injurious events that can happen to a person in a crash.
Answers: 1
image
Computers and Technology, 22.06.2019 02:10, breanastone14
3. (5 points) describe what would be printed by the code below or what error would occur. const char* cstr = "0123456"; const char* ptr = & cstr[4]; cout < < ptr[-1] < < ptr < < endl; 1 4. (5 points) theseus has been trapped in a maze with a minotaur, which is trying to capture him. each round, theseus and the minotaur move through the maze; theseus towards the exit, and the minotaur towards theseus. theseus can move in any of the four cardinal directions, or he can wait for a round to see how the minotaur moves. write code that creates a data type to represent the possible moves that theseus could make.
Answers: 3
image
Computers and Technology, 22.06.2019 22:00, bbysl15
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
image
Computers and Technology, 24.06.2019 04:30, juliemiddleton05
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
Answers: 1
You know the right answer?
Instructions: Write a program that calculates the amount of ingredients needed for various flavors o...

Questions in other subjects:

Konu
Mathematics, 03.02.2020 09:50
Konu
Mathematics, 03.02.2020 09:50
Konu
Mathematics, 03.02.2020 09:50
Konu
History, 03.02.2020 09:50