1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
aksik [14]
2 years ago
13

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

Computers and Technology
1 answer:
Levart [38]2 years ago
5 0

Answer:all of it should be java

Explanation: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

You might be interested in
Write Album's PrintSongsShorterThan() to print all the songs from the album shorter than the value of the parameter songDuration
lidiya [134]

Answer:

kindly check explainations for code

Explanation:

Check below for program code.

#include <iostream>

#include <string>

#include <vector>

using namespace std;

class Song

{

public:

void SetNameAndDuration(string songName, int songDuration)

{

name = songName;

duration = songDuration;

}

void PrintSong() const

{

cout << name << " - " << duration << endl;

}

string GetName() const { return name; }

int GetDuration() const { return duration; }

private:

string name;

int duration;

};

class Album

{

public:

void SetName(string albumName) { name = albumName; }

void InputSongs();

void PrintName() const { cout << name << endl; }

void PrintSongsShorterThan(int songDuration) const;

private:

string name;

vector<Song> albumSongs;

};

void Album::InputSongs()

{

Song currSong;

string currName;

int currDuration;

cin >> currName;

while (currName != "quit")

{

cin >> currDuration;

currSong.SetNameAndDuration(currName, currDuration);

albumSongs.push_back(currSong);

cin >> currName;

}

}

void Album::PrintSongsShorterThan(int songDuration) const

{

unsigned int i;

Song currSong;

cout << "Songs shorter than " << songDuration << " seconds:" << endl;

/* Your code goes here */

for(int i=0; i<albumSongs.size(); i++){

currSong = albumSongs.at(i);

if(currSong.GetDuration()<songDuration){

currSong.PrintSong();

}

}

}

int main()

{

Album musicAlbum;

string albumName;

getline(cin, albumName);

musicAlbum.SetName(albumName);

musicAlbum.InputSongs();

musicAlbum.PrintName();

musicAlbum.PrintSongsShorterThan(210);

return 0;

}

4 0
3 years ago
One of the most toxic components of a computer is the
Cloud [144]
The most common is usually lead found in the glass or some circuits in rare cases
6 0
3 years ago
Czy FALL GUYS będzie działało szybko na i5 GH8? Na ilu FPS?
Lesechka [4]

Answer:español por favor asi te responderé y gracias por los 10 puntos chaoo

Explanation:

6 0
3 years ago
What are the advantages of using the internet as theinfrastructure for electronic commerce and electronicbusiness?
Mrac [35]

Answer and Explanation:

E-commerce and e-business is a major business of the present time using the internet. It is basically defined as the online selling of goods or making any business online. Internet is the basic requirement for the e-commerce or e-business as

  • it helps in providing the internet connectivity so that the e-business can be displayed online and users can buy goods or interact with seller regarding the business.
  • Due to internet service users get to know about the online business and thus the business attains economic growth and benefit.

6 0
3 years ago
How many answers do you need to be able to write messages on here??
Kipish [7]

1,000

Hope this helps!



~Courtney

3 0
2 years ago
Other questions:
  • Write a program that accepts as input the mass, in grams, and density, in grams per cubic centimeters, and outputs the volume of
    14·1 answer
  • A vehicle travels 2345 m in 315 toward the evening sun. What is its velocity
    13·1 answer
  • How can you clean out the scales in an electric iron without taking the iron apart? A. By rinsing the tank and holes with a wate
    12·2 answers
  • When you are working on an unsaved document on a PC, where is the document temporarily saved?
    5·1 answer
  • Jenis-jenis grafik bagi imej​
    10·1 answer
  • ​if a primary key combines two or more fields, then it is called a _____.
    14·1 answer
  • Which career path includes the work duties of hiring and managing farm laborers?
    6·2 answers
  • What type of undocumented yet benign hidden feature launches after a special set of commands, key combinations, or mouse clicks?
    15·1 answer
  • When can screentips be useful? when finding a tab when looking for a command when pinning the ribbon when using a command.
    8·1 answer
  • What technology does kroger’s edge technology and amazon’s just walk out technology leverage?.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!