Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
P. 1
TURBO-C CODE EXAMPLE (compute for the total net income)

# TURBO-C CODE EXAMPLE (compute for the total net income)

Ratings: (0)|Views: 16,816|Likes:
==========
[Copy in notepad and save as Filename.C]

PROBLEM: Make a program that will compute for the net income of a particular employee. You have to accept name, position, and number of hours worked. The position has three (3) categories; Manager rate per hour P500; if supervisor rate per hour is P400; if employee rate per hour is 300.Then after accepting the number of hours worked.

for the bonus

if gross >= 8000 bonus = 1000
gross >= 5000 bonus = 750
gross >= 3000 bonus = 0

then compute for the deduction
sss = 10%
Medical = 100
tax
gross >= 7000 tax is 15%
gross >= 4000 tax is 10%
gross >= 2000 tax is 5%

then compute for the net income
gross + bonus - total deduction; then display the net income
==========
[Copy in notepad and save as Filename.C]

PROBLEM: Make a program that will compute for the net income of a particular employee. You have to accept name, position, and number of hours worked. The position has three (3) categories; Manager rate per hour P500; if supervisor rate per hour is P400; if employee rate per hour is 300.Then after accepting the number of hours worked.

for the bonus

if gross >= 8000 bonus = 1000
gross >= 5000 bonus = 750
gross >= 3000 bonus = 0

then compute for the deduction
sss = 10%
Medical = 100
tax
gross >= 7000 tax is 15%
gross >= 4000 tax is 10%
gross >= 2000 tax is 5%

then compute for the net income
gross + bonus - total deduction; then display the net income

Categories:Types, School Work

### Availability:

See more
See less

10/03/2014

'"@T_PEZ@N. B) \`tqpez`norr`bLuohgg)dgc"''"\QGAN@C2 Cof` o |gmoc {ho{ }enn dgc|p{` jg {h` i`{ eidgc` gj o |o{edpno`c|ngu``) Ugp hoz` {g odd`|{ ioc`. |gte{egi. oik ipca` gj hgpt }gf`k) [h`|gte{egi hot {h`` (4% do{`mge`t6 Coiom` o{` |` hgp \0<<6 ej tp|`zetg o{` |`hgp et \;<<6 ej `c|ngu`` o{` |` hgp et 4<<)[h`i oj{` odd`|{eim {h` ipca` gj hgpt }gf`k)jg {h` agiptejmgtt 93 8<<<agipt 3 ?<<<mgtt 93 0<<<agipt 3 =0<mgtt 93 4<<<agipt 3 <{h`i dgc|p{` jg {h` k`kpd{egittt 3 ?<C`kedon 3 ?<<{oxmgtt 93 =<<<{ox et ?0mgtt 93 ;<<<{ox et ?<mgtt 93 1<<<{ox et 0{h`i dgc|p{` jg {h` i`{ eidgc`mgtt & agipt # {g{on k`kpd{egi6 {h`i ket|nou {h` i`{ eidgc`"'

'"DGK@"'\$eidnpk` >t{keg)h9ei{ o. a. d. k. `6jngo{ r. u. x. }. z6coei (%vdntd (%6|ei{j (!^i @i{` Ioc`2 !%6tdoij (!t!.*o%6|ei{j (!^i ^i >?9 Coiom` >19 Tp|`zetg >49 @c|ngu`` ^i^i!%6|ei{j (! @i{` \gte{egi2 !%6tdoij (!t!.*a%6t}e{dh(a%dot` -?-2v|ei{j (!^i ^i Qo{`2 \0<<)<<!%6|ei{j (!^i ^i Ig) gj hgpt }gf`k2 !%6tdoij (!k!.*d%6k3d"0<<6|ei{j (!^i Mgtt2 k!.k%6ej(k938<<<%

v|ei{j (!^i ^i Agipt2 ?<<<!%6s`nt` ej(k930<<< ** k>3=555%v|ei{j (!^i ^i Agipt2=0<!%6s`nt` ej(k93< ** k>3;555%v|ei{j (!^i ^i Agipt2<!%6s|ei{j (!^i ^i ^i K`kpd{egi2!%6u3k"<)?6|ei{j (!^i ^i TTT2 <)1j!.u%6x3?<<6|ei{j (!^i ^i C`kedon2 <)1j!.x%6|ei{j (!^i ^i [ox2 !%6ej(k93=<<<%vr3k"<)?06|ei{j (!<)1j!.r%6s`nt` ej(k93;<<< ** k>3:555%v