Question: Sample outline In this assignment you will implement a program called call_cost_calculator.cpp that calculates the net cost of a call (net_cost), the tax on a

 Sample outline In this assignment you will implement a program called

Sample outline

"call_cost_calculator.cpp" that calculates the net cost of a call (net_cost), the tax

In this assignment you will implement a program called "call_cost_calculator.cpp" that calculates the net cost of a call (net_cost), the tax on a call (call_tax) and the total cost of the call (total_cost). The program should accept a cell phone number (cell_num), the number of relay stations (relays), and the length in minutes of the call (call_length) from a user. Please consider the following 1. The tax rate (in percent) on a call (call_rate) is simply based on the number of relay stations (relays) used to make the call (150 then tax_rate=12%). 2. The net cost of a call is calculated by the following formula: net_cost = (relays/50.0 * 0.40 * call_length). 3. The tax on a call is calculated by the following formula: call_tax = net_cost* tax_rate/100. (Drop /100 if you converted the rate from a percentage.) 4. The total cost of a call (rounded to the nearest hundredth) is calculated by the following formula: total_cost = net_cost + call_tax. All tax and cost calculations should be rounded to the nearest hundredths. Use the following format information to print the variables: Field Format Cell Phone XXXXXXXXX Number of Relay Stations XXXXXX Minutes Used XXXXXX Net Cost XXXXXXX.XX Call Tax XXXXX.XX Total Cost of Call XXXXXXX.XX #include //standard library for i/o #include // always include this when you use the string class using namespace std; int main string user_response = "/"; while (user_response == "y" || user_response == "Y") //The code to get the user's input, perform the calculations, and print // the results to the screen should go here. cout>user_response; return 0

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!