473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

help me guys

2
Project requirements:

• Load a list of available courses from the text file “courses.txt” (file is given) into an ArrayList. File format is as follows:

311224 1700 Object Oriented Programming

Where: 311224 is course No, 1700 is course price, and “Object Oriented Programming” is course Name.

• Load a list of students from the text file “students.txt” (file is given) into an ArrayList. File format is as follows:

Ali Ahmad 1/1/1980 200410123 IS

Where: Ali is first name, Ahmad is second name, 1/1/1980 is birth date, 200410123 is student ID and IS is the major.

• Display the following menu:
1 - Select a student.
2 - List all students
3 - List all students and registered courses
0 - Exit
Select one of the above numbers(0-3):

• When 1 is selected, list all students and ask user to select one.
• When a student is selected, display the following menu:

1 - Add a course
2 - drop a course
3 - List student’s registered courses
0 - Return to main menu
Select one of the above numbers(0-3):

The above commands act on the selected student.

See the program RUN below and let your program work like it.
Important Notes:
- Your program must use one inheritance and at least 4 classes (Student, Course,
FileReader, Test class and one class to inherit from).
- Use the LogFileReader of the weblog-analyzer project and customize it as needed to
read courses and student files.
- Make sure you have a class named Test. Also, make sure you write a main() method
inside it. I am going to compile and run this class only.
- Your program must accept input and display output exactly as shown in the
program run below. Same sequence is required. I am going to use automated
input to test your program. If your program fails the automated test

Use this main function in your Test class:

public static void main( String [] arg )
{
Test t = new Test();
t.start();
}

Below is a program run. Make sure your program runs exactly like this:

C: \hassan> java Test

1 - Select a student.
2 - List all students
3 - List all students & registered courses
0 - Exit
Select one of the above numbers(0-3): 1

1 ali ahmad 1/1/1980 200410123 IS
2 salem awad 5/12/1970 200010234 CS
3 tamer mohsen 4/10/1985 200610234 CE
Select one of the above numbers(1-3): 1

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 1

1 311224 Object Oriented Programming 1700.0
2 310120 PC Applications 1500.0
3 400230 Arabic Language 1000.0
4 300600 Translation 1200.0
Select one of the above numbers(1-4): 1

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 1

1 311224 Object Oriented Programming 1700.0
2 310120 PC Applications 1500.0
3 400230 Arabic Language 1000.0
4 300600 Translation 1200.0
Select one of the above numbers(1-4): 2

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 1

1 311224 Object Oriented Programming 1700.0
2 310120 PC Applications 1500.0
3 400230 Arabic Language 1000.0
4 300600 Translation 1200.0
Select one of the above numbers(1-4): 3

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 2

1 311224 Object Oriented Programming 1700.0
2 310120 PC Applications 1500.0
3 400230 Arabic Language 1000.0
Select one of the above numbers(1-3): 2

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 3

1 311224 Object Oriented Programming 1700.0
2 400230 Arabic Language 1000.0

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 0

1 - Select a student.
2 - List all students
3 - List all students & registered courses
0 - Exit
Select one of the above numbers(0-3): 2

1 ali ahmad 1/1/1980 200410123 IS
2 salem awad 5/12/1970 200010234 CS
3 tamer mohsen 4/10/1985 200610234 CE

1 - Select a student.
2 - List all students
3 - List all students & registered courses
0 - Exit
Select one of the above numbers(0-3): 3

ali ahmad 1/1/1980 200410123 IS
1 311224 Object Oriented Programming 1700.0
2 400230 Arabic Language 1000.0

salem awad 5/12/1970 200010234 CS
No registered courses

tamer mohsen 4/10/1985 200610234 CE
No registered courses

1 - Select a student.
2 - List all students
3 - List all students & registered courses
0 - Exit
Select one of the above numbers(0-3): 0

C: \hassan>
May 15 '07 #1
4 1441
JosAH
11,448 Expert 8TB
Nice assignment; what is your question?

kind regards,

Jos
May 15 '07 #2
r035198x
13,262 8TB
Project requirements:


• Load a list of available courses from the text file “courses.txt” (file is given) into an ArrayList. File format is as follows:

311224 1700 Object Oriented Programming

Where: 311224 is course No, 1700 is course price, and “Object Oriented Programming” is course Name.

• Load a list of students from the text file “students.txt” (file is given) into an ArrayList. File format is as follows:

Ali Ahmad 1/1/1980 200410123 IS

Where: Ali is first name, Ahmad is second name, 1/1/1980 is birth date, 200410123 is student ID and IS is the major.

• Display the following menu:
1 - Select a student.
2 - List all students
3 - List all students and registered courses
0 - Exit
Select one of the above numbers(0-3):

• When 1 is selected, list all students and ask user to select one.
• When a student is selected, display the following menu:

1 - Add a course
2 - drop a course
3 - List student’s registered courses
0 - Return to main menu
Select one of the above numbers(0-3):

The above commands act on the selected student.

