[Show all top banners]
Back to: Kurakani General Refresh page to view new replies
 Help on c program
[VIEWED 3214 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 60 days
Recommended Popular Threads Controvertial Threads
What are your first memories of when Nepal Television Began?
TPS Re-registration case still pending ..
Basnet or Basnyat ??
nrn citizenship
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
Travelling to Nepal - TPS AP- PASSPORT
emergency donation needed
ढ्याउ गर्दा दसैँको खसी गनाउच
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
TPS Work Permit/How long your took?
मन भित्र को पत्रै पत्र!
Informatica consultancy share
Travelling on TPS advance travel document to different country...
Are you ready to know the truth?
Thank you for the sajha policy
Nepali doctors future black or white usa ?
Morning dharahara
महँगो अण्डाको पिकल्प : कुखुरा र खोर भाडामा लिने
चितवनको होस्टलमा १३ वर्षीया शालिन पोखरेल झुण्डिएको अवस्था - बलात्कार पछि हत्याको शंका - होस्टेलहरु असुरक्षित
Federal judge has rejected a plea to temporarily restore the scores of 832 medical graduates from Nepal
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