Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
Question20th Trackbar value Pin
Jassim Rahma7-Sep-08 0:03
Jassim Rahma7-Sep-08 0:03 
AnswerRe: 20th Trackbar value Pin
Wendelius7-Sep-08 0:38
mentorWendelius7-Sep-08 0:38 
Questionfirewall development in C# Pin
Member 39583126-Sep-08 23:45
Member 39583126-Sep-08 23:45 
AnswerRe: firewall development in C# Pin
Perspx7-Sep-08 0:00
Perspx7-Sep-08 0:00 
AnswerRe: firewall development in C# Pin
DaveyM697-Sep-08 0:37
professionalDaveyM697-Sep-08 0:37 
QuestionRe: firewall development in C# Pin
Member 39583127-Sep-08 2:02
Member 39583127-Sep-08 2:02 
AnswerRe: firewall development in C# Pin
CaptainKrtek7-Sep-08 9:07
CaptainKrtek7-Sep-08 9:07 
QuestionPlease help on this Pin
mistyangel6-Sep-08 23:28
mistyangel6-Sep-08 23:28 
I. Overview
1. Create a program that will accept the necessary inputs and generate the proper outputs based on the processing instructions.
2. The program should meet all the requirements.

II. Inputs
1. Employee’s ID Number – an 8 digit integer
1st four digits signifies the year the employee started.
5th digit signifies employment type. 0 for regular, 1 for
contract. Other values are invalid.
Last 3 digits are irrelevant for this program.
2. Salary Grade – a real number
3. Days worked for the month – an integer with valid values of 1 to 31 only.
4. wBonus – a character to signify whether the employee will receive a bonus or not

III. Processing
1. Prompt for all necessary inputs. Check every input for validity.
2. Compute for the employee’s salary for the month.
Basic Salary = Salary grade * Days Worked

For employees with bonus
For regular employees who started before 1990
Bonus = Basic Salary * .4
For regular employees who started before 2000
Bonus = Basic Salary * .3
For regular employees who started before 2006
Bonus = Basic Salary * .2
For regular employees who started after 2005 and contract employees
Bonus = Basic Salary * .1

Salary for the Month = Basic Salary + Bonus

3. Accumulate Total Basic Salary and Total Bonus.
4. Display Employee’s Salary for the Month(output #1)
5. Prompt if the user wants to process another employee. If yes, go back to #1.
6. Display Total Basic Salary and Total Bonus(output #2)

IV. Outputs (use 2 decimal places for real numbers)
1. ID Number and Salary for the Month. Example:
ID Number: 19970123 Salary: P1500.50
2. Total Basic Salary and Total Bonus. Example:
Tot Basic Salary: P180,000.90 Tot Bonus: P20,000.55

V. Requirements
1. Use the printf function for all outputs including prompts.
2. Use the scanf function for accepting/reading all inputs.
3. Use defined constants for the constants used in the bonus computation.
4. Declare/define functions for each routine/subroutine in the program.
5. Use error checking. If the user inputs an invalid value, inform the user and prompt for a new value.
6. Users should be able to use the program without special instructions or training.

bleh

QuestionRe: Please help on this Pin
Perspx6-Sep-08 23:42
Perspx6-Sep-08 23:42 
AnswerRe: Please help on this Pin
DaveyM696-Sep-08 23:59
professionalDaveyM696-Sep-08 23:59 
AnswerRe: Please help on this Pin
Guffa7-Sep-08 0:35
Guffa7-Sep-08 0:35 
AnswerRe: Please help on this Pin
Kevin McFarlane7-Sep-08 6:53
Kevin McFarlane7-Sep-08 6:53 
AnswerFriggin homework... Pin
leckey7-Sep-08 6:59
leckey7-Sep-08 6:59 
AnswerRe: Please help on this Pin
nelsonpaixao7-Sep-08 13:02
nelsonpaixao7-Sep-08 13:02 
AnswerRe: Please help on this Pin
Christian Graus8-Sep-08 1:18
protectorChristian Graus8-Sep-08 1:18 
QuestionIOException 10054. Pin
leslie wu6-Sep-08 21:23
leslie wu6-Sep-08 21:23 
AnswerRe: IOException 10054. Pin
Mbah Dhaim7-Sep-08 1:25
Mbah Dhaim7-Sep-08 1:25 
GeneralRe: IOException 10054. Pin
leslie wu7-Sep-08 4:56
leslie wu7-Sep-08 4:56 
GeneralRe: IOException 10054. Pin
Mbah Dhaim7-Sep-08 5:36
Mbah Dhaim7-Sep-08 5:36 
GeneralRe: IOException 10054. Pin
leslie wu8-Sep-08 3:02
leslie wu8-Sep-08 3:02 
QuestionSharing a lesson... Pin
MarkB7776-Sep-08 20:47
MarkB7776-Sep-08 20:47 
AnswerRe: Sharing a lesson... Pin
zafersavas6-Sep-08 21:51
zafersavas6-Sep-08 21:51 
AnswerRe: Sharing a lesson... Pin
Robert.C.Cartaino7-Sep-08 4:28
Robert.C.Cartaino7-Sep-08 4:28 
QuestionApplicationDeployment & HttpUtility Pin
AtulRane6-Sep-08 20:42
AtulRane6-Sep-08 20:42 
AnswerRe: ApplicationDeployment & HttpUtility Pin
Wendelius7-Sep-08 3:50
mentorWendelius7-Sep-08 3:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.