PRG 218 ENTIRE COURSE | University Of Phoenix
- University of Phoenix / PRG 218
- 15 Feb 2019
- Price: $45
- Other / Other
- PRG 218 ENTIRE COURSE | University Of Phoenix
- PRG 218 ENTIRE COURSE
WEEK 1
PRG 218 Week 1 Individual Assignment Pseudocode
Write pseudocode for the following scenario:
You are driving a car coming to an intersection that has a stop sign. You will make a right turn at the intersection.
Determine the logical steps involved and write the pseudocode.
Answer the following questions when completing your assignment:
- What are your inputs?
- What is your expected output?
- What are the logical steps the automobile takes to complete the turn?
WEEK 2PRG 218 Week 2 Individual Assignment Overtime Pay Compile Errors
Use the code in Appendix B for this assignment.
Correct the compile errors to arrive at the following output.
- Sample output:
Enter the Employee Name = Mary
Enter the hours worked = 43
Enter his or her hourly wage = 3.00
Employee Name ............. = Mary
Base Pay .................. = 120
Hours in Overtime ......... = 3
Overtime Pay Amount........ = 13.5
Total Pay.................. = 133.5
WEEK 3
PRG 218 Week 3 Individual Assignment Programming Using Arrays and Pointers
Use the program, Arrays of Pointers, in Ch. 4, of the text on p. 157 of as a starting point for this assignment.
Refer to Appendix C for full directions on the changes to the program you must make to complete this assignment.
WEEK 4PRG 218 Week 4 Individual Assignment Programming Using Structures and Classes
Use the program in Ch. 7 of Beginning Visual C++ 2012 on p. 292 as a starting point for this assignment.
Modify the program in the following ways:
- Add a third box to the calculation.
- Calculate length (L), width (W), and height (H) for the third box.
- Calculate the total volume for all three boxes in question.
Answer the following questions in your own words after making the required modifications to the program:
- Under what circumstances must you use classes?
- Why do you use a class instead of a structure? Are they interchangeable? Explain your answer.
- Are classes more useful than structures? Why or why not?
WEEK 5PRG 218 Week 5 Individual Assignment Datamax, Inc. Overtime Pay Program
Resources: Appendix D
Examine the following situation:
Your company, Datamax, Inc., is in the process of automating its payroll systems. Your manager has asked you to create a program that calculates overtime pay for all employees. Your program must account for employee's salary, total hours worked, and hours worked more than 40 in a week. It must then provide an output that is useful and easily understood by company management.
Compile your program using the following background information and the code outline in Appendix D.
Submit your project as an attachment, including the code and the output.
Company background:
- The company has three employees: Mark, John, and Mary.
- The end user needs to be prompted for three specific pieces of input--name, hours worked, and hourly wage.
- Calculate overtime if the input is greater than 40 hours per week.
- Provide six test plans to verify the logic within the program.
- Plan 1 must display the proper information for employee #1 with overtime pay.
- Plan 2 must display the proper information for employee #1 with no overtime pay.
- Plans 3-6 are duplicates of plan 1 and 2 but for the other two employees.
Program requirements:
- Define a base class to use for the entire program.
- The class holds the function calls and the variables related to the overtime pay calculations.
- Define one object per employee. Remember that there will be three employees.
- Your program must take the objects created and implement calculations based on the total salaries, total hours, and total number of overtime hours. See the Employee Summary Data section of the sample output.
Logic steps to complete your program:
- Define your base class.
- Define your objects from your base class.
- Prompt for user input, updating your object classes for all three users.
- Implement your overtime pay calculations.
- Display overtime or regular time pay calculations. See the sample output.
- Implement object calculations by summarizing your employee objects and display the summary information in the example.
Sample output:
Welcome to the Employee Pay Center
Enter the employee name = John
Enter the hours worked = 44
Enter his or her hourly wage = 3.33
Enter the employee name = Mary
Enter the hours worked = 33
Enter his or her hourly wage = 2.22
Enter the employee name = Mark
Enter the hours worked = 29
Enter his or her hourly wage = 2.22
Employee Name ............. = John
Base Pay .................. = 133.20
Hours in Overtime ......... = 4
Overtime Pay Amount........ = 19.98
Total Pay ................. = 153.18
Employee Name ............. = Mary
Base Pay .................. = 73.26
Hours in Overtime ......... = 0
Overtime Pay Amount........ = 0.00
Total Pay ................. = 73.26
Employee Name ............. = Mark
Base Pay .................. = 64.38
Hours in Overtime ......... = 0
Overtime Pay Amount........ = 0.00
Total Pay ................. = 64.38
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% EMPLOYEE SUMMARY DATA%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Total Employee Salaries ..... = 290.82
%%%% Total Employee Hours ........ = 106
%%%% Total Overtime Hours......... = 4
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PRG 218 Week 5 Individual Assignment Final Project Assignment
Exchange your final project with a classmate.
Provide a brief 200-word summary of you overall impressions of your classmates work, and any potential changes you might suggesT