Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
Questionhelp with GDI+ Pin
tawammar21-Oct-05 17:07
tawammar21-Oct-05 17:07 
AnswerRe: help with GDI+ Pin
S. Senthil Kumar21-Oct-05 20:39
S. Senthil Kumar21-Oct-05 20:39 
GeneralRe: help with GDI+ Pin
tawammar21-Oct-05 21:33
tawammar21-Oct-05 21:33 
GeneralRe: help with GDI+ Pin
S. Senthil Kumar21-Oct-05 21:46
S. Senthil Kumar21-Oct-05 21:46 
GeneralRe: help with GDI+ Pin
Sasuko22-Oct-05 0:26
Sasuko22-Oct-05 0:26 
AnswerRe: help with GDI+ Pin
[Marc]23-Oct-05 12:22
[Marc]23-Oct-05 12:22 
QuestionBeginner Question: Data type issue Pin
ivelander21-Oct-05 15:45
ivelander21-Oct-05 15:45 
AnswerRe: Beginner Question: Data type issue Pin
MoustafaS21-Oct-05 16:13
MoustafaS21-Oct-05 16:13 
ivelander wrote:
if ( executive == 1 )
{
Console.WriteLine( "\nSorry, you're an executive, no benefits for you!" );
goto finalWrite;
}


You wrote this in order to pass any non-1 chars, this is wrong, because any one may enter 0 for example or any string, you must check the input.

While you have done this in the second input :

ivelander wrote:
else
{
Console.WriteLine("That is not a valid entry");
goto bonusAdd;
}



You may do this :
ivelander wrote:
finalSalary = finalSalary + 250;

Like this:
finalSalary+=250;



And at last :
ivelander wrote:
finalSalary = finalSalary + (finalSalary * 0.5);


double lastResult = Convert.ToDouble(finalSalary);
lastResult += lastResult*0.5;

Hope this helps.


"Praying." Is this only what I can do for him ?



AnswerRe: Beginner Question: Data type issue Pin
Matt Gerrans21-Oct-05 16:19
Matt Gerrans21-Oct-05 16:19 
AnswerRe: Beginner Question: Data type issue Pin
Matt Gerrans21-Oct-05 16:22
Matt Gerrans21-Oct-05 16:22 
GeneralRe: Beginner Question: Data type issue Pin
ivelander21-Oct-05 16:28
ivelander21-Oct-05 16:28 
GeneralRe: Beginner Question: Data type issue Pin
Matt Gerrans22-Oct-05 7:19
Matt Gerrans22-Oct-05 7:19 
QuestionPlease help... Pin
KORCARI21-Oct-05 12:39
KORCARI21-Oct-05 12:39 
QuestionMoving a graphic on a form Pin
har04mich21-Oct-05 11:41
har04mich21-Oct-05 11:41 
AnswerRe: Moving a graphic on a form Pin
Ali Beirami21-Oct-05 12:08
Ali Beirami21-Oct-05 12:08 
AnswerRe: Moving a graphic on a form Pin
S. Senthil Kumar21-Oct-05 20:42
S. Senthil Kumar21-Oct-05 20:42 
GeneralRe: Moving a graphic on a form Pin
Anonymous22-Oct-05 1:04
Anonymous22-Oct-05 1:04 
GeneralRe: Moving a graphic on a form Pin
S. Senthil Kumar22-Oct-05 1:15
S. Senthil Kumar22-Oct-05 1:15 
QuestionFirst Tablet PC Application using C# Pin
celllllllll21-Oct-05 11:25
celllllllll21-Oct-05 11:25 
QuestionCombobox problem Pin
Boggy21-Oct-05 11:02
Boggy21-Oct-05 11:02 
AnswerRe: Combobox problem Pin
Ali Beirami21-Oct-05 12:28
Ali Beirami21-Oct-05 12:28 
GeneralRe: Combobox problem Pin
Boggy21-Oct-05 15:35
Boggy21-Oct-05 15:35 
QuestionStreamWriter.WriteLine() doesn't complete on last line! Pin
Lord Kixdemp21-Oct-05 10:34
Lord Kixdemp21-Oct-05 10:34 
AnswerRe: StreamWriter.WriteLine() doesn't complete on last line! Pin
Robert Rohde21-Oct-05 10:49
Robert Rohde21-Oct-05 10:49 
GeneralRe: StreamWriter.WriteLine() doesn't complete on last line! Pin
Lord Kixdemp21-Oct-05 13:13
Lord Kixdemp21-Oct-05 13:13 

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.