Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language in Java please Imagine crash testing a car into a wall. The 5000 pound car, starts moving at 30m/s, and then stops in 0.05

image text in transcribed

image text in transcribed

Language in Java please

Imagine crash testing a car into a wall. The 5000 pound car, starts moving at 30m/s, and then stops in 0.05 seconds. Write a java program to calculate how much force the car absorbs. Here is how to calculate the net force: According to Newton's Second Law of Motion, the force that an object exerts on another object is equal to the mass of the object times its acceleration. Thus, the formula: Force = mass acceleration or this formula, we will measure mass in kilograms ( kg), acceleration in meters/ /sec2, and force in ewtons. hat are the inputs needed to calculate the crash force? 1. Mass of the crashing object (car) - Determine how much mass the crashed object contains. - The car is 5000 pounds. But the formula requires kilograms (kg), so we need to convert pounds to kg. On Earth, there are 2.2 pounds for every kg of mass, so: Mass of car =5000 pounds 2.2kg/ pound =2272.7272kg 2. Deceleration of the car - Determine the acceleration (or deceleration) involved in the crash. - Imagine that the car was traveling as 30 meters per second (m/s) - roughly 60 miles per hour - when it hit a wall, coming to a complete stop in 0.05 seconds 5 hundredths of a second. To calculate the acceleration, simply divide the change in speed by the time it took to change. Acceleration of the car =(0m/s30m/s)0.05s=600m/s2 Note 1: (m/s) is the speed after the vehicle hit the wall. Note 2: The answer is negative because it was decelerating. When calculating the net force in the formula below, make this answer positive by adding the formula acceleration = - acceleration; Using Newton's Second Law to calculate the net force involved in the crash: massacceleration=Force2272.7272kg600m/s2=1,363,636.3636Newtons(N) The correct answer is 1,363,636.3636. N. This is over 500 times the car's weight! Now that we have shown you how to do the calculation, create a new class in your Lab 02 project and write a Java program that does the calculations above. - Ask the user to input the following: Mass of the car in pounds. Starting speed of the car in (m/s) The duration in seconds when the car completely stops. - Calculate and print out the following outputs: Mass of car in kg Acceleration (deceleration) of the car Net force You have already written programs that calculate one formula. Use them as a template and expand on it so it calculates all 3 formulas in one program. Take it one formula at a time

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions

Question

Develop clear policy statements.

Answered: 1 week ago

Question

Draft a business plan.

Answered: 1 week ago

Question

Describe the guidelines for appropriate use of the direct plan.

Answered: 1 week ago