Matalb solution


hello,
I have some questions that I need them to be solved
Q1) 9. The cost of manufacturing n units (where n is an integer) of a particular product at a factory is given by the equation:
C(n) = 5n2 – 44n + 11
Write a script “mfgcost” that will
• prompt the user for the number of units n
• call a function “costn” that will calculate and return the cost of manufacturing n units
• print the result (the format must be exactly as shown below)
Next, write the function costn, which simply receives the value of n as an input argument, and calculates and returns the cost of manufacturing n units. Here is an example of executing the script:
>> mfgcost
Enter the number of units: 100
The cost for 100 units will be £45611.00

Q2) If a certain amount of money (called the principal P) is invested in a bank account, earning an interest rate i compounded annually, the total amount of money Tn that will be in the account after n years is given by:
T_n=P(1+i)^n

Write a function that will receive input arguments for P, i, and n, and will return the total amount of money Tn. Also, give an example of calling the function.

Q3) 7. Write a function calcrectarea that will calculate and return the area of a rectangle. Pass the length and width to the function as input arguments.

Q4) 4. In the metric system, fluid flow is measured in cubic meters per second (m3/s). A cubic foot per second (ft3/s) is equivalent to 0.028 m3/s. Write a script titled flowrate that will prompt the user for flow in cubic meters per second and will print the equivalent flow rate in cubic feet per second. Here is an example of running the script. Your script must produce output in exactly the same format as this:
>> flowrate
Enter the flow in m^3/s: 15.2
A flow rate of 15.200 meters per sec
is equivalent to 542.857 feet per sec

Would you be able to help me solving them?

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: Matalb solution
Reference No:- TGS0674923

Expected delivery within 24 Hours