The Function Prototype

1. Ask the user for ten (10) grades, and store the data in an array. Compute the average of all the grades. Print the original ten grades and the average.a. Declare an integer array with the name of “grades” of size 10 in the main functionb. Create a function called “getGrades” that prompts the User for the grades and puts them in an integer array.i. The function will receive an integer array and the size of the array.ii. In the function prototype and the function header, call the array “gradeArray” and call the size of the array “size.”iii. Create a For Loop that cycles through each cell of the array.iv. At each cell prompt the User for a grade.v. Store the grade entered by the User into the array cell.c. From main, send this function the array called “grades” and the size of the array.d. Create a function called “computeAverage” that computes the average of an array of integers and returns the average as a float.i. The function will receive an integer array and the size of the array.ii. In the function prototype and the function header, call the array “numbers” and call the size of the array “size.”iii. Create a For Loop that cycles through each cell of the array and computes a running total of the values stored in the array.iv. Use the size of the array to compute the average from the running total.v. Return the average through the function name.e. From main, send this function the array called “grades” and the size of the array.f. From main, print out the average returned by computeAverage.g. Create a third function called “printInts” that will print out the contents of an integer array. This function will be void.i. The function will receive an integer array and the size of the array.ii. In the function prototype and the function header, call the array “intArray” and call the size of the array “size.”iii. Create a For Loop that prints out the contents of the array.2. Generate 20 random numbers within a range of 1 to 50 and store them in an integer array named “randomArray.” Then print out the contents of the array.a. Create a function named “getRandom” that will generate a random number between any range.i. The function will receive two call-by-value arguments – the beginning value of the range and the ending value of the range.ii. Generate a random number within the specified range.iii. Send the random number back through the function name.b. In the main function, create a For Loop that cycles through the array called randomArray.i. With each cycle, call your getRandom function from main and store the random number it returns into your array.c. In main, call the function printInts to print out the contents of the array called randomArray. Make sure you use the SAME FUNCTION you created in step 1. You are just sending it a different array.d. Next, in the main function, call the function computeAverage to compute the average of the random numbers you stored in the array called randomArray. Make sure you use the SAME FUNCTION you created in step 1. You are just sending it a different array.e. In main, print out the average returned by computeAverage.

Struggling to find relevant content? Order a custom essay on
The Function Prototype
Let our experts save you the hassle
Order Now
Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
Sign up, place your order, and leave the rest to our professional paper writers in less than 2 minutes.
step 1
Upload assignment instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
s
Get personalized services with GPA Fix
One writer for all your papers
You can select one writer for all your papers. This option enhances the consistency in the quality of your assignments. Select your preferred writer from the list of writers who have handledf your previous assignments
Same paper from different writers
Are you ordering the same assignment for a friend? You can get the same paper from different writers. The goal is to produce 100% unique and original papers
Copy of sources used
Our homework writers will provide you with copies of sources used on your request. Just add the option when plaing your order
What our partners say about us
We appreciate every review and are always looking for ways to grow. See what other students think about our do my paper service.
Nursing
Thank you!
Customer 452707, April 3rd, 2022
Nursing
Perfect as usual!!! Thanks team!
Customer 452453, May 26th, 2021
Nursing
Perfectly done!
Customer 452707, July 18th, 2022
Social Work and Human Services
Excellent Work
Customer 452587, November 22nd, 2021
Human Resources Management (HRM)
Thanks for your support.
Customer 452701, May 10th, 2023
Human Resources Management (HRM)
Thanks for the paper. Hopefully this one will receive higher than a C and has followed all guidelines.
Customer 452701, November 16th, 2022
Social Work and Human Services
Great Work!
Customer 452587, September 8th, 2021
Human Resources Management (HRM)
You are greatly appreciated.
Customer 452701, October 17th, 2023
Wellness
The skilled writer did a GREAT job on assignment. There are a few details I will add, but overall very happy with their work. Thank you
Customer 452547, June 13th, 2021
Nursing
Thank you!!!
Customer 452557, June 26th, 2021
Other
NICE
Customer 452813, June 30th, 2022
Nursing
Thank you so much. I didn't know where to start and you did an amazing job. Thanks and have a great night.
Customer 452925, March 16th, 2023
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat

Good News ! We now help with PROCTORED EXAM. Chat with a support agent for more information