Convert inches into yards feet and


Lab assigment: 
1. Type the following statements into the Python shell to see what they 
do: 


x = 5 
x + 1 

Now put the same statements into a script and run it. What is the  output? Modify the script by transforming each expression into a print 
statement and run it again. 

2. Convert inches into yards, feet, and inches. This time, use a  variable to store the number of inches. You may use more than one 
variable. Prompt the user for the number of inches to convert. Be  careful! The inputted value will be a ''str''. Use the ''float''  function to convert it so you can do math with it. 

3. Convert celsius to fahrenheit. Prompt the user to enter 3 values. Perform the calculation with variables. 

4. Convert fahrenheit to celsius. Prompt the user to enter 3 values. Perform the calculation with variables. 

5. Prompt the user to enter their name. Greet the user with a witty saying. Tell the user how many characters make up their name 
(including spaces, if any) by using the ''len'' function. Prompt the user for their age. Convert age to dog years and display. 

6. Suppose the cover price of a book is $24.95, but bookstores get a 40% discount. Shipping costs $3 for the first copy and 75 cents for each additional copy. What is the total wholesale cost for 60 copies? 

7. If I leave my house at 6:52 am and run 1 mile at an easy pace (8:15 per mile), then 3 miles at tempo (7:12 per mile) and 1 mile at easy pace again, what time do I get home for breakfast? 

8. Did you solve problems 2-7 using interactive mode? Use ''print'' to display the results in script mode. 

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Convert inches into yards feet and
Reference No:- TGS0923288

Expected delivery within 24 Hours