Perform the following exercises in MATLAB. Follow the required filenames for each activity. Create a pseudo-code/flowchart* and program for the problems below: 1. Write a program that will calculate...


Perform the following exercises in MATLAB. Follow the required filenames for each activity.


Create a pseudo-code/flowchart* and program for the problems below:













1.Write a program that will calculate thearea andvolume of a cylinder when the radius and height are unknown. The program will ask the user to enter radius (r) and height (h) then calls a local function to calculate the area (A) and volume (V). Display the result of the calculation. Use the formula below for the area and volume. Save program asLE9-1.mand flowchart/pseudo-code asLE9-1.png orLE9-1.txt.

A=2πrh+2πr2A=2πrh+2πr2
V=πr2h


















3.Write a program that will calculate thefinal velocity andtime of travel of a baseball that is thrown downward from a tower of a certain height and initial speed.  The program will ask the user to enter height (h) and initial velocity (vo). Create two (2) function files: 1) to calculate the final velocity (v) and 2) calculate the time of travel (t). Display the result of the calculation. Use the formula below for the final velocity and travel time. Assume the acceleration due to gravityg = 32.1.Save the function files asFinalVelo.m andtravelTime.m. Create also a main function file that will as ask for user input and calls the function filesFinalVelo.m andtravelTime.m.Save the main function file asmain.m.Save flowchart/pseudo-code asLE9-3.png orLE9-3.txt.

Perform the following exercises in MATLAB. Follow the required filenames for each activity.<br>Create a pseudo-code/flowchart* and program for the problems below:<br>1. Write a program that will calculate the area and volume of a cylinder when the radius and height are<br>unknown. The program will ask the user to enter radius (r) and height (h) then calls a local function to<br>calculate the area (A) and volume (V). Display the result of the calculation. Use the formula below for<br>the area and volume. Save program as LE9-1.m and flowchart/pseudo-code as LE9-1.png or LE9-1.txt.<br>A = 2rrh + 2rr2<br>V = Tr²h<br>

Extracted text: Perform the following exercises in MATLAB. Follow the required filenames for each activity. Create a pseudo-code/flowchart* and program for the problems below: 1. Write a program that will calculate the area and volume of a cylinder when the radius and height are unknown. The program will ask the user to enter radius (r) and height (h) then calls a local function to calculate the area (A) and volume (V). Display the result of the calculation. Use the formula below for the area and volume. Save program as LE9-1.m and flowchart/pseudo-code as LE9-1.png or LE9-1.txt. A = 2rrh + 2rr2 V = Tr²h
3. Write a program that will calculate the final velocity and time of travel of a baseball that is thrown<br>downward from a tower of a certain height and initial speed. The program will ask the user to enter<br>height (h) and initial velocity (vo). Create two (2) function files: 1) to calculate the final velocity (v) and 2)<br>calculate the time of travel (t). Display the result of the calculation. Use the formula below for the final<br>velocity and travel time. Assume the acceleration due to gravity g = 32.1. Save the function files as<br>FinalVelo.m and travelTime.m. Create also a main function file that will as ask for user input and calls the<br>function files FinalVelo.m and travelTime.m. Save the main function file as main.m. Save<br>flowchart/pseudo-code as LE9-3.png or LE9-3.txt.<br>Final Velocity:<br>v? = vở + 2ac(s – 8o)<br>So = h<br>%3D<br>ac = g<br>Vvở + 2gh<br>V =<br>Travel Time:<br>v = vo + act<br>v-Vo<br>t<br>

Extracted text: 3. Write a program that will calculate the final velocity and time of travel of a baseball that is thrown downward from a tower of a certain height and initial speed. The program will ask the user to enter height (h) and initial velocity (vo). Create two (2) function files: 1) to calculate the final velocity (v) and 2) calculate the time of travel (t). Display the result of the calculation. Use the formula below for the final velocity and travel time. Assume the acceleration due to gravity g = 32.1. Save the function files as FinalVelo.m and travelTime.m. Create also a main function file that will as ask for user input and calls the function files FinalVelo.m and travelTime.m. Save the main function file as main.m. Save flowchart/pseudo-code as LE9-3.png or LE9-3.txt. Final Velocity: v? = vở + 2ac(s – 8o) So = h %3D ac = g Vvở + 2gh V = Travel Time: v = vo + act v-Vo t
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here