Write a C#
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 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
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: WriteLine("This is an example: {0}", value.ToString("C", CultureInfo.GetCultureInfo("en-US")));
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 2 images
how do you do the code for next year employee salaries output?
how do you do the code for next year employee salaries output?
- Program Purpose - Professional Athletes often hire other professionals to help take care of matters for them. We will group them in four categories: Lawyers, Personal Assistants, Agents, and Trainers. They all get paid a percentage of the athlete's total yearly salary. Lawyers - 10%, Personal Assistants - 3%, Agents - 7%, and Trainers - 5% . Prompt the user to enter the athlete's salary for the year (ensure that the entered value is positive). The user should then enter the name and category of each of the hired professionals. The athlete should be able to hire as many professionals in each category as he/she wants, even if it is more than he/she can afford. Based on the category, calculate the amount that each professional should be paid. After all data has been entered, print the names of each professional hired, how much each is being paid, the total amount the athlete paid, and how much the athlete has left.arrow_forwardWrite a program that allows the user to set the loan amount, loan period, and interest rate, and displays the corresponding interest, principal, andbalance in the currency format.arrow_forwardC# Programming, Chapter 12 Question 6. Create a project naned BreezyViewApartments that contains a Form for an apartment rental service. Allow the user to choose a number of bedrooms, number of baths, and view--street or lake. After the user makes selections, display the monthly rent, which is calculated using a base price of $450, $550, or $700 per month for a one-, two-, or three-bedroom apartment, respectively. $75 is added to the base price for more than one bath, and $50 additional is added to the price for a lake view. Use the Controls that you think are best for each function. Label items appropriately, and the fonts and colors to achieve an attractive design. Any help of input, output and comments through visual studio 2022 and Windows form would be helpful.arrow_forward
- Write an assignment statement that increments the intTotal variable by the contents of the intQuantity variable.arrow_forwardWhat is the syntax for creating a variable containing increasing, consecutive values from 5 to 13?arrow_forwardPLEASE USE FLOWGORITHM.Design a program for Jones College. The current tuition is $12,000 per year, and tuition is expected to increase by 5 percent each year. Display the tuition amount for each year over the next five years (use a looping structure) and also the total tuition at the end of the program. Hint: You will need to use two assignment statements for calculating purposes. One will be an accumulating total assignment statement.arrow_forward
- Please Create using C# Develop a form that allows the user to project the population of your city for a specified number of years and growth rate. Allow the user to specify the current year’s population, the number of years and the annual growth rate. Use a for loop to compute and display each year, starting with the current year and the corresponding population.the formula would be to ADD versus SUBTRACT as in:i. dblTotal = dblTotal + (dblTotal * desiredGrowthRate)ii. Sample list box output would be (don’t forget to clear)1. Year 0: - 10,0002. Year 1: - 10,500 (if the growth is 5%) etcarrow_forwardGiven two integers that represent the miles to drive forward and the miles to drive in reverse as user inputs, create a SimpleCar variable that performs the following operations:arrow_forwardTrainers at Tom's Athletic Club are encouraged to enroll new members. Write a flowchart that allows Tom to enter the names of each of his 25 trainers and the number of new members each trainer has enrolled this year. Output is the number of trainers who have enrolled 0 to 5 members, 6 to 12 members, 13 to 20 members, and more than 20 members.arrow_forward
- Slappy’s Software Sales AssignmentYou have been hired by Slappy’s Software Sales to write a program to figure thetotal cost to customers that order Slappy’s software packages.Discounts are given based on the number of units sold:Number of Units Sold Discount Amount1 – 9 None10 – 19 20%20 – 49 30%50 – 99 40%100 or more 50%Create a form similar to this:The three boxes are labels. Remember to use the Auto Size and Border Styleproperties.The program should read the number of units sold and figure a base cost. Theunits cost $99 each. A discount should then be figured and subtracted from thebase cost. The subtotal, discount amount and total cost should be displayed, ascurrency, in the appropriate labels.Here are some screen shots of the running program:Set the tab order and access keys.Put comments in your program as to what each section is doing.Use constants for the discount rates and base price.arrow_forwardTrace through what values are stored in each variable as the code executes and what values will be displayed. Assume the user enters Nassau, 10 in that order. county input ('Enter the county you live in: ') credits int(input ('Enter the number of credits you are taking: ')) if county 'Nassau' and credits >= 12: == tuition = 2000 elif county == 'Suffolk': tuition 3990 elif credits >= 10: tuition = credits * 160 else: tuition = credits * 30 print (tuition) county credits tuition outputarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education