Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c code A wireless company offers customers the following cellular plan: 600 minutes Additional minutes Data up to 2GB Data exceeding 2GB Taxes and
in c code
A wireless company offers customers the following cellular plan: 600 minutes Additional minutes Data up to 2GB Data exceeding 2GB Taxes and surcharges $39.99 $0.40 per min $10 $10 per GB, rounded to the nearest GB ceiling) 5.25% Write a program that prompts the user to enter the number of minutes and GB consumed and calculates (a) the pre-tax monthly bill, c) the tax amount, and (d) the total bill. Sample program execution (user's entries in red): Enter the number of minutes: 700 Enter the data in GB: 2.5 Your monthly charges are as follows. Monthly Plan : $39.99 Additional per minute charges: $40.00 Data charges: $10.00 Additional data charges: $10.00 Pretax total: $99.99 Tax paid : $5.25 Total: $105.24 Test cases: (500, 1), (700, 2.5), (0, 4.2), (0,0)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