Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Nuzrath 284
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here String empNo = "EMP001"; String empName = "Jack"; int bs = 85000; int hourlyrate = 250; int hourlyworked = 09; int grosswage = hourlyrate*hourlyworked; int bns; if(bs >= 75000){ bns = bs*12/100; }else if(bs >=60000){ bns = bs*9/100; }else{ bns = bs*3/100; } int mealall = bs*5/100; int travelall = bs*8/100; int totall = mealall + travelall; int loan = bs*5/100; int totsalary = bs + grosswage + totall; int netsalary = totsalary - loan; Console.WriteLine( "Employee No:\t"+empNo ); Console.WriteLine( "Employee Name:\t"+empName ); Console.WriteLine( "Basic Salary:\t"+bs ); Console.WriteLine( "Hourly Rate:\t"+hourlyrate ); Console.WriteLine( "Hourly Worked:\t"+hourlyworked); Console.WriteLine( "Grosswage:\t"+grosswage ); Console.WriteLine( "Bonus:\t"+bns ); Console.WriteLine( "Meal Allowance:\t"+mealall ); Console.WriteLine( "Travel Allowance:\t"+travelall ); Console.WriteLine( "Total Allowance:\t"+totall ); Console.WriteLine( "Loan:\t"+loan ); Console.WriteLine( "Total Salary:\t"+ totsalary ); Console.WriteLine( "Net Salary:\t"+ netsalary ); } } }
run
|
edit
|
history
|
help
0
newDiv2by1
Main5
GeneGenerator
iran
walle
test
Generics Operator test
bubbleSort
binary search tree (insert, search, findmin, findmax, level-pre-in-post order traversals
Bubble Sort