Question: Write a C++ program Cell Phone Service Design an algorithm and then write a C++ program for the algorithm that determines the cost of using

Write a C++ program
 Write a C++ program Cell Phone Service Design an algorithm and
then write a C++ program for the algorithm that determines the cost

Cell Phone Service Design an algorithm and then write a C++ program for the algorithm that determines the cost of using a cell phone service for a customer. This provider calculates the monthly cost of the service as follows. Note: Minutes, texts, and data are the overall amount used by everyone on the account, the data is in the file of Customers.txt. The charge for calls, texts, data, and line on an account will be calculated as follows: - Calls: Up to 100 minutes is $3, up to 1000 minutes is $25 If over 1000, the calls are 2 cents per minute - Texts: Up to 100 texts is S1, up to 1000 texts is $5 If over 1000, texts are 0.25 cents per message (4 texts 1 cent) - Data: Up to 1 gigabyte is $20, up to 2 gigabytes is $30 If over 2 gigabytes, data is $10 per gigabyte -Each line on the account is $6 Your program will open a file called Customers.txt. This file will have one line per customer record The record will list the number of lines, the number of minutes, the number of texts, and the number of gigabytes of data used. The program use the following functions: 1. double calculateCost) is passed the number of lines, the number of calls, the number of texts, and the amount of gigabytes of data used. It should be called once for each customer. This function will call other functions. It will return the cost for the customer 2. double getCallCost() is passed the number of minutes used and calculates the cost based on the prices listed above. This function is called by the calculateCost function. It returns a double representing the how much the customer should be charged for the number of minutes used 3. double get TextCost() is passed the number of messages sent and calculates the cost based on the prices listed above. This function is called by the calculateCost() function. It returns a double representing the how much the customer should be charged for the number of messages sent 4. double getDataCost s passed the number of gigabytes used and calculates the cost based on the prices listed above. This function is called by the calculateCost unction. It returns a double representing the how much the customer should be charged for the number of gigabytes used

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!