Question: Please do problem 1 and please use visual studio programming software. Laboratory #4 ETT 215 Lab Lab Objectives This lab was designed to reinforce programming
Please do problem 1 and please use visual studio programming software. Laboratory #4 ETT 215 Lab Lab Objectives This lab was designed to reinforce programming concepts using control structures. In this lab, you will practice: Using sentinel-controlled repetition Using counter controlled repetition Using while loops Solving a mathematical problem Problem 1: Develop a Cprogram that uses a wtile statement to determine the gross pay for each of several employees. The company pays "straight time" for the first 40 hours worked by each employce and pays ime-and-a-half for all hours worked in excess of40hours. You are given a list of the employees of the company. the number of hours each employee worked last week and the hourly rate ofeach employee.Your program should input this information for each employee and should determine and display the employee's gross pay Sample output Enter hours worked (-1 to endy Enter hourly rate of the worker (S00.00) 10.00 Salary is S390.00 Enter hours worked (-1 to endy 40 Enter hourly rate of the worker (S00.00: 10.00 Salary is S400.00 Enter hours worked (al to endy 4 Eater hourly rate of the worker (S00 000: 10.00 Salary is 5415.00 Enter hours worked (-1 to end): Problem 2: First write a program that finds the factorial of a number entered by a user. Then modify the program to allow the calculation of c using the Taylor series expansion. The user should enter the number of terms used to calculate it. Hint: create a while loop that does not run if0 was entered by the user, or performs a running product if or greater was entered. Sample output: Sample output Factorial calculator. Enter a number of terms to calculate Enter an integer number: 5 The value ofe is: 2718 Post lab A report showing your source code, program output and a sum mary explanation ofhow the program works and what Clanguage features were used to accomplish the task(s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
