Computers and Technology
Computers and Technology, 21.04.2020 19:00, AM28

Use the last assignment with its Ticket Class and three subclasses as the basis for this assignment. If you didn't do it, or it wasn't perfect and I didn't already correct it in grading, ask me and I will give you a working copy if you need one after the grade for assignment 13 is complete. Part 1: Polymorphism of Classes (50 points) Make a copy of the last assignment and make the following changes: Your system is going to have to have an array of the different tickets. They are going to be printed and processed in order. This means you have to use polymorphism to do this because they are different types of tickets. Make sure Ticket is now abstract. There are no general tickets. They must all be of one of the subclass types. Make an abstract method called printTicket() in the base Ticket class. Make a method called printTicket() in each of the subclasses that prints out the tag, make, model, color, and charge information along with a message for what kind of ticket it is. In the class testing the classes you createdmake an array of tickets including at least one of the three types of tickets (expired, handicapped, and fire lane). Then use a loop to process the whole array and call printTicket() to polymorphically print them all out.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:30, jor66
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
image
Computers and Technology, 22.06.2019 07:50, OnlyaBurden
In this lab, you complete a prewritten c++ program for a carpenter who creates personalized house signs. the program is supposed to compute the price of any sign a customer orders, based on the following facts: the charge for all signs is a minimum of $35.00. the first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character. if the sign is made of oak, add $20.00. no charge is added for pine. black or white characters are included in the minimum charge; there is an additional $15 charge for gold-leaf lettering. instructions ensure the file named housesign. cppis open in the code editor. you need to declare variables for the following, and initialize them where specified: a variable for the cost of the sign initialized to 0.00 (charge). a variable for the number of characters initialized to 8 (numchars). a variable for the color of the characters initialized to "gold" (color). a variable for the wood type initialized to "oak" (woodtype). write the rest of the program using assignment statements and ifstatements as appropriate. the output statements are written for you. execute the program by clicking the run button. your output should be: the charge for this sign is $82. this is the code, // housesign. cpp - this program calculates prices for custom made signs. #include #include using namespace std; int main() { // this is the work done in the housekeeping() function // declare and initialize variables here // charge for this sign // color of characters in sign // number of characters in sign // type of wood // this is the work done in the detailloop() function // write assignment and if statements here // this is the work done in the endofjob() function // output charge for this sign cout < < "the charge for this sign is $" < < charge < < endl; return(0); }
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, kreshnikolloma
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, amy7233
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
Do you know the correct answer?
Use the last assignment with its Ticket Class and three subclasses as the basis for this assignment....

Questions in other subjects:

Konu
Mathematics, 29.03.2021 20:00
Konu
English, 29.03.2021 20:00
Konu
Mathematics, 29.03.2021 20:00