"### Exercise 1 ###\n", "\n", "The table presented below gives a final grade based on the amount of points a student get at the end of the course. Write a program that asks the student for the number of points he got and, based on the number of points the program should print the student's final grade: \n", "\n", "points grade |\n", --------\n", less than 500 | 0 between 500 and 550 between 551 and 640 between 641 and 730 between 731 and 800 between 801 and 850 between 851 and 900 between 901 and 960 above 960 3.0 \n", 3.5 \n", 4.0 \n", "Use the if-elif-else consditional to solve this problem. \n" |\n", 0.5 \n", 1.0 \n", 1.5 \n", 2.0 \n", 2.5 \n",

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 31PE
icon
Related questions
Question

PYTHON

"### Exercise 1 ###\n",
'\n",
"The table presented below gives a final grade based on the amount of points a student get at the end of the course. Write a program that asks the student for the number of
points he got and, based on the number of points the program should print the student's final grade:\n",
"\n",
"1
11
11
11
11
points grade |\n",
|\n",
0
less than 500 |
between 500 and 550 |
between 551 and 640
between 641 and 730
between 731 and 800
between 801 and 850
between 851 and 900
between 901 and 960
above 960
|\n",
0.5 |\n",
1.0 \n",
1.5 |\n",
2.0 \n",
2.5
\n"
3.0 |\n",
3.5 \n",
4.0 \n",
"\n",
"Use the if-elif-else consditional to solve this problem.\n"
Transcribed Image Text:"### Exercise 1 ###\n", '\n", "The table presented below gives a final grade based on the amount of points a student get at the end of the course. Write a program that asks the student for the number of points he got and, based on the number of points the program should print the student's final grade:\n", "\n", "1 11 11 11 11 points grade |\n", |\n", 0 less than 500 | between 500 and 550 | between 551 and 640 between 641 and 730 between 731 and 800 between 801 and 850 between 851 and 900 between 901 and 960 above 960 |\n", 0.5 |\n", 1.0 \n", 1.5 |\n", 2.0 \n", 2.5 \n" 3.0 |\n", 3.5 \n", 4.0 \n", "\n", "Use the if-elif-else consditional to solve this problem.\n"
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage