Q.1. Write a program that gets 10 numbers and stores then in an array. Then sort (low to high) the number using a function.
Note: The program requires ask user for continuing for getting next 15 numbers.
Q.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 *y
Constraint 2x+y=24
Q.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
a) Use a condition statement to check that a valid exam mark is in the range 0 to 100 inclusive.
b) 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.
c) After checking for a valid mark and finding the corresponding grade, display the results by showing the student name and grade to the user.