aph G 0: Start 1: //GPA formula = SUM(grade* hours_per_subjec)/ total_hours 2: DECLARATION grade1=0, grade2=0, grade3=0, hours per subject, total hours =0,grade_points=0, GPA =0 3: PROMPT "Enter score for Subject 1:" 4: GET grade1 5: PROMPT "Enter credit hours for Subject 1:" 6: GET hours per subject 7: grade points = grade1* hours per subject 8: total_hours = hours_per_subject 9: PROMPT "Enter score for Subject 2:" 10: GET grade2 Styles 11: PROMPT "Enter credit hours for Subject 2:" 12: GET hours per subject 13: grade points += grade2* hours per subject 14: total hours += hours_per_subject 15: PROMPT "Enter score for Subject 3:" 16: GET grade3 17: PROMPT "Enter credit hours for Subject 3:" 18: GET hours per subject 19: grade points += grade3* hours_per_subject 20: total hours += hours per subject 21: GPA = grade point /total hours 22: OUTPUT "The student GPA is: "GPA 23: Stop

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

The client provided pseudocode for calculating students’ GPA that he believes has bugs in it. Find all syntax
errors in the provided pseudocode and provide the following information in your report:
i) The number of syntax errors in the provided code.
ii) The client is not a software developer, to help them understand the problem, describe what a
syntax error is.
iii) Which line of code contains the syntax error?
iv) Fix the syntax error and provide the fixed code. 

 

The client wants pseudocode for calculating students GPA that he believes has bugs in it. Find all logical
errors in the provided pseudocode and provide the following information in your report:
i) The number of logic errors in the provided code.
ii) Your client is not a software developer, to help them understand the problem, describe what a
logic error is.
iii) Which line of code does the logic error occur in.
iv) Fix the logic error and provide the fixed code.
v) Describe why the code was changed to resolve the logic error.

W
FILE
Paste
19
HOME INSERT DESIGN PAGE LAYOUT REFERENCES MAILINGS REVIEW VIEW GRAMMARLY
Cut
Copy
Format Painter
Clipboard
Navigation
Search document
HEADINGS PAGES RESULTS
Create an interactive outline of your
document.
PAGE 8 OF 10
I
Helvetica
Á A Aa ▾
BIU abe X₂ X² A-al-A- ==
1308 WORDS
It's a great way to keep track of where you are
or quickly move your content around.
11
0
To get started, go to the Home tab and apply
Heading styles to the headings in your
document.
Type here to search
Font
▼ X
A-1E-5 ¶
Paragraph
발
AaBbCcDd AaBbCcDd AaBbC AaBbCct AaBl AaBbCcD AaBbCcDd AaBbCcDd AaBbCcDd
1 Normal 1 No Spac... Heading 1 Heading 2
Title
Subtitle Subtle Em... Emphasis Intense E...
ru[esh..... - Word (Product Activation Failed)
0: Start
1: //GPA formula = SUM(grade* hours_per_subjec)/ total_hours
2: DECLARATION grade1=0, grade2=0, grade3=0, hours per subject, total hours
=0,grade_points =0, GPA =0
3: PROMPT "Enter score for Subject 1:"
4: GET grade1
5: PROMPT "Enter credit hours for Subject 1:"
6: GET hours per subject
7: grade points = grade1* hours per subject
8: total hours = hours per subject
9: PROMPT "Enter score for Subject 2:"
10: GET grade2
11: PROMPT "Enter credit hours for Subject 2:"
12: GET hours per subject
13: grade points += grade2* hours per subject
14: total hours += hours_per__subject
15: PROMPT "Enter score for Subject 3:"
16: GET grade3
17: PROMPT "Enter credit hours for Subject 3:"
18: GET hours per subject
19: grade points += grade3* hours per subject
20: total hours + hours per subject
21: GPA = grade point /total hours
22: OUTPUT "The student GPA is: "GPA
23: Stop
Task 2
Styles
www.facebook.com is sharing your screen.
W
Stop sharing
Hide
dents GPA that he believes has
77°F Cloudy
AaBbCcDc
Strong
?
B
Microsoft account
25+
Find
ac Replace
Open
Select
Grammarly
Editing Grammarly
G
Activate Windows
Go to Settings to activate Windows.
X
+ 99%
2:21 PM
10/12/2022 4
Transcribed Image Text:W FILE Paste 19 HOME INSERT DESIGN PAGE LAYOUT REFERENCES MAILINGS REVIEW VIEW GRAMMARLY Cut Copy Format Painter Clipboard Navigation Search document HEADINGS PAGES RESULTS Create an interactive outline of your document. PAGE 8 OF 10 I Helvetica Á A Aa ▾ BIU abe X₂ X² A-al-A- == 1308 WORDS It's a great way to keep track of where you are or quickly move your content around. 11 0 To get started, go to the Home tab and apply Heading styles to the headings in your document. Type here to search Font ▼ X A-1E-5 ¶ Paragraph 발 AaBbCcDd AaBbCcDd AaBbC AaBbCct AaBl AaBbCcD AaBbCcDd AaBbCcDd AaBbCcDd 1 Normal 1 No Spac... Heading 1 Heading 2 Title Subtitle Subtle Em... Emphasis Intense E... ru[esh..... - Word (Product Activation Failed) 0: Start 1: //GPA formula = SUM(grade* hours_per_subjec)/ total_hours 2: DECLARATION grade1=0, grade2=0, grade3=0, hours per subject, total hours =0,grade_points =0, GPA =0 3: PROMPT "Enter score for Subject 1:" 4: GET grade1 5: PROMPT "Enter credit hours for Subject 1:" 6: GET hours per subject 7: grade points = grade1* hours per subject 8: total hours = hours per subject 9: PROMPT "Enter score for Subject 2:" 10: GET grade2 11: PROMPT "Enter credit hours for Subject 2:" 12: GET hours per subject 13: grade points += grade2* hours per subject 14: total hours += hours_per__subject 15: PROMPT "Enter score for Subject 3:" 16: GET grade3 17: PROMPT "Enter credit hours for Subject 3:" 18: GET hours per subject 19: grade points += grade3* hours per subject 20: total hours + hours per subject 21: GPA = grade point /total hours 22: OUTPUT "The student GPA is: "GPA 23: Stop Task 2 Styles www.facebook.com is sharing your screen. W Stop sharing Hide dents GPA that he believes has 77°F Cloudy AaBbCcDc Strong ? B Microsoft account 25+ Find ac Replace Open Select Grammarly Editing Grammarly G Activate Windows Go to Settings to activate Windows. X + 99% 2:21 PM 10/12/2022 4
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY