Write a program that gets 10 numbers and stores then in an


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.

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.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program that gets 10 numbers and stores then in an
Reference No:- TGS0973002

Now Priced at $65 (50% Discount)

Recommended (90%)

Rated (4.3/5)