How much would it cost to complete this assignment?

How much would it cost to complete this assignment?


Microsoft Word - MAE 1090 - Fall 2022 - Lab 4.docx Lab 5 - Due 10/9/2022 at 11:59 pm for all lab sections Fall 2022: Introduction to Structured Programming (MAE 1090)  Write a MATLAB script that will accomplish Task1 listed below.  Name the m-file LastName_Lab5.m where LastName is your last name.  Comment your work.  You can use clc to clear the command window and clear to clear the workspace.  In Task 2, correct any bugs in the two MATLAB scripts provided (debugging1.m and debugging2.m) and rename corrected the files to LastName_debugging1.m and LastName_debugging2.m.  Submit your lab m-files using Canvas.  Feel free to discuss the lab assignment, but you must do your own work. Do not echo variable assignments or intermediate results to the command window. Task 1 (30 points) Ask the user to provide a numeric value.  If the numeric value is an integer, the user should be asked to enter a second integer value.  If the numeric value is a floating-point number, ask the user to provide an explanation for the value. If the user entered two integers, the first value should be used to define variable a and the second should be used to define variable b. Output a table containing the values of a and b in columns that are 10 characters wide. Include column headings specifying that the first column contains a and the second contains b. If the user entered a floating-point number, output the explanation given by the user, followed by the value of the numeric input. If the decimal portion of the numeric value is less than 1 x 10-4 output the numeric value with 5 digits after the decimal point. Otherwise, output the numeric value with 2 digits after the decimal point. After the code has executed, the command prompt should appear below any output. Hint: you can use elementary mathematical functions (see help elfun) to determine if the user entered an integer or a floating-point number and to determine the decimal portion of a number. Example output: If the user enters the values 2 and 3, the output should be: a b 2 3 >>   If the user enters 12.000074 and ‘The price of tea in China is ‘, the output should be: The price of tea in China is 12.00007  >>  If the user enters 12.0344 and ‘The price of tea in China is ‘, the output should be: The price of tea in China is 12.03  >>  Task 2 (60 points total, 30 points for each m-file) Correct the syntax, run-time, and algorithmic errors in the provided debugging1.m and debugging2.m m- files. (See above instructions for submission.)
Oct 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here