Answered step by step
Verified Expert Solution
Question
1 Approved Answer
help me with this problem i need it in C# only Convert the ProjectedRaises class to an interactive application named ProjectedRaisesInteractive. Instead of assigning values
help me with this problem i need it in C# only
Convert the ProjectedRaises class to an interactive application named ProjectedRaisesInteractive. Instead of assigning values to the salaries, accept them from the user as input.
Output for each employee should be formatted similar to the following example for the first employee: Next year's salary for the first employee will be $
Note: The salary in the output will change depending on the user input.
In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: WriteLineThis is an example: valu
using System;
using static System.Console;
using System.Collections.Generic;
using system.Linq;
using system.Text;
using system.Threading.Task;
using System.Globalization;
class ProjectedRaisesInteractive
class program
static void Mainstring args
Write your code here
const double RAISE;
double firstSalary secondSalary thirdSalary;
try
WriteEnter the salary for the first employee: ;
firstSalary Convert.ToDoubleReadLine;
WriteEnter the salary for the second employee: ;
secondSalary Convert.ToDoubleReadLine;
WriteEnter the salary for the third employee: ;
thirdSalary Convert.ToDoubleReadLine;
catchException
WriteLinePlease write in the correct format. ;
Display next year's salary for each employee with currency formatting
WriteLineNext year's salary for the first employee will be firstSalary firstSalary RAISEToStringC CultureInfo.GetCultureInfo;
WriteLineNext year's salary for the second employee will be secondSalary secondSalary RAISEToStringC CultureInfo.GetCultureInfo;
WriteLineNext year's salary for the third employee will be thirdSalary thirdSalary RAISEToStringC CultureInfo.GetCultureInfo;
using System;
using static System.Console;
using System.Globalization;
class ProjectedRaises
static void Main
Write your code here
const double RAISE ;
double firstSalary secondSalary thirdSalary ;
WriteLineNext year's salary for the first employee will be firstSalary firstSalary RAISETOStringC;
WriteLineNext year's salary for the second employee will be secondSalary secondSalary RAISEToStringC;
WriteLineNext year's salary for the third employee will be thirdSalary thirdSalary RAISEToStringC;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started