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 13:30
Jane’s team is using the v-shaped model for their project. during the high-level design phase of the project, testers perform integration testing. what is the purpose of an integration test plan in the v-model of development? a. checks if the team has gathered all the requirements b. checks how the product interacts with external systems c. checks the flow of data in internal modules d. checks how the product works from the client side
Answers: 1
question
Computers and Technology, 22.06.2019 14:20
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
You know the right answer?
This program should calculate package shipping costs. The shipping company has the following discoun...
Questions
question
Mathematics, 14.04.2021 21:00
question
Mathematics, 14.04.2021 21:00
question
Mathematics, 14.04.2021 21:00
question
Mathematics, 14.04.2021 21:00
Questions on the website: 13722361