Question
C# Create a Windows Form Application or a Console Application that lets you do the following: Enter a score (0 100) o Validate the score
C#
Create a Windows Form Application or a Console Application that lets you do the following: Enter a score (0 100) o Validate the score is an integer o Validate the score is between 0 and 100 inclusive o If there is an error, prompt the user with an error and to reenter the score Compute the letter grade o Use the scale 90, 80, 70, 60 for A, B, C, and D, respectively. The Click event handler of the button (or main method for a console application) must call three separate methods, corresponding to the three subtasks below A method named GetValidScore will get the score from the textbox, validate it, and pass the valid score to the Click event handler A method named DetermineLetterGrade will use a the scale to determine the letter grade and will pass the letter grade back to the Click event handler A method named DisplayScoreAndGrade will accept the valid score and letter grade from the Click event handler and display the score and letter grade in a MessageBox. Use appropriate data types and names for variables. Do not forget to add the Program/Author block at the beginning of your source code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started