# 4-in-1

Very easy 4-in-1 projects

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. *.cpp code to be returned to buyer, using Beginner C++ coding.

#1) Write a program that inputs a five-digit number, separates the number into its individual digits and prints the digits separated from one another by three spaces each. (Hint: use the integer division division (/) and modulus (%) operators. For example, if the user types in 42339, the program should print:

4 2 3 3 9

#2) Write a program that calculates and prints the product of the odd integers from 1 through 19. (Hint: Use For Loop incremented in counter of plus 2)

#3) Write a program that calculates the factorial of a positive integer n (written n! and pronounced "n factorial"). What is the largest integer that you can calculate the factorial for if the integer is of int data type? Print out your results including that integer value where incorrect results may start. (Buyer will do this)

#4) A company pays its employees as "managers" (who receive a fixed weekly salary), "hourly workers" (who receive a fixed hourly wage for up to the first 40 hours they work and "time-and-a-half" or 1.5 times their hourly work for overtime worked over 40 hours), "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 worker works on only one type of item). Write a program to compute 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 pay code 1, hourly workers have pay code 2, commission workers have code 3, and pieceworkers have code 4. Use a "switch(case)" structure to contol the computation of each employees pay based on that employees pay code. Within the switch, prompt the user (ie, the payroll clerk) to enter the appropriate facts your program needs to calculate each employees pay based on that employee's pay code. Enter at least one test run for each type employee.

## Platform

C++ on Windows 2000

Must be completed by 11/02/2002.

*.cpp file to be delivered.

This is a Beginner's C++ class.

Tentang Majikan:
( 14 ulasan ) United States

ID Projek: #2880466

carlockj

See private message.

\$7 USD dalam 14 hari
(7 Ulasan)
1.2

## 4 pekerja bebas membida secara purata \$10 untuk pekerjaan ini

herculesevw

See private message.

\$5.02 USD dalam 14 hari
(79 Ulasan)
4.7
fabianjones

See private message.

\$3.4 USD dalam 14 hari
(20 Ulasan)
3.3
phluidvw

See private message.

\$25.5 USD dalam 14 hari
(0 Ulasan)
0.0