Question

In: Computer Science

2.20 Domain Lab 3.1 -- Velocity Calculator You may (or may not) need the following constants:...

2.20 Domain Lab 3.1 -- Velocity Calculator

You may (or may not) need the following constants:

  • Pi = 3.14
  • Speed of Light (c) = .307 parsecs/year
  • Gravity (g) = 9.81 m/s squared

Velocity Calculator Your program should ask the user (in this order) for:

  • Initial Velocity
  • Acceleration
  • A Time Period

Your program should then calculate and display the resulting final velocity based on the inputs provided.

Solutions

Expert Solution

# vaiable to store intial velocity
intialvelocity = float(input("Enter the intial velocity(m/s): "))\
# vairable to store acceleration
acceleration = float(input("Enter the acceleration(m/s^2): "))
# vaiable to store time
time = float(input("Enter the time period in seconds: "))
# calculating final velocity
finalVelocity = intialvelocity + acceleration*time
print("Final velocity is: ", finalVelocity)


Related Solutions

2.29 Domain Lab 4.1 -- Compound Interest Calculator Compound Interest Calculator Your program should ask the...
2.29 Domain Lab 4.1 -- Compound Interest Calculator Compound Interest Calculator Your program should ask the user (in this order) for: Principal … In this equation, it is expressed as PV Annual Interest Rate Time Period (years) … Note that there are 12 compounding periods per year. So your n value in the equation is years multiplied by 12 Your program should then calculate and display: Total Interest Generated Total Future Value SPECIAL NOTE Make sure to round output to...
Lab 02 Final Grade Calculator **** I need it in JAVA **** **** write comments with...
Lab 02 Final Grade Calculator **** I need it in JAVA **** **** write comments with the code **** Objective: Write a program that calculates a final grade! The program should read in a file and then calculates the final grade based on those scores. Files read into this system are expected to follow this format: <Section0>\n <Grade0 for Section0>\n <Grade1 for Section0>\n … <GradeX for Section0>\n <Section1>\n <Grade0 for Section1>\n … <GradeY for Section1> <Section2> … <SectionZ> Sections denote...
Use elementary row or column operations to evaluate the following determinant. You may use a calculator...
Use elementary row or column operations to evaluate the following determinant. You may use a calculator to do the multiplications. 1 -9 6 -9 -5 2 -17 6 -21 -11 2 -13 4 -17 -12 0 6 4 2 0 0 -2 16 8 2
MA 117 Lab 1 In this lab, you will need to write equations, perform calculations, and...
MA 117 Lab 1 In this lab, you will need to write equations, perform calculations, and make judgements. All equations and calculations should be included in your lab write-up. All judgements should be explained and justified in complete sentences referencing your calculations. Hospital Administration Southwest Hospital has an operating room used only for eye surgery. The annual cost of rent, heat, and electricity for the operating room and its equipment is $360,000, and the annual salaries of the people who...
A) For an experiment you are doing in lab, you need 50.0mL of a 2.50 x...
A) For an experiment you are doing in lab, you need 50.0mL of a 2.50 x 10-2 M solution of Ni(NO3)2. Describe how you would prepare this solution from solid nickel nitrate and water to make the most accurate and reproducible solution as possible. Include any necessary calculations and a description of each step you would follow in the lab. Indicate what items you would use from the “tool-box” shown on the next page. (Please limit your description toeightsentences or...
I need this in java A6 – Shipping Calculator Assignment Introduction In this part, you will...
I need this in java A6 – Shipping Calculator Assignment Introduction In this part, you will solve a problem described in English. Although you may discuss ideas with your classmates, etc., everyone must write and submit their own version of the program. Do NOT use anyone else’s code, as this will result in a zero for you and the other person! Shipping Calculator Speedy Shipping Company will ship your package based on the weight and how far you are sending...
For this part you will need to use your calculator. What is the Monthly Mortgage Payment...
For this part you will need to use your calculator. What is the Monthly Mortgage Payment on a $125,000 Home with an 80% LTV with a 5% Interest Rate, 30-Year Fixed Rate Mortgage (Constant Payment Mortgage)? $536.82 What is the Monthly Mortgage Payment on a $125,000 Home with an 80% LTV with a 6% Interest Rate, 30-Year Fixed Rate Mortgage (Constant Payment Mortgage)? $599.55 How much more with the person with the mortgage in question #8 pay over the person...
Chem Lab/Biology Question You need to prepare 350ml of an extraction buffer with the following composition:...
Chem Lab/Biology Question You need to prepare 350ml of an extraction buffer with the following composition: 125 mM NaCl (MW=58.44), 100mM Tris base (MW=121.1), and 3% (w/v) sodium dodecyl sulfate. You have access to water, powdered Tris base, 6 M NaCl solution, and 40% (w/v) solution of sodium dodecyl sulfate. How much of each component is needed (you may assume that solids contribute negligible volume to a solution)?
A pycnometer is a device used to measure densities. You are in the lab and need...
A pycnometer is a device used to measure densities. You are in the lab and need to measure the density of an unknown solid. The pycnometer is weighed empty and once again when it is filled with methanol at 18°C (the density of methanol at 18°C is 0.7914 g/mL). The following data is obtained:         Mass of the pycnometer: 127.111 g         Mass of the pycnometer and the methanol: 378.024 g The pycnometer is emptied and 17.66 g...
You will need the information in this file to complete the two lab sequence This is...
You will need the information in this file to complete the two lab sequence This is the file that contains the report page for Lab 13-Taste, part 1 There are two things for you to turn in Enter your taste data on the following page. You should all be able to edit and save the page. Lab #13 - Taste Data W18 Taste Background Background Introduction Taste is the least understood of all the senses. (PBS, 2000) Taste has been...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT