Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your Java program should follow the following rules:( Prompt the user to enter name, id and score and validates the information. The student name should

  1. Your Java 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, 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 < 60, X = FNS, with the output message Please work harder to pass the course!;

    • 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. The following are sample screen shots to illustrate the expected behavior of your program. Your

      program must display the same information with the same format.

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_2

Step: 3

blur-text-image_3

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

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

1844804526, 978-1844804528

More Books

Students also viewed these Databases questions