Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started