Write a Java program that meets the following student registration requirements: 1.Reads a student’s name and age repeatedly from the console, until the user indicates there’s no more input. 2.For...


Write a Java program that meets the following student registration requirements:

1.Reads a student’s name and age repeatedly from the console, until the user indicates there’s no more input.

2.For each valid name and age entered, a Student object is created that contains these values. Values are stored in the object

    using ‘set’ methods and retrieved using ‘get’ methods on the following data fields:


ØstudentName – validation requires names to consist of alphabetic characters

ØstudentAge – validation requires that students must be 16 years of age or older


3.Outputs a list of students (their names and ages) to the console in ascending or descending age order, depending on the user’s choice


Use java language


Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here