Write a program for a childs rectangle play yard is to be


1. The Write a program that gets 10 numbers and stores then in an array. Then sort (low to high) e number using a function.

Note: The program requires ask user for continuing for getting next 15 numbers.

2. Write a program for: A child's rectangle play yard is to be built next to the house. To make the three sides of the play-pen, twenty-four meters of fencing are available.

What should be the dimensions of the sides to make a maximum area?

Formulation:   Variables x,y and x is in (2-8)
Max Area=A=x*y
Constraint 2x+y=24

3. Write a program that prompts for and gets a student name and exam mark until a name of "quit" is entered. The program should provide the following functionality:

• Use a condition statement to check that a valid exam mark is in the range 0 to 100 inclusive.

• Otherwise when an error is detected, display an error and re-prompts the user for the data until the correct data is entered. You can use either a while or do/while loop for this if you wish.

• After checking for a valid mark and finding the corresponding grade, display the results by showing the student name and grade to the user. Use the following table of marks and grades to help guide you.

Solution Preview :

Prepared by a verified Expert
MATLAB Programming: Write a program for a childs rectangle play yard is to be
Reference No:- TGS0975495

Now Priced at $45 (50% Discount)

Recommended (93%)

Rated (4.5/5)