Question: Goal: Use cin to capture multiple values.Assignment: CodeGrade Air ( CGA ) is developing a program that will calculate the amount of fuel required for
Goal: Use cin to capture multiple values.Assignment: CodeGrade Air CGA is developing a program that will calculate the amount of fuel required for a round trip based on the distance traveled in miles. The user will input the distance and the miles per gallon that the aircraft consumes, and the program will calculate the fuel cost. To perform this operation, please write the statements for the following operations.Declare two variables called distance and mpg: These variables should be capable of housing numbers with decimal digits.Display to the user the message "Please enter the travel distance and MPG: be mindful of the space after the colonCapture the user input in the distance and mpg variables.Note: Be mindful of capital letters, spaces, and punctuation in the message.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
