(Solved) : Given Program Segments Determine Error Code Circle Error Program Write Corrected Code Spac Q26756655 . . .
Need help. Thanks.For each of the given program segments, determine if there is an error in the code, circle the error in the program and write the corrected code in the space provided after each problem. If the code does not contain an error, write “ no error.”Note: it is possible that a program segment may contain multiple errors. a The following program segment should calculate the product of the integers between 1 and 5, inclusive. for ( int i =1 ; i < 5 ;i++ ) int product-1 producti; The following for loop should compute the product of i times 2, plus 1. For example, if the counter is 4, the program should print 42+9. It should loop from 1 to 10 for ( int i-I,i-10, i++ ) 7. Develop a C++ program that uses a while statement to determine the company pays” straight time “ for the first 40 hours worked by each employee and pays “ time-and-half, for all hours worked in excess of 40 hours. You are given al the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee’s gross pay gross pay for each of several employees. The ist of Show transcribed image text
Expert Answer
Answer to Given Program Segments Determine Error Code Circle Error Program Write Corrected Code Spac Q26756655 . . .
OR