Grade Calculation using functions in C#

please use my attached code to expand upon.
———————————————————————————————————————————
18.6. Homework: Grade Calculation from Individual Scores¶
In the previous assignment, we calculated grades based on a memorized overall grade within each of the categories below, as in this example:

exams – 40% (integer weight is 40)
labs – 15% (weight 15)
homework – 15% (weight 15)
project – 20% (weight 20)
participation – 10% (weight 10)
In this assignment, we are going to change the specification slightly to make the program a bit smarter. Instead of someone having to remember what their average grade was for each category, we will prompt the user for the number of items within each category (e.g. number of exams, number of labs, etc.), have the user enter individual grades, and have the program calculate the average for the category.

As usual, we will begin by specifying requirements. User responses are shown bold faced.

18.6.1. Functional Requirements
Instead of bombing out if the weights don’t add up to 100, use Do-While Loops to prompt the user again for all of the weights until they do add up to 100. A do { … } while loop is the right choice here, because you can test all of the weights at the end of the loop, after each time they have been entered in the loop.

Write a function, FindAverage, to do the following. The example refers to the category exam, but you will want your code to work for each category, and hence the category name will need to be a parameter to FindAverage.)

Prompt the user for the number of items in the category:

Please enter the number grades in category exam: 4
Instead of prompting the user for an overall average exam grade, use a loop to read one grade at a time. The grades will be added together (on the fly) to give the grade for that category. For example, after you have asked for the number of exams, you’d prompt the user to enter each exam grade and have the program compute the sum. As soon as a category sum is calculated, also print out the average as shown in the sample below:

Please enter the grade for exam 1: 100
Please enter the grade for exam 2: 90
Please enter the grade for exam 3: 80
Please enter the grade for exam 4: 92
Calculated average exam grade = 90.5
Of course you must return the grade to the caller for use in the overall weighted average grade.

A category may have only a single grade, in which case the user will just enter the number of grades as 1.

Once you have read in the data for each of the items within a category, you’ll basically be able to reuse the code that you developed in the previous assignment to compute the weighted average and print the final letter grade.

Print the final numerical average, this time rounded to one decimal place. If the final average was actually 93.125, you would print 93.1. If the final average was actually 93, you would print 93.0. If the final average was actually 93.175, you would print 93.2.

18.6.2. Style Requirements
For this assignment, you are expected to start using functions for all aspects of the assignment. For example, it can become tedious in a hurry to write code to prompt for each of exams, labs, homework, etc. when a single function (with parameter named category) could be used to avoid repeating yourself. In particular you should write your function to take advantage of our UI class, from User Input: UI.
Also beginning with this assignment, it is expected that your work will be presented neatly. That is, we expect the following:
proper indentation that makes your program more readable by other humans. Use all spaces, not tabs to indent. You never know what default tabs your grader will have set up.
proper naming of classes and functions. In C#, the convention is to begin a name with a capital letter. You can have multiple words in a name, but these should be capitalized using a method known as CamelCase [CamelCase]. We also recommend this same naming convention for variables but with a lowercase first letter. For variables, we are also ok with the use of underscores. For example, in homework 1 we used names like exam_grade. If you use CamelCase, you can name this variable examGrade.
If you have any questions about the neatness or appearance of your code, please talk to the instructor or teaching assistant.
This guide from CIS 193 at [UPennCSharp] provides a nice set of conventions to follow. We include this here so you know that other faculty at other universities also consider neatness/appearance to be important.
[CamelCase] http://en.wikipedia.org/wiki/CamelCase
[UPennCSharp] http://www.cis.upenn.edu/~cis193/csstyle.html
18.6.3. Grading Rubric
Warning
As a general rule, we expect programs to be complete, compile correctly, run, and be thoroughly tested. We are able to grade an incomplete program but will only give at most 10/25 for effort. Instead of submitting something incomplete, you are encouraged to complete your program and submit it per the late policy. Start early and get help!

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.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your 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.
Pro service tips
How to get the most out of your experience with TheBestPaperWriters
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Architecture, Building and Planning
The assignment was well written and the paper was delivered on time. I really enjoyed your services.
Customer 452441, September 23rd, 2022
Anthropology
Excellent services will definitely come back
Customer 452441, September 23rd, 2022
Psychology
Thanks a lot the paper was excellent
Customer 452453, October 26th, 2022
Nursing
The paper was EXCELLENT. Thank you
Customer 452449, September 23rd, 2022
Theology
Job well done and completed in a timely fashioned!
Customer 452451, November 18th, 2022
Business Studies
Excellent service - thank you!
Customer 452469, February 20th, 2023
Anthropology
excellent loved the services
Customer 452443, September 23rd, 2022
Business Studies
Job well done. Finish paper faster than expected. Thank you!
Customer 452451, October 3rd, 2022
Business Studies
Thank you!
Customer 452451, November 27th, 2022
English 101
Very good job. I actually got an A
Customer 452443, September 25th, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
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