subject

3. Create a class Polygon, Polygon has a private member int NumSides. Derive from polygon two classes Rectangle (NumSides=4) and Triangle (NumSides = 3). Rectangle has a private member data int Area, Triangle has a private data int Perimeter. From a menu, allow the user to create a mixed linked list of polygon pointers to polygons, Rectangles and Triangles. When the user has finished adding these to the list, display the list. If the user wants to add a rectangle or a triangle you must allow them to enter the length of the sides so the area and perimeter can be computed.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
Nathan wants to create multiple worksheet containing common formatting styles for his team members. which file extension him to save these worksheets? nathan to create multiple worksheets with common styles. he needs to save them with the extension.
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
The best definition of an idiom is a. a word or phrase that describes a noun b. a word or phrase describing a verb c. a phrase containing figurative language in which the word expresses a different idea from its exact meaning d. a phrase that compares two unlike objects or ideas
Answers: 2
You know the right answer?
3. Create a class Polygon, Polygon has a private member int NumSides. Derive from polygon two classe...
Questions
question
Biology, 20.01.2021 05:50
question
Mathematics, 20.01.2021 05:50
question
Geography, 20.01.2021 05:50
question
Mathematics, 20.01.2021 05:50
Questions on the website: 13722361