Question: Use a single M-file for this problem and use mnemonic variable names of 3 characters or more for all the values given. Write a program

Use a single M-file for this problem and use mnemonic variable names of 3 characters or more for
all the values given. Write a program that calculates the distance from the roof top to the ground for a free
falling ball that is only influenced by gravity as it falls. The program should ask the user to input the height of
the building. It is great weather on the roof, so the initial velocity is 0 meter / second. With no initial velocity,
this gives a distance equation shown below and a velocity equation shown below
 Use a single M-file for this problem and use mnemonic variable

ENGR 297-Computer tools for Engineering Matlab Homework Submit a paper copy of the M file(s), a paper copy of the execution of the M file(s) at the command window and an electronic copy. Each M file or Script file should have "disp lines in the heading area that give the following information for the assignment. (Example) Name and Date: Course and Section: Problem: Statement: Mr. Satel Lite and date ENGR XXX and class # XXXXX Matlab Homework 10 problem #4 parts C and D Key information about problem Problem #L (use the following filename system: lastname height firstinitial.c) Use a single M-file for this problem and use mnemonic variable names of 3 characters or more for all the values given. Write a program that calculates the distance from the roof top to the ground for a free falling ball that is only influenced by gravity as falls. The program should ask the user to input the height of the building. I is great weather on the roof, so the initial velocity is 0 meter/second. With no initial velocity, this gives a distance equation shown below and a velocity equation shown below. The program should use variables for all valucs. The program should print the height to show 2 decimal places. The program should calculate the time and print the answer to show 5 decimal places. The program should calculate the velocity and print the answer to show scientific notation and 4 decimal places. The answers will be shown as a table Please recall that dis tance (graviyX(time) velocity ( final) = (gravity)(time) And Use the given data and reproduce the sample output. Use a single user input statement to provide the range of height data to the program so the program will generate a table using"Iprin with the output of time and velocity Height ranges start from the top of the building 100 meters to a lower level in the building of 10 meters with the increment in 15 meter intervals. Each Column of the table should have a heading that shows the type of measure and the units of measure. Exercise the option to put the units as a separate line if needed. The table of data should be properly spaced allowing all the decimal points and decimal values to line up sampls ouap (Heading goes here) Calculate the time t would take for a golf ball to fall from a building from a given height Enter the height of the building in meters: (enter the data here) Results in table form: (fprintf of Lastname Firstname) Table Height (units) Time (units) Velocity (units) xxxx is where the computer is inserting information from memen xxxx is an area where the computer is performing the work through input or output. xxxx is not literally printed by the user or the computer

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!