Question: Use the D 2 L assignment folder for Homework 2 to submit a compressed folder containing your Python program consisting of the statements shown below.

Use the D2L assignment folder for Homework 2 to submit a compressed folder containing your
Python program consisting of the statements shown below. Follow the class standards for
naming the program file and the compressed folder. Enter the statements exactly as shown,
but enter your own name and the current date for the Programmer: and Date: comment lines.
Also submit a copy of the completed table (2 points.).
#==================================================================
# Program: convert
# Programmer: enter your name here
# Date: enter today's date here
# Abstract: This program converts the number of gallons entered
# to its equivalent in quarts and liters which are
# displayed as output.
#==================================================================
# get input from the user
gallons = int(input('How many gallons? '))
# do the conversions
quarts = gallons *4
liters = gallons *3.785
# display the output to the user
print('The number of quarts in', gallons, 'gallons is', quarts)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!