subject

Complete the following tasks:
a. design a class named pizza . data fields include a string field for a topping(such as pepperoni) and numeric fields for diameter in inches (such as 12)and price (such as 13.99). include methods to get and set values for each of these fields. create the class diagram and write the pseudocode that definesthe class.
b. design an application that declares two pizza objects and sets and displaystheir values.
c. design an application that declares an array of 10 pizza objects. prompt theuser for data for each pizza , then display all the values.
d. design an application that declares an array of 10 pizza objects. prompt theuser for a topping and diameter for each pizza , and pass each object to amethod that computes the price and returns the complete pizza object to themain program. then display all the pizza values. a 12 − inch pizza is $13.99, a14 − inch pizza is $16.99, and a 15 − inch pizza is $19.99. any other entered size isinvalid and should cause the price to be set to 0.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:30, shelley3135
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, kyleemarie2003
Companies that implement and apply an information system effectively can create
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, teamroper35
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
image
Computers and Technology, 24.06.2019 00:40, iamsecond235p318rq
To maintain clarity and focus lighting might be needed
Answers: 2
You know the right answer?
Complete the following tasks:
a. design a class named pizza . data fields include a string fi...

Questions in other subjects:

Konu
Mathematics, 01.10.2019 02:30
Konu
Mathematics, 01.10.2019 02:30