posted 11 years ago
Create a mini user information management system that asks the user to enter an employee's first name, last name, and salary. When the user clicks on a Confirm button, the information entered will be displayed to the user cummulatively. E.g. if the user enters the first employee, and clicks on the button, one employee information will be displayed. If the user enters another employee and clicks on the button, the information for two employees will be displayed. Hint: you will need to create three arrays and assign values to them.
Things to think about before you start:
1. Why do we need three arrays?
2. How to use three arrays to store information?
3. How to make the arrays keep the previous information between button clicks?
4. How to retrieve all the information when the button is clicked?
5. How to make sure the information for each employee is correct? i.e. the first name, last name and the salary for an employee is correct (no cross reference).
These are the directions that I have. This is the code I've tried to do. I can get the first employee to display, but I'm not sure how to create the loop which allows me to add in more users. Any help would be greatly appreciated. Thanks!