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.
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