You create the below function in MATLAB and try to run it fr…

You create the below function in MATLAB and try to run it from the Script Editor (by hitting the “Run” button). You get an error message saying “Not enough input values”. What do you need to do to get it to actually run? function z = Lawnmower(x,t)       z=1/2*x^2 – x*t + 1; end

Solve the ODE given below for y(3) (the value of y(x) when x…

Solve the ODE given below for y(3) (the value of y(x) when x = 3) using initial conditions of y(0) = 0 and y'(0) = 0. Leave your answer with 4 decimal places as is reported by MATLAB. Hint: solve using ode45 and make MATLAB print out the actual values of the solution. Your life will be easier if you use a “tspan” that ends with x=3. Make sure you include your MATLAB code in your answer.  y”=2y+x(9-x){“version”:”1.1″,”math”:”y”=2y+x(9-x)”}

Generate the function prototype for a function named “getnam…

Generate the function prototype for a function named “getname” that does not return a value. The function definition obtains the person’s name (a string value) that is changed in the memory location back in the main function. DO NOT write the functtion definition, only the prototype.

Correct the following code (and the function definition) so…

Correct the following code (and the function definition) so that it calls a function named calculateAreaTriangle and returns the correct area value (remember the area is one half the base times the height of the triangle): int Main(){ double area, base, height;cout>”Enter the base: “cin>”Enter the height: “;cin

What will the final value of sales_tax be if the user enters…

What will the final value of sales_tax be if the user enters 100 as the sales amount in the following code (assume it is part of a program that otherwise compiles and runs): double sales, taxRate = 0.085;int sales_tax; cout sales; sales_tax = sales * taxRate;