Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed 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

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

More Books

Students also viewed these Databases questions

Question

what is the most common cause of preterm birth in twin pregnancies?

Answered: 1 week ago

Question

Which diagnostic test is most commonly used to confirm PROM?

Answered: 1 week ago

Question

What is the hallmark clinical feature of a molar pregnancy?

Answered: 1 week ago

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago