In: Computer Science
The local power company has three different pay periods. Some workers are paid via the job, some are paid weekly, and others are paid only once a month. The accounts payable department has had a horrific time paying all of these by hand and trying to ensure that the appropriate pay goes to the appropriate employee. The accounts payable department has asked HR to have a program created that allows them to input the name of the employee and have the program showcase the employee's pay. In order to do this, your program will have to draw on an external database or stylesheet to populate the data. Assume this has already been done for you. You must have a button to import the data. You should then have a text box for input of the employee name. The third button should then populate the pay field based upon the name.
Come up with a pseudo-code document that discusses how you might accomplish this program.
Finally, come up with a diagram for the flowchart and the UI of the program.
Let's suppose our program has two TextBox (TextBox1 and TextBox2) and one button element (Button1). User enter Employee name in TextBox1 and then click Button1 to calculate pay. Pay is displayed in TextBox2.
Pseudocode:
On Click event of Button1:
1. Assign text/contents of TextBox1 into a variable emp
2. Use variable emp to fetch pay data of the employee from external database/spreadsheet
3. Perform any necessary calculation on the data retrieved (if required) to finalize pay
4. Display the calculated pay in TextBox2
Flowchart and sample UI (based on windows) is given below:
i hope it helps..
If you have any doubts please comment and please don't dislike.
PLEASE GIVE ME A LIKE. ITS VERY IMPORTANT FOR ME