Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume the cost of an international call from Houston to Mexico is calculated as follows: Connection fee = $1.99, and then $2.00 for the first

Assume the cost of an international call from Houston to Mexico is calculated as follows: Connection fee = $1.99, and then $2.00 for the first minute, and $0.45 for each additional minuteĀ 

Write an interactive C++ program that reads in the number of minutes a call lasted. The program should calculate using the information above the total cost for the call. The program should print the number of minutes the call lasted and the total cost for the call on separate output lines. Print all monetary amounts to two decimal places. Declare the connection fee as a constant variable with the value of 1.99. (Note: You can assume all calls are rounded up to the next minutes so I would be the shortest call time entered)


2. Write an interactive C++ program that will read in the name of an item purchased at Walmart (use the getline function). The program should also read in the cost of the item. The program should print the name of the item and the total cost for the item with sales tax. The sales tax percent is 8.25%. Declare the sales tax as a constant variable.



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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

What are the 5 Cs of marketing channel structure?

Answered: 1 week ago