The following code does not compile.  Find 12 legitimate errors Note: If there is a discrepancy with a variable between the function call and the function definition, that only counts as one error. You may mark the error as either location. For each error clearly identify in your response: The line number on which the error occurs What the error is (e.g. "missing semicolon at end of line") The type of error (compile, logic, runtime) please see attached image

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.1: Classes
Problem 3E
icon
Related questions
Question
100%

The following code does not compile. 

Find 12 legitimate errors

Note: If there is a discrepancy with a variable between the function call and the function definition, that only counts as one error. You may mark the error as either location.

For each error clearly identify in your response:

  • The line number on which the error occurs
  • What the error is (e.g. "missing semicolon at end of line")
  • The type of error (compile, logic, runtime)

please see attached image

HAHAHAHN
HN35∞ OHNMST ∞ H
1 #include <iostream>
2
3 using namespace std;
4
6
7
8
10 }
11
12
13
N N N N N N N N
14
15
16
17
18
19
20
wwwwwwww.
24
25
26
27
28
21
22 void printCheck (double rate, double hrs, int pay) {
cout << "EMPLOYEE PAYCHECK" << \n;
23
cout <<
cout << "Hours worked: " << hrs << endl;
"Pay rate: " << rate << endl;
cout << "Gross pay: << pay << endl;
return false;
597AWNPO
31
32
33
boolean getHoursRate (double &hrs, int rate, char bob) {
cout << "Please enter hours worked: ";
cin >> h;
cout << "Please enter weekly pay rate:
cin >> rate;
29
30 int main ():
34
35
36
double calculate PayCheck (double hours, double rate) {
int pay;
}
}
if (hrs >= 40)
pay hrs * rate / 2;
else;
11
37 ]
pay = 40 * rate + ((hrs 40) * rate * 1.5);
return rate;
double rate, hours, amount;
cout >> "=== Paycheck program ===\n\n";
getHoursRate (hours, rate);
amount = calculatePayCheck (hours, rate);
printCheck (hours, rate, amount);
return 0;
Transcribed Image Text:HAHAHAHN HN35∞ OHNMST ∞ H 1 #include <iostream> 2 3 using namespace std; 4 6 7 8 10 } 11 12 13 N N N N N N N N 14 15 16 17 18 19 20 wwwwwwww. 24 25 26 27 28 21 22 void printCheck (double rate, double hrs, int pay) { cout << "EMPLOYEE PAYCHECK" << \n; 23 cout << cout << "Hours worked: " << hrs << endl; "Pay rate: " << rate << endl; cout << "Gross pay: << pay << endl; return false; 597AWNPO 31 32 33 boolean getHoursRate (double &hrs, int rate, char bob) { cout << "Please enter hours worked: "; cin >> h; cout << "Please enter weekly pay rate: cin >> rate; 29 30 int main (): 34 35 36 double calculate PayCheck (double hours, double rate) { int pay; } } if (hrs >= 40) pay hrs * rate / 2; else; 11 37 ] pay = 40 * rate + ((hrs 40) * rate * 1.5); return rate; double rate, hours, amount; cout >> "=== Paycheck program ===\n\n"; getHoursRate (hours, rate); amount = calculatePayCheck (hours, rate); printCheck (hours, rate, amount); return 0;
Expert Solution
steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning