I'm in a first year programming class and I'm unsure how to start or even structure a problem.
The instructions go like this...
You are to write a program that will allow a user to pump gas into his car. Like at a gas station,
the second-by-second gallons filled and cost should be displayed to the user.
The user should provide you with:
the size of their cars tank
an estimate of how many gallons of gas are currently in their tank
The user should select a grade of gas to fill their tank with:
The price per gallon for each of these must be stored and used as a constant variable in your
You need to calculate the total cost of gas; however, you must print to the screen the current
cost and gallons filled for every 0.1 gallons of gas added. In order to make the output more
readable, please delay the screen by 50 milliseconds when printing.
I'm not asking for this to be done for me I just I'.m not sure where to start I realize it will require a loop but that's about it any help is really appreciated!