Write a section of Python code that provides feedback to students depending on the grade earned. The code must: Allow the user to enter the grade as an integer value. Only one grade will be entered (no loop needed). Include a prompt so that the user knows what to enter and how to enter it. Display the message "Great job!" if the grade is 90 or better. . Display the message "Very good!" if the grade is 80 or better. Display the message "OK" if the grade is 70 or better. Display the message "Do you need help?" if the grade is lower than 70. Declare any variables/constants that are needed. Use the spacebar for proper indentation. Write the code as efficiently as possible.
Write a section of Python code that provides feedback to students depending on the grade earned. The code must: Allow the user to enter the grade as an integer value. Only one grade will be entered (no loop needed). Include a prompt so that the user knows what to enter and how to enter it. Display the message "Great job!" if the grade is 90 or better. . Display the message "Very good!" if the grade is 80 or better. Display the message "OK" if the grade is 70 or better. Display the message "Do you need help?" if the grade is lower than 70. Declare any variables/constants that are needed. Use the spacebar for proper indentation. Write the code as efficiently as possible.
Chapter2: Using Data
Section: Chapter Questions
Problem 3GZ
Related questions
Question
Write a section of Python code that provides feedback to students depending on the grade earned. The code must:
- Allow the user to enter the grade as an integer value. Only one grade will be entered (no loop needed).
- Include a prompt so that the user knows what to enter and how to enter it.
- Display the message "Great job!" if the grade is 90 or better.
. Display the message "Very good!" if the grade is 80 or better.
- Display the message "OK" if the grade is 70 or better.
- Display the message "Do you need help?" if the grade is lower than 70.
Declare any variables/constants that are needed. Use the spacebar for proper indentation. Write the code as efficiently as possible.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
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.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning