Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
AnswerRe: code doubt Pin
rakesh_choudhury15-Sep-09 22:12
rakesh_choudhury15-Sep-09 22:12 
QuestionASP.NET Membership and WinForms Pin
Illegal Operation15-Sep-09 15:43
Illegal Operation15-Sep-09 15:43 
AnswerRe: ASP.NET Membership and WinForms Pin
N a v a n e e t h15-Sep-09 18:15
N a v a n e e t h15-Sep-09 18:15 
QuestionDatabase question with c#. Pin
JollyMansArt15-Sep-09 13:38
JollyMansArt15-Sep-09 13:38 
AnswerRe: Database question with c#. Pin
Not Active15-Sep-09 14:54
mentorNot Active15-Sep-09 14:54 
QuestionC# coding problem Pin
Jemami15-Sep-09 13:26
Jemami15-Sep-09 13:26 
QuestionRe: C# coding problem Pin
harold aptroot15-Sep-09 13:34
harold aptroot15-Sep-09 13:34 
AnswerRe: C# coding problem Pin
Jemami15-Sep-09 13:37
Jemami15-Sep-09 13:37 
This is what was inputted


string employeeName = Console.ReadLine();

Console.Write("Please input your salary: ");
string inputSalary = Console.ReadLine();
double salary = int.Parse(inputSalary);

double balance5Percent = 0.0;
double balance10Percent = 0.0;
double balance15Percent = 0.0;

Console.WriteLine();
Console.WriteLine("{0} at your current salary of {1:C} these are your expected balances", employeeName, salary);
Console.WriteLine();
Console.WriteLine(" 5% 10% 15%");
Console.WriteLine("=========================================================");
for (int i = 1; i <= 40; i++)
{
balance5Percent = (salary * 0.05 + balance5Percent) * 1.08;
balance10Percent = (salary * 0.10 + balance10Percent) * 1.08;
balance15Percent = (salary * 0.15 + balance15Percent) * 1.08;

if (i % 10==0)
{
Console.WriteLine(" Year {0} {1,14:C} {2,14:C} {3,14:C}", i, balance5Percent, balance10Percent, balance15Percent);
}
}
Console.WriteLine("=========================================================");
Console.ReadLine();
}
}
}
GeneralRe: C# coding problem Pin
harold aptroot15-Sep-09 13:46
harold aptroot15-Sep-09 13:46 
GeneralRe: C# coding problem Pin
Jemami15-Sep-09 15:00
Jemami15-Sep-09 15:00 
GeneralRe: C# coding problem Pin
Jemami15-Sep-09 15:03
Jemami15-Sep-09 15:03 
GeneralRe: C# coding problem Pin
Luc Pattyn15-Sep-09 15:37
sitebuilderLuc Pattyn15-Sep-09 15:37 
QuestionThreads an Objects Pin
FJJCENTU15-Sep-09 12:27
FJJCENTU15-Sep-09 12:27 
AnswerRe: Threads an Objects Pin
Christian Graus15-Sep-09 12:36
protectorChristian Graus15-Sep-09 12:36 
GeneralRe: Threads an Objects Pin
FJJCENTU15-Sep-09 12:55
FJJCENTU15-Sep-09 12:55 
GeneralRe: Threads an Objects Pin
Christian Graus15-Sep-09 14:02
protectorChristian Graus15-Sep-09 14:02 
AnswerRe: Threads an Objects Pin
N a v a n e e t h15-Sep-09 16:48
N a v a n e e t h15-Sep-09 16:48 
AnswerRe: Threads an Objects Pin
carlecomm21-Sep-09 21:42
carlecomm21-Sep-09 21:42 
QuestionCombo Boxes and Database Binding Pin
mbangh15-Sep-09 12:08
mbangh15-Sep-09 12:08 
AnswerRe: Combo Boxes and Database Binding Pin
Christian Graus15-Sep-09 12:37
protectorChristian Graus15-Sep-09 12:37 
GeneralRe: Combo Boxes and Database Binding Pin
mbangh15-Sep-09 12:43
mbangh15-Sep-09 12:43 
AnswerRe: Combo Boxes and Database Binding Pin
Abhishek Sur15-Sep-09 13:00
professionalAbhishek Sur15-Sep-09 13:00 
AnswerRe: Combo Boxes and Database Binding Pin
N a v a n e e t h15-Sep-09 17:33
N a v a n e e t h15-Sep-09 17:33 
GeneralRe: Combo Boxes and Database Binding Pin
mbangh16-Sep-09 5:56
mbangh16-Sep-09 5:56 
AnswerRe: Combo Boxes and Database Binding Pin
carlecomm21-Sep-09 21:30
carlecomm21-Sep-09 21:30 

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.