Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The submission for all functions and text files have to match the requirements: 4. commonData(list1, list2) - Function that takes two lists (of numbers or

The submission for all functions and text files have to match the requirements:

4. commonData(list1, list2) - Function that takes two lists (of numbers or characters) and returns true if they have at least one common element.

5. sortList(nList, order) Function that sorts a list nList, either in descending or ascending order.

6. Write a Python program that reads a text file called student.txt.

-The input text file contains student_ID, student_name, Quiz_grade as well as Test_grade for each student.

- Your program should read each student details from the file

- Then calculate the average of Quizzes and Tests marks

-Display the students details: Total number of students, total average, the total highest and lowest marks.

- The program should output the report into a file called output.txt.

A sample of output text file is given below.:

image text in transcribed

A sample of output text file is given below. Class Report There are total of 6 students The average of total marks is 71.267 Shamma (20197541) scored the lowest marks as 45 Hamda (20185432) scored the highest marks as 92.8

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications Dexa 2023 Workshops 34th International Conference Dexa 2023 Penang Malaysia August 28 30 2023 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Maqbool Khan

1st Edition

303139688X, 978-3031396885

More Books

Students also viewed these Databases questions