Answered step by step
Verified Expert Solution
Question
1 Approved Answer
If the cost of one type of phone service is $7.45 plus 6.9 cents for each unit used over 56 units, write enough C++ code
If the cost of one type of phone service is $7.45 plus 6.9 cents for each unit used over 56 units, write enough C++ code to display the correct charge for phone service if the variable UNITS contains the units used. No functions (including the main() function) or comments are necessary and any variables that you use will be assumed to be of type double. You may assume that UNITS will contain a non-negative int after input.
// assume the following lines have executed
int UNITS;
cin >> UNITS;
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