Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( C G D & rccd.instructure.com S SOAP2DAY (71) Robin Thicke -... Programming Ass Relaxing. Watch Scooby-Doo. Programming Assignment 2 Objective: Demonstrate the use of

image text in transcribed
( C G D & rccd.instructure.com S SOAP2DAY (71) Robin Thicke -... Programming Ass Relaxing. Watch Scooby-Doo. Programming Assignment 2 Objective: Demonstrate the use of decisions to calculate the amount billed based on user inputs. Instructions: 1. The Dangling Dongle cellular company has hired you to write a billing program for data usage on their n network. The rate schedule, including discounts for certain customers, is below. . Base rate is $12.00 and includes up to 1 gigabyte of data. . If they use more than 1 gigabyte of data they are charged $10.00 more. . There are three customer types and discounts: . Normal customers get no discount. als . Retirees get a 10% discount . Students get a 20% discount. 2. Input the following data items from the user. DO NOT change the order of input or the formats: . A 6 character customer ID. . A single character customer status of 'N' (normal), 'R' (retiree) or 'S' (student). . The number of gigabytes used to 2 decimal places. 3. Based on the input, calculate the amount of a customer's bill and output the data as shown below. Challenge: Add a simple loop to continue reading user input and keep a running total of all the custom ral amounts. When the user enters a customer ID of "000000", then exit the loop and display the total am Assignment 4a (whatifx.cpp) shows how this is done. Sample Output: - H 21 29

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions