final exam program

User Generated

ghexrvgz

Programming

Description

please write a c++ program using visual studio. I have attached the homework instructions below with a program that is somewhat similar to the homework we are doing.

Unformatted Attachment Preview

number to its cube. Final Exam Program: This program should calculate package shipping costs. The shipping company has the following discount percentages: Shipping Costs Discount % $300 or less $300.01 to $600 $600.01 to $1000 $1000.01 or more 1.9% 2.6% 2.9% 3.4% Package Types Shipping Costs 1. Video Games: Cost is number of video games * $19.99 per video game. For optional overnight delivery, add $4.99. Optional insurance is 6% of the cost. 2. Genius Phones: Cost is number of genius phones * $799.99 per genius phone. For optional overnight delivery, add $25.00. If a genius phone case is needed, add $24.99 per genius phone. The number of genius phones requiring the genius phone case should be passed to the appropriate method. Optional insurance is 11% of the cost. 3. Hamburgers: Cost is number of hamburgers * $7.99 per hamburger. For optional overnight delivery, add $9.00. If condiments are needed, add $1.79 per hamburger for the condiments. If hamburger buns are to be ordered, an additional charge of $1.89 per hamburger is required. Optional insurance is 3% of the cost . 4. A Package Type of your choice: Please include documentation (comment statements) stating how the costs should be calculated for your package type For each package type, print out the name, address, city, state, and zip code for the customer. In addition, print out the date the package is expected to arrive along with the total cost with how the calculation was done, the discount percentage, the discount amount, and the total cost after the discount is subtracted off. Please make sure to include output for each of the four package types. Your program should use virtual functions including at least one pure virtual function with polymorphism. Your program should have one class for each package type along with a base-class that contains the appropriate data members and methods. An example of sample output for video games could be: Expected Arrival Date: 8-25-2018 Customer: Joe Blow 1234 Main Street Irvine, CA 92618 4 video games ordered: shipping cost is $79.96, overnight delivery is $4.99, no insurance specified Total Cost is $84.95 Discount Percentage is 1.9% for a discount of $1.61 Total Cost after discount is $83.34
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Fina...


Anonymous
Great! 10/10 would recommend using Studypool to help you study.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags