Question: Write a C# program named ProjectedRaises that includes a named constant representing next years anticipated 4 percent raise for each employee in a company. Also

Write a C# program named ProjectedRaises that includes a named constant representing next years 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 years 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 3.

Then next year's salary for employee 1 would be displayed as: Next year's salary for the first employee will be $26,000.00

this is my code only 75% complete i need to make the output into a currency

using System;

using static System.Console;

using System.Globalization;

class ProjectedRaises

{

static void Main()

{

const float salaryIncrement=0.04f;

float employee1 = 25000;

float employee2 =38000;

float employee3 = 51000;

WriteLine("Next year's salary for the first employee will be $" + (employee1 +( employee1 * salaryIncrement)));

WriteLine("Next year's salary for the second employee will be $" + (employee2 + (employee2 * salaryIncrement)));

WriteLine("Next year's salary for the third employee will be $" + (employee3 +( employee3 * salaryIncrement)));

}

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!