Question: Complete problem 4 on page 249 (create a function to converts density in kg/m to specific weight in lb/in). Instead of using the command window

 Complete problem 4 on page 249 (create a function to converts

Complete problem 4 on page 249 (create a function to converts density in kg/m to specific weight in lb/in). Instead of using the command window to test the function as stated in the text, test the function by writing a main program where the main program prompts the user for the input and the main program displays the output. The main program should display an error message if any input is lessthanorequalto 0. Test the program for steel with a density of 7860 kg/m^3 Test the program for titanium with a density of 4730 kg/m^3 Test the program for a negative weight Turn in a printout of the function, the main program, and the test results. Choose in the textbook from either... problem 6, p.249 (body surface area) or problem9, p.250 (windchill temperature) Create the function as described in the text but instead using it in the Matlab command window, write a main program to prompt for 2 input values (mass and height, or air temperature and wind speed) and displays the results. Test the program for the two sets of input values provided in the text. Turn in a printout of the function, the main program, and the test results. Write a function and main program as specified below: Write a function to calculate the three angles in a triangle given the three sides. The three sides should be inputs and the three angles should be outputs. Write a main program that will: Prompt the user to enter the three sides Will check the sides to make sure that the triangle is valid Will call the function described above only if the triangle is valid Will display the results. Test the program for a valid triangle as well as for 6 types of invalid triangles (any side sum of the other two sides) Turn in a printout of the function, the main program, and the test results

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sure Heres a stepbystep solution for each task described in the assignment Part 1 Density Conversion ... View full answer

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!