See the program RUN below and let your program work like it.
Important Notes:
- Your program must use one inheritance and at least 4 classes (Student, Course,
FileReader, Test class and one class to inherit from).
- Use the LogFileReader of the weblog-analyzer project and customize it as needed to
read courses and student files.
- Make sure you have a class named Test. Also, make sure you write a main() method
inside it. I am going to compile and run this class only.
- Your program must accept input and display output exactly as shown in the
program run below. Same sequence is required. I am going to use automated
input to test your program. If your program fails the automated test

Use this main function in your Test class:

public static void main( String [] arg )
{
Test t = new Test();
t.start();
}

Below is a program run. Make sure your program runs exactly like this:

C: \hassan> java Test

1 - Select a student.
2 - List all students
3 - List all students & registered courses
0 - Exit
Select one of the above numbers(0-3): 1

1 ali ahmad 1/1/1980 200410123 IS
2 salem awad 5/12/1970 200010234 CS
3 tamer mohsen 4/10/1985 200610234 CE
Select one of the above numbers(1-3): 1

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 1

1 311224 Object Oriented Programming 1700.0
2 310120 PC Applications 1500.0
3 400230 Arabic Language 1000.0
4 300600 Translation 1200.0
Select one of the above numbers(1-4): 1

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 1

1 311224 Object Oriented Programming 1700.0
2 310120 PC Applications 1500.0
3 400230 Arabic Language 1000.0
4 300600 Translation 1200.0
Select one of the above numbers(1-4): 2

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 1

1 311224 Object Oriented Programming 1700.0
2 310120 PC Applications 1500.0
3 400230 Arabic Language 1000.0
4 300600 Translation 1200.0
Select one of the above numbers(1-4): 3

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 2

1 311224 Object Oriented Programming 1700.0
2 310120 PC Applications 1500.0
3 400230 Arabic Language 1000.0
Select one of the above numbers(1-3): 2

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 3

1 311224 Object Oriented Programming 1700.0
2 400230 Arabic Language 1000.0

1 - Add a course
2 - drop a course
3 - List student's registered courses
0 - Return to main menu
Select one of the above numbers(0-3): 0

1 - Select a student.
2 - List all students
3 - List all students & registered courses
0 - Exit
Select one of the above numbers(0-3): 2

1 ali ahmad 1/1/1980 200410123 IS
2 salem awad 5/12/1970 200010234 CS
3 tamer mohsen 4/10/1985 200610234 CE

1 - Select a student.
2 - List all students
3 - List all students & registered courses
0 - Exit
Select one of the above numbers(0-3): 3

ali ahmad 1/1/1980 200410123 IS
1 311224 Object Oriented Programming 1700.0
2 400230 Arabic Language 1000.0

salem awad 5/12/1970 200010234 CS
No registered courses

tamer mohsen 4/10/1985 200610234 CE
No registered courses

1 - Select a student.
2 - List all students
3 - List all students & registered courses
0 - Exit
Select one of the above numbers(0-3): 0

C: \hassan>
Have a look at the site FAQ on posting homework questions.
May 15 '07 #3
smsm
2
Nice assignment; what is your question?

kind regards,

Jos
i've 2 solve .. this assignment using java blue j
May 15 '07 #4
JosAH
11,448 Expert 8TB
i've 2 solve .. this assignment using java blue j
Well go for it then; *you* have to solve it. When you're stuck you're more than
welcome to ask questions about your problems and we'll try to help you out.
If you want someone else to do your homework for you a better place would
be www.rentacoder.com, but you have to pay them for the work they did for
you, just like in the real world.

kind regards,

Jos
May 15 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Snake | last post by:
Hi guys, I have question about classes. when u create class called Test. and you define variable Test c; so does this act like( a variable c of type Test pointing to an abject )? The thing that...
13
by: Joe Black | last post by:
Just to inform you guys that i have only like 2 weeks that i took my first classes in c++, and my proffesor now is asking me to solve this problem: /// Using a function create a Win32 Console...
3
by: JahanzebSaleem | last post by:
Hi guys, I am trying to make a web site and I have a forum in the website, I am having a bit of hard time to fix some of the stuff, If any one of you guys can help me with it I will really...
13
by: yoyoyo | last post by:
hi everybody! i'm trying to learn javascript in order to build a function that i need to put in my website.. since i have not so much time to do that i decided to ask to u in the net..probably...
0
by: Freebird | last post by:
Hello you guys, I've with a problem, I hope you guys can help me. I need, from server b, to connect to server a, over the internet, to be able to open a .txt file and make it a copy to insert...
13
by: sandeep chandra | last post by:
Hey guys, I am new to this group.. i never know wot s going on in this group.. but wot made be brought here is cpp.. guys am currently a part of onw reaserch ... am new to everything.. i...
13
by: dakboyan | last post by:
Hiya guys, im kinda new to posting here even though ive been lurking for awhile..reading up on topics that had helped me in building a database for my school. But now i need further help. To tell...
1
by: earnswellme | last post by:
hello good evening to everyone: Tomorrow is our practical exam (for our final exam) and we will have this final exam, our teacher give us the clue that we will write a program that will used...
1
by: skygenn | last post by:
hi guys im new at c++ program and im 1st year taking up I.T our prof in c++ gave us an assignments but she didnt even explain us how to begin doing it? honestly i have no idea how to begin it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.