1. Create two student tuples with name and grades in three courses Maths, English and Computer science. student_tuple1 = ('Amanda', [98, 85, 87]) student_tuple2 = ('July', [88, 75, 97]) Part a) Write a program to find the total score of each student. Find the topper. Compare their scores and display this message as follows. "The topper is Amanda and has scored 270" The topper is Amanda and has scored 270 Part b) Display the name of toppers and their grades separately in three courses Maths, English and Computer science. Output: The topper in Maths is Amanda and has scored 98 The topper in English is Amanda and has scored 85 The topper in Computer science is July and has scored 97

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

(python questions)

 

IV. Write programs for the following questions:
1. Create two student tuples with name and grades in three courses Maths, English
and Computer science.
student_tuple1 = ('Amanda', [98, 85, 87])
student tuple2 = ('July', [88, 75, 97])
Part a) Write a program to find the total score of each student. Find the topper.
Compare their scores and display this message as follows.
"The topper is Amanda and has scored 270"
The topper is Amanda and has scored 270
Part b) Display the name of toppers and their grades separately in three courses
Maths, English and Computer science.
Output:
The topper in Maths is Amanda and has scored 98
The topper in English is Amanda and has scored 85
The topper in Computer science is July and has scored 97
Transcribed Image Text:IV. Write programs for the following questions: 1. Create two student tuples with name and grades in three courses Maths, English and Computer science. student_tuple1 = ('Amanda', [98, 85, 87]) student tuple2 = ('July', [88, 75, 97]) Part a) Write a program to find the total score of each student. Find the topper. Compare their scores and display this message as follows. "The topper is Amanda and has scored 270" The topper is Amanda and has scored 270 Part b) Display the name of toppers and their grades separately in three courses Maths, English and Computer science. Output: The topper in Maths is Amanda and has scored 98 The topper in English is Amanda and has scored 85 The topper in Computer science is July and has scored 97
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
User Defined DataType
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
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