Question: develop an application using C#, where you can determine the payment that an employee made based on the hours worked. You must take into account

develop an application using C#, where you can determine the payment that an employee made based on the hours worked. You must take into account the following conditions:

Input: The program must allow the entry of the employee's name.

Computes:The program must allow the entry of the hourly rate. If the employee works 40 hours or less: Gross Salary = 40 * hour rate Overtime = hours worked - 40 Extra Salary = Overtime* (Hour Rate * 1.50) Gross Salary=Regular Salary+Extra Salary

Output: Name+Gross Salary

Example overview image

develop an application using C#, where you can determine the payment that

an employee made based on the hours worked. You must take into

using System; public class Program { public static void Main() { Double Basic Salary, DA, HRA, Gross_Salary; Console.Write("Enter Basic Salary : "); Basic Salary = Convert.ToInt32 (Console.ReadLine()); DA = (Basic_Salary * 40)/100; HRA = (Basic_Salary * 20) / 100; Gross_Salary = Basic_Salary + DA + HRA; Console.Write(" Dearness Allowance 40 % of Basic Salary : + DA); 30 Console.Write(" House Rent 20 % of Basic Salary : Console.Write(" Gross Salary : " + Gross_Salary); + HRA); } } Examen 1 - Parte 2: Laboratorio Desarrollar una aplicacin utilizando C#, donde pueda determinar el pago que recibir un empleado basado en las horas trabajadas. Deber tener en cuenta las siguientes condiciones: Input o El programa deber permitir la entrada del nombre del empleado o El programa deber permitir la entrada de las horas trabajadas o El programa deber permitir la entrada del Rate por Hora Computos o Si el empleado trabaja 40 o menos horas: Salario Bruto = HorasTrabajadas * RateHora o Si trabaja ms de 40 horas Salario Regular = 40 * RateHora HorasExtras = HorasRabajadas - 40 Salario Extra = HorasExtras * (RateHora * 1.50) Salario Bruto = SalarioRegular + SalarioExtra Output INNI o Nombre + Salario Bruto

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!