Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This must be done with C# coding language. Please use a while loop to let the user input grade weights of categories until they enter

This must be done with C# coding language. Please use a while loop to let the user input grade weights of categories until they enter 0 in which the loop should exit with keyword "break". After this, it should display their final grade, maximum possible grade, final letter grade, and the condition of whether they passed or failed the class. The final letter grade should be given using an if statement. An F is from 0-59.99, D- is from 60-62.99, D is from 63-66.99, D+ is from 67-69.99, C- is from 70-72.99, C is from 73-76.99, C+ is from 77-79.99, B- is from 80-82.99, B is from 83-86.99, B+ is from 87-89.99, A- is from 90-92.99, A is from 93-96.99, A+ is from 97 or higher. If the student receives a grade of C or higher, display a congratulation message of passing. If the student receives a grade of C- or lower, display an unfortunate message of failing. One sample output is shown below:C:?? Windows ??? system 32??cmd.exe
Please enter the weight of category 1: 5%
Please enter the percentage grade earned: 0%
Please enter the weight of category 2: 5%
Oplease enter the percentage grade earned: %
c
Please enter the weight of category 3: 50%
SPlease enter the percentage grade earned: 48.14%
c
Please enter the weight of category 4:25%
Please enter the percentage grade earned: 92%
Please enter the weight of category 5: 25%
Please enter the percentage grade earned: 100%
Please enter the weight of category 6:0%
Your final percentage grade is 72.07%.
The highest grade possible for this class was 110%.
Your final letter grade is C-.
Unfortunately, you failed this class. You will have to repeat the course again next semester.
EPress any key to continue.. .
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions