Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help solve this! ***Note : Needs to be done on Notepad and be able to compile and run on command prompt *** Here are

Please help solve this!

***Note: Needs to be done on Notepad and be able to compile and run on command prompt***

Here are the steps.

(1) Create a Student class containing an ID, a last name, and a list of course names such as "COP2210" or "COP2250". This should not be a string of multiple courses. The ID should be an integer which is printed with leading zeros.

(2) Create a class named StudentTest that contains a List of students. Do not use the list provided here. In the class constructor, create 15 students and add them to the list. Each student's ID must be different. Each student you add to the list must contain 2-4 different course names. At least one should have two course names and at least one should have four course names. Make sure the students do not all have the same courses, although there should be some overlap (see the sample below). The student names must be inserted into the list in random order (not sorted).

(3) Sort the list in ascending order by student last name and display the list. For each student, display the ID with leading zeros, last name, and list of courses on a single line. Here is sample output. Note how the tab character is inserted after the name to line up the next column containing courses. Be sure there is no trailing comma at the end of the list of courses.

image text in transcribed

0008, Alvarez COP225e, COP3250, COP425e 0002, Chong 0026, Fujioka COP225e, COP3250, COP425e 0032, Johnson COP1210, COP3337, COP3530 001e, Kim ee27,0"Malley COP22se, COP 3 2 5e, coP425e 0044, Pierrot ENC1105, ENC325e, REL2210 0013, Ramirez ENC1105, ENC325e, REL2210 e001, Smith 0011, Wong COP1210, COP3337, COP3530 COP1210, COP3337, COP3530 COP2250, COP325e, COP4250 ENC1105, ENC325e, REL2210

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

Different formulas for mathematical core areas.

Answered: 1 week ago