AutoSave Home Insert Draw Design Layout Aˆ A Paste Page 1 of 2 Courier New V 12 B I U 253 words V ab R X 2 V x² A References Aa ✓ English (United States) Po Αν Mailings BEGIN Review V ELSE: W Final Project - Saved to my Mac V DISPLAY "Correct" INCREMENT score by 1 Else INITIALIZE SCORE TO 0 DISPLAY "Q1 Who invented Python?” READ answer IF answer is "Guido van Rossum" THEN Final Project: This code is a simple quiz program about the history of computing. It begins by welcoming the user and initializing a variable called "score" to keep track of their performance. ENDIF The program then asks three questions one by one, and the user provides answers. For each question, the user's answer is checked in a case- insensitive manner. If the answer is correct, the program increments the score and displays "Correct." If the answer is incorrect, it displays the correct answer. ELSE View After all three questions are answered, the program prints the user's final score and provides feedback based on their score. If the score is 3, it prints "Perfect!"; if the score is 2, it prints "Great!"; if the score is 1, it prints "Good!"; otherwise, it suggests the user try again. V Tell me 싫 V Display "Incorrect. Python was invented by Guido van Rossum" ENDIF DISPLAY "Q2. Who is the father of computers?" READ answer IF answer is “Charles Babbage" THEN Display "Correct" INCREMENT score by 1 IF score==3 THEN DISPLAY "Perfect!" ELIF score==2 THEN DISPLAY "Great!" ELIF score==1 THEN DISPLAY "Good!" ELSE: DISPLAY "Try Again!" ENDIF ENDF Accessibility: Good to go AaBbCcDdEe Normal DISPLAY " INCORRECT. Charles Babbage is the father of computers." DISPLAY "Q3. Who invented Java?" READ answer IF answer is "James Gosling" THEN DISPLAY "Correct" INCREMENT Score by 1 DISPLAY "Incorrect. Java was invented by James Gosling" ENDIF PRINT Score Aa BbCcDdEe No Spacing Aa BbCcDc Heading 1 Focus Comments Aa Bb CcDd Ee Heading 2 Editing Styles Dictate Pane Share E Editor + 75%

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I need help correcting my program. 

The corrections i need to make:

Your Python looks good but you need to add in a file, a list, a loop, and you have to define your functions using def: Python Defining Functions  Please refer back to the course modules for functions and review the link provided. The same applies for the other missing elements in this project: loops, list, functions, and files. 

my Python code:

print("Welcome to Quiz on History of Computing!")
score = 0

# Question 1
answer = input("Q1. Who invented Python?")
if answer.lower() == "guido van rossum":
    print("Correct")
    score += 1
else:
    print("Incorrect. Python was invented by Guido van Rossum")

# Question 2
answer = input("Q2. Who is the Father of Computers?")
if answer.lower() == "charles babbage":
    print("Correct")
    score += 1
else:
    print("Incorrect. Charles Babbage is the Father of Computers")

# Question 3
answer = input("Q3. Who invented Java?")
if answer.lower() == "james gosling":
    print("Correct")
    score += 1
else:
    print("Incorrect. Java was invented by James Gosling")

# Print final score and feedback
print("Your Score:", score)
if score == 3:
    print("Perfect!")
elif score == 2:
    print("Great!")
elif score == 1:
    print("Good!")
else:
    print("Try again!")

 

 

 Your pseudo looks nice. One thing to point out with your pseudo, besides the lack of comments, is that there are caps in places that do not need caps. Please be sure to use comments even in your pseudocode and watch your capitalization. Also, the most critical for this section, you are missing elements of the requirements for this project: files, list, functions, and loops.

 

 

