Question: 1.18 LAB: Input and formatted output: Car info Write a program that reads three integers indicating car data (tank size, mpg city. mpg highway), and
1.18 LAB: Input and formatted output: Car info Write a program that reads three integers indicating car data (tank size, mpg city. mpg highway), and outputs sentences about that car if the input is 15.2835, the output is This car gets 28 mipg in the city and 35 mpg on the highway. It has a 15 gallon tank. As in all labs uniess otherwise specified, end with a new line Q) 10 main.cpp Load default template -include siostream using namespoce std; Int main() cout $ "This car gets 28mpg in the city and 35mpg on the highway sendl; It has a 25 gallon tank" s3 endl: I return o; 33 When done developing your program, press the Submit for grading button below This will submit your progam for auto-grading
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
