Can you help me with this? Our instructor told us that we are going to StringTokenizer and he didn't told what is a StringTokenizer or has not been discussed.

Can you add also the comments why that code is all about?

Many thanks,
Jerick

PROG 131 – Computer Programming

SPECIAL PROJECT

1. Create a notepad file and save it as Students.txt and type in the following texts(LastName_firstname, idno, year level, department/college name):

Potter_Harry,2010-0724,1,SCS

Granger_Hermione,2009-0725,2,SCS

Weasley_Ron,2008-0726,3,CASS

Malfoy_Draco,2007-0727,4,CSM

Snape_Severus,2007-0728,4,CED

2. Create a procedural java program and save it as Student_Schedule.java. Your program should ask the user to enter the student’s ID no. If the ID number is on the list it should display the student’s information as shown on the sample output.
3. Your program should ask the number of subject the student is taking up for the current module. A student is only allowed to get a maximum of 3 subjects per module.
4. Your program should then ask the start time and end time of each subject. The time should be entered using the 24 hour format.
5. The number of hours per subject should be calculated.
6. As soon as the subject schedules are entered your program should then get the total number of subject hours and the total payment for the subjects in that module. Every subject cost a student Php 1,500.

College Names

SCS – School of Computer Studies

CASS – College of Arts and Social Sciences

CSM – College of Science and Mathematics

CED – College of Education

Year level

1 – Freshmen

2 – Sophomore

3 – Junior

4 – Senior

Note: The text on the sample output which is in bold text should be entered by the user.


Sample output 1:

=======================================

Please Enter Student ID no: 2010-0724

=======================================

ID no: 2010-0724

Lastname: POTTER

Firstname: Harry

Year: FRESHMEN

Department: School of Computer Studies

=======================================

No. Of Subjects this module: 2

=======================================

***************************************

SCHEDULE

***************************************

Subject 1:

Start Time: 07:30

End Time: 10:30

=========================

No. Of hours: 3.00

=========================

Subject 2:

Start Time: 10:30

End Time: 12:00

=========================

No. Of hours: 1.50

=========================

***************************************

Total no. Of class hours is: 4.5

Total Payment for subjects: Php 3000

***************************************

Sample output 2:

=======================================

Please Enter Student ID no: 2007-0728

=======================================

ID no: 2007-0728

Lastname: SNAPE

Firstname: Severus

Year: SENIOR

Department: School of Computer Studies

=======================================

No. Of Subjects this module: 3

=======================================

***************************************

SCHEDULE

***************************************

Subject 1:

Start Time: 13:30

End Time: 16:30

=========================

No. Of hours: 3.00

=========================

Subject 2:

Start Time: 10:30

End Time: 12:00

=========================

No. Of hours: 1.50

=========================

Subject 3:

Start Time: 09:00

End Time: 10:30

=========================

No. Of hours: 1.50

=========================

***************************************

Total no. Of class hours is: 6.00

Total Payment for subjects: Php 4500

***************************************

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.