Sunday, December 5, 2010

IT-406 Midterm Exam (Project 1)

** Minterm Exam (IT406)

** Filename: Project1.cpp

** Project #1:

** Project Description: A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who recieve a fixed hourly wage for up to the first 40 hours they work and "time-and-a-half," i.e., 1.5 times their hourly wage, for overtime hours worked), commission workers (who receive $250 plus 5.7% of their gross weekly sales), or pieceworkers (who receive a fixed amount of money per item for each of the items they produce--each pieceworker in this company works on only one type of item). Write a program tocompute the weekly pay for each employee. You do not know the number of employees in advance. Each type of employee has its own pay code: Managers have paycode 1, hourly workers have code 2, commission workers have code 3 and pieceworkers have code 4. Use a switch to compute each employee's pay based on that employee's paycode. Within the switch, prompt the user (i.e., the payroll clerk) to enter the appropriate facts your program needs to calculate each employee'spay based on that employee's paycode.

** Output: The number of total employees paid.

The number of Managers paid.

The number of Hourly workers paid.

The number of Commission workers paid.

The number of Piece Workers paid.


** Input: Paycode of employee.

Code 1:(Manager Info)

- Weekly Salary

Code 2:(Hourly Worker Info)

- Hourly Salary

- Hours Worked

Code 3:(Commission Worker Info)

- Gross Weekly Sales

Code 4:(Piece Worker Info)

- Number of Pieces

- Wages per Piece


** Algorithm: Instruct user of programs purpose.

List paycodes and instruct user to enter a paycode

or press -1 to end program.

When paycode is entered go to the case in the switch

which will compute the pay for that worker.

Each time a paycode is used count the number of times.

When -1 is pressed instead of paycode then print out

the total number of employees to be paid.

-List# of:

-Managers

-Hourly Workers

-Commission Workers

-Piece Workers

End Program

Thursday, December 2, 2010

IT406 - C plus plus

Research Work... (1/2 sheet of paper)


1. What are the iterative in c++ and give one example in every iterative..

Submit your output in my office..thank you!!

CP1

Exer5

1. Create a program that will gives a discount of 100 pesos to a customer if the shirt bought is XL and the price is greater than 500 pesos, a discount of 50 pesos if the shirt bought is L and the price is greater than 400.

Followers

Visitor

free counters

FEEDJIT Live Traffic Feed