Hey guys! I'm a bit new to java and I need your help. I do not need the WHOLE code for this program, I just want to learn how to do this. I just need to learn what should I use (loops, nested loops, etc..)and how should I do it. I do not expect someone to do the whole code for me. I just want someone to teach me.
I have to create a planner application in Java that finds a common free time of 2 to 4 people and determine a schedule when they can meet and discuss.
Features:
1. User can enter their weekly schedules into the program. The input must take the schedule that represents their busy times. The program should ask for the ff. inputs:
a. Name of user
b. Earliest time possible to arrive at school (ETP)
c. Latest time possible to leave school (LTP)

Example:

Username: Bob
ETP: 8:00am LTP: 8:00pm
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday

Username: Steve
ETP: 9:00am LTP: 9:00pm
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday


The program creates a detailed schedule of their common free time. It should:
a. Summarize the time periods available
b. Round up to either --:30 or --:00 periods
c. Calculate the duration (in hours and minutes)

Day Time Duration

Monday
Tuesday
Wednesday
Thursday
Friday
Saturday

Recommended Answers

All 11 Replies

What are you questions?
Will this app use GUI or commandline input?
Will people's schedules be read in from a file or how?
What design ideas do you have so far?

What are you questions?
- How should I do this, and with what codes.
Will this app use GUI or commandline input?
- GUI. This past few days I've been trying out GUIGenie. Got any other programs better than that?
Will people's schedules be read in from a file or how?
-The people will input their schedules.
What design ideas do you have so far?
-Well, with GUIGenie, I've worked on basic stuff of the program (jPanel, jTextbox, etc..) My only problem is that I'm not quite sure what codes and syntax I should use.

How should I do this, and with what codes.

You have not said anything useful about your design.
What data do you need to get from the user?
What GUI design do you need to get that input?

The user inputs his/her name, ETP/LTP, and schedules for each day.
And what do you mean by GUI design?

GUI design

What displays, buttons, menus, input fields, etc are to go where on the GUI.
Basically what does the user see when he starts the application and as he uses it.

Member Avatar for hfx642

Write down what it is you need to do to accomplish your task.
Break down each step.
Break down each step.
Break down each step.
Break down each step.
Break down each step.
Eventually, you'll get to a point where you can translate YOUR notes into code.
Start with what NormR1 said, and go from there.

If you have code, please post it here with your questions. Or the error messages.

Please wrap the source code in code tags to preserve its formatting. Use the CODE icon above the input box.

Well, sir, that's my problem. I don't know how to start it off. I mean, it's hard to explain, but what do I use?

Member Avatar for hfx642

Get a beginners Java book (either from a book store or the library) and start reading.
Code and run the examples.
You'll soon learn what we are talking about.

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.