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 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Write a program that displays the following menu: geometry calculator 1. calculate the area of a circle 2. calculate the area of a rectangle 3. calculate the area of a triangle 4. quit enter your choice (1-4): if the user enters 1, the program should ask for the radius of the circle and then display its area. use the following formula: area = ď€(the square of r) use 3.14159 for ď€ and the radius of the circle for r. if the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. use the following formula: area = length * width if the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. use the following formula: area = base * height * .5 if the user enters 4, the program should end. input validation: display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. note: if the user enters an improper menu choice (1-4), the program prints "the valid choices are 1 through 4. run the program again and select one of those." if the user enters a negative radius, the program prints "the radius can not be less than zero." if the user enters a negative value for height or base, the program prints "only enter positive values for base and height."
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
You know the right answer?
This program should calculate package shipping costs. The shipping company has the following discoun...
Questions
question
Mathematics, 16.04.2020 00:37
question
Mathematics, 16.04.2020 00:38
Questions on the website: 13722360