Write a python program that will take the quiz, mid, lab and final marks from the user and calculate the grade. Total_marks = quiz+mid+lab+final

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
Problem 1
Write a python program that will take the quiz, mid,
lab and final marks from the user and calculate the
grade.
Total_marks = quiz+mid+lab+final
Total_marks
Grade
From 90 to 100(inclusive)
"Grade: A"
From 80 to 89(inclusive)
"Grade: B"
From 70 to 79(inclusive)
"Grade: C"
From 60 to 69(inclusive)
"Grade: D"
From 50 to 59(inclusive)
"Grade: F"
Less than 0 or more than...
"Invalid Input"
Sample Input:
Quiz marks = 18
%3D
Mid marks = 30
Lab marks = 20
Final marks = 26
Sample Output:
Grade: A
Transcribed Image Text:Problem 1 Write a python program that will take the quiz, mid, lab and final marks from the user and calculate the grade. Total_marks = quiz+mid+lab+final Total_marks Grade From 90 to 100(inclusive) "Grade: A" From 80 to 89(inclusive) "Grade: B" From 70 to 79(inclusive) "Grade: C" From 60 to 69(inclusive) "Grade: D" From 50 to 59(inclusive) "Grade: F" Less than 0 or more than... "Invalid Input" Sample Input: Quiz marks = 18 %3D Mid marks = 30 Lab marks = 20 Final marks = 26 Sample Output: Grade: A
Problem 2
Write a python program that first asks the user how
many numbers should be entered. Then the
program will read that many numbers from the
user, and print the numbers which are multiples of
5 or 7. For example, if user input is 5, your program
should read 5 numbers and check if they are
multiples of 5 or 7. You must use loops to solve this
task.
Sample Input:
No. of Inputs = 5
%3D
User then should be asked to input 5 numbers and
print accordingly in the following manner
Sample Input
Sample Output
10
10 is a multiple of 5 or 7
14
14 is a multiple of 5 or 7
35
35 is a multiple of 5 or 7
4
4 is NOT a multiple of 5...
12
12 is NOT a multiple of 5...
Transcribed Image Text:Problem 2 Write a python program that first asks the user how many numbers should be entered. Then the program will read that many numbers from the user, and print the numbers which are multiples of 5 or 7. For example, if user input is 5, your program should read 5 numbers and check if they are multiples of 5 or 7. You must use loops to solve this task. Sample Input: No. of Inputs = 5 %3D User then should be asked to input 5 numbers and print accordingly in the following manner Sample Input Sample Output 10 10 is a multiple of 5 or 7 14 14 is a multiple of 5 or 7 35 35 is a multiple of 5 or 7 4 4 is NOT a multiple of 5... 12 12 is NOT a multiple of 5...
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Similar questions
  • SEE MORE 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