[Show all top banners]
Back to: Kurakani General Refresh page to view new replies
 Help on c program
[VIEWED 3227 TIMES]
SAVE! for ease of future access.
Posted on 06-20-06 7:59 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Is there any one who can help on C programming? This my first program class and i am having really hard time understanding it. would you guys PLEASE help me out?

here is the question.
A company pays its employees as managers (who receive a fised weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 40 hrs they work and time and half for overtime hrs), commision workers(who receive a $250 olus 5.7% of their gross weekly sales), or pieceworkers(who receive a fixed amount of one type of item). write a program to compute the weekely 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 tha 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's pay based on that employee's paycode. (your program must use loop)
 
Posted on 06-20-06 8:55 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

afu ta choreera pass bhako yaar ....
 
Posted on 06-21-06 1:09 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

esactly like in the question says use SWITCH in the SWITCH create several CASE as many as you need assign some variable to each case so that when a user input "pay code" the programe uses that particular code/case in side each case write formula that computes the payrole. It is simple you just need to know how to use SWITCH, I am guessing that you already have a good knowledge of condition i mean using if... else...

Happy coding...
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 200 days
Recommended Popular Threads Controvertial Threads
рдбреАрднреА рдкрд░реЗрди рднрдиреЗ рдЦреБрд╕рд┐ рд╣реБрдиреБ рд╣реЛрд╕реН ! рдЕрдореЗрд░рд┐рдХрд╛рдорд╛рдзреЗрд░реИ рдХрд╛ рд╢реНрд░реАрдорддреА рдЕрд░реНрдХреИрд╕рдБрдЧ рдкреЛрдЗрд▓рд╛ рдЧрдПрдХрд╛ рдЫрдиреН !
рд╢реАрд░реНрд╖рдХ рдЬреЗ рдкрдирд┐ рд╣реБрди рд╕рдХреНрдЫред
What are your first memories of when Nepal Television Began?
Sajha Poll: рдиреЗрдкрд╛рд▓рдХрд╛ рд╕рдмреИрднрдиреНрджрд╛ рдЖрдХрд░реНрд╖рдХ рдорд╣рд┐рд▓рд╛ рдХреЛ рд╣реБрдиреН?
ChatSansar.com Naya Nepal Chat
NRN card pros and cons?
Basnet or Basnyat ??
рдирд┐рдЧреБрд░реЛ рдерд╛рд╣рд╛ рдЫ ??
Nas and The Bokas: Coming to a Night Club near you
TPS Re-registration
рдЕрдореЗрд░рд┐рдХрд╛рдорд╛ рдЫреЛрд░рд╛ рд╣рд░рд╛рдПрдХреЛ рд╕реВрдЪрдирд╛
рдУрдЪреНрдЫреНрдпрд╛рди рдореБрддреНрдиреЗ рд╕рдорд╕реНрдпрд╛ ( confession )
TPS Re-registration case still pending ..
Do nepalese really need TPS?
Drawback for applying NRN card
nrn citizenship
Breathe in. Breathe out.
Democrats are so sure Trump will win
рдвреНрдпрд╛рдЙ рдЧрд░реНрджрд╛ рджрд╕реИрдБрдХреЛ рдЦрд╕реА рдЧрдирд╛рдЙрдЪ
My facebook archive (for sale)
Nas and The Bokas: Coming to a Night Club near you
Mr. Dipak Gyawali-ji Talk is Cheap. US sends $ 200 million to Nepal every year.
TPS Update : Jajarkot earthquake
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters