Question
Write a program that displays the total amount (including shipping) a customer owes to an online company. The user enters the total amount due before
Write a program that displays the total amount (including shipping) a customer owes to an online company. The user enters the total amount due before shipping. The amount for shipping is based on the customer's membership which can be Premium or Standard. The shipping charges are the following:
Membership | Amount before shipping | Shipping |
Standard | 0- $1,000 | 88.99 |
Over $1,000 | 49.99 | |
Premium | 0- $500 | 49.99 |
Over $500 | 0 |
The program should use 2 program-defined functions. One to determine the shipping charges for the Premium membership and one for the Standard membership.
NOTE: Input Validation is required.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started