Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help with this in programming c++ i started with a skeleton In this assignment you will implement a program called callcost calculator.cpp that

i need help with this in programming c++
i started with a skeleton
image text in transcribed
image text in transcribed
In this assignment you will implement a program called "callcost 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 cal (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 (0e relays 50 then tur-rate = 12%) 2) The net cost ofa call is calculated by the following formula: net cost ( relays 50.00.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 Mr. 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 Number of Relay Station Minutes Used Net Cost Call Tax Total Cost of Call XXxxXX Handing in your program Electronically submit "call cost calculator.cpp" in the Assignments area of Blackboard before the due date and time. Remember, complete the assignment not matter if it is late. It is very important that you do all assignments to master the C++ programming language. #include //standard library for i/o #include using namespace std; int main() string user-response = "y". while (user_response "y"I 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

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

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

Determine miller indices of plane X z 2/3 90% a/3

Answered: 1 week ago

Question

2. Identify the purpose of your speech

Answered: 1 week ago