Write a C# program named ProjectedRaises that includes a named constant representing next year’s anticipated 4 percent raise for each employee in a company.
Also declare variables to represent the current salaries for three employees. Assign values to the variables, and display, with explanatory text, next year’s salary for each employee.
Note: For final submission assign the following current salaries for the employees: 25000 for employee 1, 38000 for employee 2, 51000 for employee three.
Then next year's salary for employee 1 would be displayed as: Next year's salary for the first employee will be $26,000.00I need the answer to have two decimals.
Code Screenshot:
Code:
using System;
using static System.Console;
class ProjectedRaises {
static void Main() {
const float salaryIncrement= 0.04f;
String.Format("{0:n1}", 25000);
float employee1 = 25000;
float employee2 = 38000;
float employee3 = 51000;
Console.WriteLine("Next year's salary for the first employee will
be $" + (employee1 +(
employee1*salaryIncrement)).ToString("0.00"));
Console.WriteLine("Next year's salary for the second employee will
be $" + (employee2 +
(employee2*salaryIncrement)).ToString("0.00"));
Console.WriteLine("Next year's salary for the third employee will
be $"+ (employee3 +(
employee3*salaryIncrement)).ToString("0.00"));
}
}
Please Thumbs Up if it helps you ;)
Write a C# program named ProjectedRaises that includes a named constant representing next year’s anticipated 4...