# Daniel Foster
# 6/1/2026
# Simple gas program that calculates total given cost of gallon and number of gallons.

# Take input for how much each gallon costs in dollars and cents
# input() takes input from the user
# float() converts inside String (text) contents into decimal values
#   so that we can do math later.
print("How much does each gallon cost?")
gallonCost = float(input())


# Take input for how many gallons you want to buy
print("How many gallons do you want?")
numGallons = float(input())


# Calculate total cost of gas
totalCost = numGallons * gallonCost


# Output total.
# 'sep' by default is a space. This line changes the default separator to nothing,
#   to remove an extra space between the $ and the amount.
print("Your order is $", totalCost, " dollars.", sep="")

