Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help with this in c++ a skeleton of the code is below: In this assignment you will implement a program called callcost calculator.cpp

i need help with this in c++
a skeleton of the code is below:
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) ). 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 Stations 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" II 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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions