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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:30, morganwendel126
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. centurion: a commander in the army of ancient rome. keyword: picture:
Answers: 2
image
Computers and Technology, 23.06.2019 09:30, nsjcbdhcb
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
image
Computers and Technology, 24.06.2019 21:30, erickamiles1797
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
Answers: 2
image
Computers and Technology, 25.06.2019 07:00, kjmesser33
Quick styles allow you to format an entire document quickly? t/f
Answers: 1
You know the right answer?
This program should calculate package shipping costs. The shipping company has the following discoun...

Questions in other subjects: