Question 21 Complete the object-oriented design for an Employee class that determines the weekly salary for a company's

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Question 21 Complete the object-oriented design for an Employee class that determines the weekly salary for a company's

Post by answerhappygod »

Question 21 Complete The Object Oriented Design For An Employee Class That Determines The Weekly Salary For A Company S 1
Question 21 Complete The Object Oriented Design For An Employee Class That Determines The Weekly Salary For A Company S 1 (247.78 KiB) Viewed 52 times
Question 21 Complete The Object Oriented Design For An Employee Class That Determines The Weekly Salary For A Company S 2
Question 21 Complete The Object Oriented Design For An Employee Class That Determines The Weekly Salary For A Company S 2 (426.85 KiB) Viewed 52 times
Question 21 Complete The Object Oriented Design For An Employee Class That Determines The Weekly Salary For A Company S 3
Question 21 Complete The Object Oriented Design For An Employee Class That Determines The Weekly Salary For A Company S 3 (263.68 KiB) Viewed 52 times
Question 21 Complete The Object Oriented Design For An Employee Class That Determines The Weekly Salary For A Company S 4
Question 21 Complete The Object Oriented Design For An Employee Class That Determines The Weekly Salary For A Company S 4 (297.75 KiB) Viewed 52 times
any help with this please
Question 21 Complete the object-oriented design for an Employee class that determines the weekly salary for a company's full-time employee. Each employee record contains the employee number, name and hourly wage. Your class is to receive the data, validate the hourly wage and calculate the weekly salary assuring that all full-time employees are paid for 40 hours per week. The hourly wage validation is to check that hourly wage is less than $30 per week. If the wage is greater than $30, then it is to revert to $30 (no validation message for this situation), See the following for additional information on this problem. All class fields and methods should be named as shown in the chart. Employee Class Table Class Attributes Responsibilities Operations Employee empNo Receive employee number, name, and hourly wage +Employee() +setEmpNo +setName +setHourlyWage name Validate hourly wage tsetHourlyWage hourlyWage Calculate weekly salary -calcWeeklySalary Display weekly salary + displayWeeklySalary Assuming the above information, the algorithm will be shown below with relevant line numbers. You will need to fill in the missing values for each underlined field at the end of the algorithm in the indicated area next to the associated line numbers which complete the algorithm and the associated test or driver algorithm used for testing the class algorithm. You MUST specify the class name, attribute names and algorithm names as they appear in the chart and class diagram in order to get credit for the various bits when filling in the various textbox elements. Carefully add the missing algorithm elements to the corresponding number textboxes below: line 1:class line 2: line 3: 1/ Class Attributes line 4: line 5: line 6: line 7: line 8: // Constructor line 9: line 10: end line 11:

end then line 9: O line 10: line 11: line 12: W Setter Methods line 13: setEmpNo (inEmpNo) line 14: line 15: end line 16: line 17: setName(inName) line 18: name inName line 19: end line 20: line 21 setHourlyWage(inHourlyWage) line 22: if in HourlyWage line 23: hourlyWage line 24 else line 25 hourlyWage line 26 endit line 27 end line 28: line 29: calcWeeklySalary(). line: 30: weekly Salary inHourlyWage 40 line 31: end line 32: line 33: displayWeeklySalary() line 34 line 35: display Weekly Salary for name, line 36 end line 37:end ON line 38 line 39: module employee Test line 40: 17 Instantiate the Class as an Object line 41: empl as new line 42 line 43 17. Update the hourly rate line 445 emp1 (25.00) line 45 emp1.setName (Smith line 465 empl.setEmplo (1) line 47 line 48 Print the weekly salary line 49 emp1. O line 50:end empNo, ') is ', weeklySalary O Provide the answers below. Reference line numbers above to determine what underlined field value to enten in the following textboxes.

line 1: line 4: line 5: line 6: line 9: line 14: first underlined field line 14 second underlined field line 22: line 23: line 25: line 34: line 41: first underlined field line 41: second underlined field line 44: 13

line 34: line 41: first underlined field line 41: second underlined field line 44: line 49:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply