Click here to Skip to main content
15,562,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
so I'm doing a hr system to learn some new coding and I'm having trouble understanding these four points if anyone can help.

It's not a code, but I'll treat it as one for the sake of clarity!

If anyone could assist with a diagram or anything else useful, that would be fantastic; I tried to understand it and draw a diagram for it but couldn't. This is all GUI! Thank you for reading.

What I have tried:

<pre lang="Java">

Details for the functions in the menu:

Add a new employee: Read the employee’s (id) from the user, and validate that it does not already exist in the array otherwise display an appropriate message and go back to the menu. After validating the id, read from the user: the job title. Assign the value “N/A” to contractDate, startTime, and endTime. Then, assign value false to hired attribute, and the value 0 to the hiring frequency.
Start a hiring contract: (used when a customer requests an employee) Read the employee’s (id) from the user. Make sure the employee exists and is not yet hired, then read the contract’s information: contractDate, startTime, and endTime. Also, set the hired value to true, and the hiring frequency will be incremented by
The program should then display the employee’s information and state that he/she is now ready for starting the assigned job. In case if the employee is not existed or he/she is already hired, then display appropriate messages and go back to the menu. Note: Assume that the user will enter the contract’s information correctly, i.e. the date is today or in the future, and the start time is before the end time.
End a hiring contract: (used when the employee is done and checks back into the company) Read the employee’s (id) from the user. Make sure the employee exists and is hired, then display the employee’s information and contract’s total duration. To end this hiring contract, reset the employee’s values so that he/she can be hired again: assign the value “N/A” to contractDate, startTime, and endTime. Then, assign the hired attribute’s value back to false. In case if the employee is not existed or he/she is not hired, then display appropriate messages and go back to the menu.
Display an employee’s info: Read the employee’s (id) from the user. If the employee is not existed, then display an appropriate message and go back to the menu. Otherwise, display the employee’s information.
Posted
Updated 5-May-21 22:26pm
Comments
SeanChupas 5-May-21 16:32pm    
These are basically step by step instructions so what would a diagram give you?
Bishara Babish 5-May-21 16:39pm    
i dont really understand the concept of it, it has to be a diagram or something as i heard from my classmates. also isnt add new employee same as start hiring contract? thats the thing im lost.
Gerry Schmitz 5-May-21 16:57pm    
https://asq.org/quality-resources/flowchart
Bishara Babish 5-May-21 17:04pm    
i lterraly said i tried,welp close this question,ill help myself out!
Dave Kreskowiak 5-May-21 20:33pm    
Yeah, but you didn't ask the one person you should be asking. The person running the class you're in.

1 solution

We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900