Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions