subject

This program should calculate package shipping costs. The shipping company has the following discount percentages:
Shipping Costs Discount %
$500 or less 1.9%
$500.01 to $900 2.8%
$900.01 to $1200 3.2%
$1200.01 or more 3.75%
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 5% of the cost.
2. Brain Phones: Cost is number of brain phones * $899.99 per brain phone. For optional overnight delivery,
add $35.00. If a brain phone case is needed, add $25.99 per brain phone. The number of brain phones
requiring the brain phone case should be passed to the appropriate method. Optional insurance is 12% of the
cost.
3. Hot Dogs: Cost is number of hot dogs * $5.99 per hot dog. For optional overnight delivery, add $7.00. If
condiments are needed, add $2.49 per hot dog for the condiments. If hot dog buns are to be ordered, an
additional charge of $2.29 per hot dog is required. Optional insurance is 4% 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:
Customer: Joe Blow Expected Arrival Date: 9-25-2021
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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
The initial tableau of a linear programming problem is given. use the simplex method to solve it. x 1 x 2 x 3 s 1 s 2 z 1 2 4 1 0 0 8 3 4 1 0 1 0 10 minus3 minus12 1 0 0 1 0 the maximum is nothing when x 1equals nothing, x 2equals nothing, x 3equals nothing, s 1equals3, and s 2equals0. (be sure to simplify to lowest terms if necessary.)
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
You know the right answer?
This program should calculate package shipping costs. The shipping company has the following discoun...
Questions
question
Chemistry, 28.06.2019 15:30
Questions on the website: 13722367