- The Broken Arrow cellular company has hired you to write a billing program for data usage on their new 4-tier 5G network. The rate schedule, including discounts for certain customers, is below.
Base rate is $12.00 and includes up to 1 gigabyte of data.
Anything over 1 gigabyte is an additional $10.00.
Normal customers get no discount.
Students get a 20% discount on data over 1 gigabyte.
Retirees get a 10% discount on data over 1 gigabyte.
- Input the following. DO NOT change the order of input or the formats:
A six character customer number: xxxxxx
A single character customer status of 'N'/'n' (normal), 'S'/'s' (student), 'R'/'r' (retired). (Accept upper or lower case.)
Number of gigabytes used to 2 decimal places.
- Based on the input, calculate the amount of a customer's bill and output the data as follows:
*Output the following data in the format shown.
Customer number: xxxxxx
Customer status: x
Discount (percent): xx.xx
Gigabytes used: x.xx