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
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2096a9d5-cb07-4967-8f1d-3fee2f94fa86%2Fa75449a5-41bd-4e14-980a-f080cb18c3f6%2Fw2lbdo_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)