Zookal
Zookal

We’d love to hear any feedback or comment from you!

© 2011-2021 Zookal Pty Ltd

View question and answer

From our collection of questions and answers
Engineering · Computer Science
Question details
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 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 <=5 then tax-rate 1% ; 6e relays <=1 l then tax-rate = 3%; 12-= relays <-20 then tax-rate- 5%:21<= relays <-50 then tax-rate = 8%; 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 <iostream> //standard library for i/o #include <string> using namespace std; int main() string user-response = y. while (user_response yI user-response- Y) //The code to get the users input, perform the calculations, and print // the results to the screen should go here. cout<<Would you like to do another calculation (Y or N): <<endl; cin>>user response; return 0
Answer
Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.

Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.