I'm getting "the name Console does not exist in the current context"
--------- I know the rules.. not asking anyone to do my work... just point me in the correct direction.. please
public class Commission {
public static void main(String [] args) {
Console.Write("Enter the amount of hardWare sales: ");
double hardWare = double.Parse(Console.ReadLine());
Console.Write("Enter the amount of softWare sales: ");
double softWare = double.Parse(Console.ReadLine());
double amount = 0;
if (hardWare < 40000.00)
amount += .07 * hardWare;
else
amount = .1 * (hardWare - 40000.0);
if (softWare < 20000.00)
amount += .05 * softWare;
else if (softWare > 20000.00 || softWare < 50000.00)
amount += 1000 + .065 * (softWare - 50000.00);
else
amount = .075 * (softWare - 50000.00);
Console.WriteLine("The commission is {0}",amount);
}
}
This post has been edited by Salem_c: 10 September 2012 - 02:22 AM
Reason for edit:: added [code][/code] tags - learn to use them yourself

New Topic/Question
Reply



MultiQuote






|