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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:40
If you arrive at the same time as another user straight across from you yield if a. they flash your headlights at you b. you can’t see their turn signals c. you’re going street and they’re running d. you’re turning they’re going straight plz
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarly if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
You know the right answer?
Complete the following tasks:
a. design a class named pizza . data fields include a string fi...
Questions
question
Mathematics, 05.05.2020 18:13
question
Mathematics, 05.05.2020 18:13
Questions on the website: 13722367