Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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;
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education