Convert inches into yards feet and inches

Assignment Help Python Programming
Reference no: EM13669708

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. 

Reference no: EM13669708

Questions Cloud

How many independent linear combinations are possible : How many independent linear combinations are possible
Equivalent to the food energy in one jelly doughnut : A 56 kg woman cheats on her diet and eats a 590 Calorie (540 kcal) jelly donut for breakfast. How many joules of energy are the equivalents of one jelly doughnut?
Neglecting the effects due to digging in of cleats : A 100 kg football linebacker is moving at 2 m/s tackles head-on an 80 kg halfback running 3 m/s. suppose the two players were initially running directly at one another. Neglecting the effects due to digging in of cleats:
How long is the decoy in the air : A certain airplane has a speed of 290 kn/hr and is diving at an angle of 36 degrees below the horizontal when the pilot releases a radar decoy. The horizontal distance among the release point and the point where the decoy strikes the ground is d= 700..
Convert inches into yards feet and inches : Convert inches into yards, feet, and inches
A soccer ball is kicked from the ground by an initial speed : A soccer ball is kicked from the ground by an initial speed of 19.5 m/s at an upward angle of 45 degrees. A player 55m away in the direction of the kick start running to meet the ball at that instant. What should be his average speed if he is to meet..
How long does the missile take to hit the target : A missile is aimed to hit a target 650 km away. If the missile is fired at an angle of 20o by the horizontal, what must be its launch speed so that it will hit the target? Once fired, how long does the missile take to hit the target?
Crossed electric and magnetic fields without deflection : An Ion beam passes during crossed electric and magnetic fields without deflection. The electric field is 2340 N/C and the magnetic field is 0.026 T. When the electric field is turned off, the beam's path takes on a curvature by a radius of 36.1298 mm..
What is the probability for a proton through the same energy : A potential barrier has height Vo = 1.0 eV and width 1 A. What is the probability that an electron, with kinetic energy0.25 ev will tunnel during the barrier in one minute? What is the probability for a proton through the same energy?

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd