Description: This program is a simulation of a gas pump. Manipulating floating point variables to calculate things like price/gal, total cost etc. Input: The user will first be prompted to input a char representing their payment type "d" "c" or "q"(q = quit, ends the simulation) then they will enter their gas type "r" "p" or "s" from there they will enter a floating point number of gallons (or whole number) Output: The program outputs multiple strings for prompts, such as asking to select payment type or gas type. I also output a "receipt" to show all the calculations from the current transaction, in this receipt I output floating point numbers as well as integers combine with string (".") to make the total look like a floating point. I also output a message when the the program ends.
-
Notifications
You must be signed in to change notification settings - Fork 0
alexisf3142/Gas_Pump_Simulation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This is a program coded in assembly language, manipulating floating points to simulate a gas pump transaction
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published