AutoSave
Home Insert Draw Design Layout
Aˆ A
Paste
Page 1 of 2
Courier New V 12
B I U
253 words
V
ab
R
X
2
V
x² A
References
Aa ✓
English (United States)
Po
Αν
Mailings
BEGIN
Review
V
ELSE:
W Final Project - Saved to my Mac
V
DISPLAY "Correct"
INCREMENT score by 1
Else
INITIALIZE SCORE TO 0
DISPLAY "Q1 Who invented Python?”
READ answer
IF answer is "Guido van Rossum" THEN
Final Project:
This code is a simple quiz program about the history of computing. It
begins by welcoming the user and initializing a variable called "score" to
keep track of their performance.
ENDIF
The program then asks three questions one by one, and the user provides
answers. For each question, the user's answer is checked in a case-
insensitive manner. If the answer is correct, the program increments the
score and displays "Correct." If the answer is incorrect, it displays the
correct answer.
ELSE
View
After all three questions are answered, the program prints the user's
final score and provides feedback based on their score. If the score is 3,
it prints "Perfect!"; if the score is 2, it prints "Great!"; if the score
is 1, it prints "Good!"; otherwise, it suggests the user try again.
V
Tell me
싫
V
Display "Incorrect. Python was invented by Guido van Rossum"
ENDIF
DISPLAY "Q2. Who is the father of computers?"
READ answer
IF answer is “Charles Babbage" THEN
Display "Correct"
INCREMENT score by 1
IF score==3 THEN
DISPLAY "Perfect!"
ELIF score==2 THEN
DISPLAY "Great!"
ELIF score==1 THEN
DISPLAY "Good!"
ELSE:
DISPLAY "Try Again!"
ENDIF
ENDF
Accessibility: Good to go
AaBbCcDdEe
Normal
DISPLAY " INCORRECT. Charles Babbage is the father of computers."
DISPLAY "Q3. Who invented Java?"
READ answer
IF answer is "James Gosling" THEN
DISPLAY "Correct"
INCREMENT Score by 1
DISPLAY "Incorrect. Java was invented by James Gosling"
ENDIF
PRINT Score
Aa BbCcDdEe
No Spacing
Aa BbCcDc
Heading 1
Focus
Comments
Aa Bb CcDd Ee
Heading 2
Editing
Styles Dictate
Pane
Share
E
Editor
+ 75%
Transcribed Image Text:AutoSave Home Insert Draw Design Layout Aˆ A Paste Page 1 of 2 Courier New V 12 B I U 253 words V ab R X 2 V x² A References Aa ✓ English (United States) Po Αν Mailings BEGIN Review V ELSE: W Final Project - Saved to my Mac V DISPLAY "Correct" INCREMENT score by 1 Else INITIALIZE SCORE TO 0 DISPLAY "Q1 Who invented Python?” READ answer IF answer is "Guido van Rossum" THEN Final Project: This code is a simple quiz program about the history of computing. It begins by welcoming the user and initializing a variable called "score" to keep track of their performance. ENDIF The program then asks three questions one by one, and the user provides answers. For each question, the user's answer is checked in a case- insensitive manner. If the answer is correct, the program increments the score and displays "Correct." If the answer is incorrect, it displays the correct answer. ELSE View After all three questions are answered, the program prints the user's final score and provides feedback based on their score. If the score is 3, it prints "Perfect!"; if the score is 2, it prints "Great!"; if the score is 1, it prints "Good!"; otherwise, it suggests the user try again. V Tell me 싫 V Display "Incorrect. Python was invented by Guido van Rossum" ENDIF DISPLAY "Q2. Who is the father of computers?" READ answer IF answer is “Charles Babbage" THEN Display "Correct" INCREMENT score by 1 IF score==3 THEN DISPLAY "Perfect!" ELIF score==2 THEN DISPLAY "Great!" ELIF score==1 THEN DISPLAY "Good!" ELSE: DISPLAY "Try Again!" ENDIF ENDF Accessibility: Good to go AaBbCcDdEe Normal DISPLAY " INCORRECT. Charles Babbage is the father of computers." DISPLAY "Q3. Who invented Java?" READ answer IF answer is "James Gosling" THEN DISPLAY "Correct" INCREMENT Score by 1 DISPLAY "Incorrect. Java was invented by James Gosling" ENDIF PRINT Score Aa BbCcDdEe No Spacing Aa BbCcDc Heading 1 Focus Comments Aa Bb CcDd Ee Heading 2 Editing Styles Dictate Pane Share E Editor + 75%
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education