Question: Purpose: To use software development principles of abstraction in problem solving and structured problem solving techniques to create an application that uses sentinel-controlled repetition to
Purpose: To use software development principles of abstraction in problem solving and structured problem solving techniques to create an application that uses sentinel-controlled repetition to perform calculations based on a users input.
Details:
Create a class named GasMileage that contains the main method. The method should ask a user for the number of miles driven and the number of gallons of gas used, both as integers, and then calculates and displays the miles per gallon, as an integer number. The program should continue asking for input until a sentinel value has been entered, at which time the program ends.
PLEASE Include Pseudocode
Step by Step Solution
There are 3 Steps involved in it
To solve this problem we will create a Java application that calculates miles per gallon using sentinelcontrolled repetition Sentinelcontrolled repeti... View full answer
Get step-by-step solutions from verified subject matter experts
