Question

In: Computer Science

The local power company has three different pay periods. Some workers are paid via the job,...

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.

Solutions

Expert Solution

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


Related Solutions

Write a program that calculates pay for either hourly paid workers or salaried workers. Hourly paid...
Write a program that calculates pay for either hourly paid workers or salaried workers. Hourly paid workers are paid their hourly pay rate times the number of hours worked. Salaried workers are payed their regular salary plus any bonus they may have earned. The program should declare two structures for the following data: • Hourly Paid ◦HoursWorked ◦ HourlyRate • Salaried ◦ Salary ◦ Bonus The program should also declare a structure with two members. Each member should be a...
Write a C++ program that calculates pay for either hourly paid workers or salaried workers.
Write a C++ program that calculates pay for either hourly paid workers or salaried workers. Hourly paid workers are paid their hourly pay rate times the number of hours worked. Salaried workers are payed their regular salary plus any bonus they may have earned. The program should declare two structures for the following data:• Hourly Paid◦ HoursWorked◦ HourlyRate• Salaried◦ Salary◦ BonusThe program should also declare a structure with two members. Each member should be a structure variable: one for the...
Increasing the salary workers are paid while decreasing pay tied to performance
Increasing the salary workers are paid while decreasing pay tied to performancedecreases the risk assumed by employers but increases the risk assumed by workers.increases the risk assumed by both workers and employers.decreases the risk assumed by both workers and employers.increases the risk assumed by employers and decreases the risk assumed by workers.
A test is made of five different incentive-pay schemes for piece workers. Eight workers are assigned...
A test is made of five different incentive-pay schemes for piece workers. Eight workers are assigned randomly to each plan. The total number of items produced by each worker over a 20-day period is recorded: A B C D E 1106 1214 1010 1054 1210 1203 1186 1069 1101 1193 1064 1165 1047 1029 1169 1119 1177 1120 1066 1223 1087 1146 1084 1082 1161 1106 1099 1062 1067 1200 1101 1161 1051 1109 1189 1049 1153 1029 1083 1197...
In a small job shop department there are four jobs to be assigned to three workers....
In a small job shop department there are four jobs to be assigned to three workers. The table below indicates the weekly costs incurred by assigning each worker to each job. The objective is to find the optimal assignment that will minimize the total cost.                      Worker/Job │   I      II     III    IV A     │ 12      10    11    15   B     │ 13      16    14    12   C     │ 11 12    13    10       Formulate this problem as a linear programming model...
Some employers pay their workers with a hybrid compensation program which is composed of a flat...
Some employers pay their workers with a hybrid compensation program which is composed of a flat salary plus incentive pay. For example, a pharmaceutical sales associate may be paid a base salary of $2,000 per month plus a 10% commission on their sales. The compensation scheme can be altered by offering more incentive for the workers (e.g., a lower base salary and a higher commission) or more safety and fairness for workers (e.g., a higher base salary and a lower...
A shoe company wants to test if three groups of workers have different salaries. Group (1):...
A shoe company wants to test if three groups of workers have different salaries. Group (1): 23, 41, 54, 66, 78 Group (2): 45, 55, 60, 70, 72 Group (3): 18, 30, 34, 40, 44 Use kruskall Wallis test with α = 0.05.
X Company has several insurance policies covering different periods. On the Balance Sheet, Prepaid Insurance at...
X Company has several insurance policies covering different periods. On the Balance Sheet, Prepaid Insurance at the beginning of the period was $23,316; Prepaid Insurance at the end of the period was $25,701. Insurance expense for the period was $30,393. What were the insurance premium payments during the period?
An employee applied for a job in a company and agreed to be paid as follows:...
An employee applied for a job in a company and agreed to be paid as follows: He will recieve P1 on the 1st day, P2 on the 2nd day, P4 on the 3rd day, P8 on the 4th, and so on. ( meaning his daily pay doubles each day)> How much will he recieve the at the end of 30 days? use for loop or looping
you have taken a job with a local manufacturing company. Your boss has asked you to...
you have taken a job with a local manufacturing company. Your boss has asked you to analyze a potential new product, and to recommend if the company should produce and sell the product. Specifically, your boss wants you to prepare a spreadsheet that shows the free cash flows the product would generate, and shows what the product’s net present value and internal rate of return are and what your recommendation is (see Table 12.1 in the textbook). Marketing information Your...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT