Question
Question 1 (Grading System Program) In this question, you will write a JAVA PROGRAM to estimate the letter grade based on Concordia undergraduate grading system
Question 1 (Grading System Program)
In this question, you will write a JAVA PROGRAM to estimate the letter grade based on Concordia undergraduate grading system .
Your program should follow the following rules:
Prompt the user to enter name, id and score and validates the information.
The student name should be entered as LastName, FirstName (separated by comma). Please note the whole name should be saved in one string.
The student ID must have 7 digits.
The students SCORE must greater or equal to 0 and less or equal to 100.
If the user enters invalid information for each question, your program should repeat the current question.
If the user enters correct information, your program should display the letter grade based on the score. When the letter grade is displayed, the output should be FirstName LastName got SCORE. Based on the grading system, FirstName (ID) will probably get X.
Please note, score >= 80, X = A, with the output message Congratulations!;
score >= 70, X = B, with the output message You are so close to A!;
score >= 60, X = C, with the output message You can do better by more practice!;
score
Your program should be able to ask user for new input of users information for estimation until get the input Yes from the user.
Display welcome & closing messages.
++++++++++++++++++++++++++++++++++++++++++++ Welcome to Grading System Program! ++++++++++++++++++++++++++++++++++++++++++++ Please enter your name (Lastname, Firstname seperated by comma): Quan, Zixi Please enter your ID without any spaces (7 digits): 123 Please enter your ID without any spaces (7 digits): 1234567 Please enter your score (0-100): -90 Please enter your score (0-100): 99.5 Zixi Quan got 99.5. Based on the grading system, Zixi (1234567) will probably get A! Congratulations! Exit the program? (enter Yes to exit): No Please enter your name (Lastname, Firstname seperated by comma): Roberts, Lydia Please enter your ID without any spaces (7 digits): 9000001 Please enter your score (0-100): 0.5 Lydia Roberts got 0.5. Based on the grading system, Lydia (9000001) will probably get FNS! Please work harder to pass the course! Exit the program? (enter Yes to exit): Yes Thank you for using Grading System Program
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