The following scrpit lands calls functions to 1 prompt the u

The following scrpit lands calls functions to:

1. prompt the user for a land area in acres

2. calculate and return the area in hectares and in square miles

3. print the results

One acre is .4047 hectares. One square mile is 640 acres. Assume that the last function, that prints, exists-you do not have to do anything for that function. You are to write an entire function that calculates and returns the area in hectares and in square miles, and write just a function stub for the function that prompts the user and read. Do not write the actual contents of this function; just write a stub!

Solution

land.m inacres = askacres; [sqmil, hectares] = convacres(inacres); dispareas(inacres, sqmil, hectares) % Assume this exists
The following scrpit lands calls functions to: 1. prompt the user for a land area in acres 2. calculate and return the area in hectares and in square miles 3. p

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site