Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HOMEWORK: The submission for all functions and text files have to match the requirements: cent _ to _ inches _ &meters ( centimeter ) -
HOMEWORK:
The submission for all functions and text files have to match the requirements:
centtoinches&meterscentimeter Function that asks the user to input data in centimeter Cent
convert it to inches Inches using the formula: Inches Cent and convert it to meters Meters
using the formula: Meters Cent Both values to be returned to the main to print.
countVowelssentence Function that returns the count of vowels in a sentence. Check for both upper
case and lowercase alphabets and convert them all into lower case.
squareoffactorialnum Function that computes the factorial of a number entered then square the
result. Example of factorial of is Square of factorial
commonDatalist list Function that takes two lists of numbers or characters and returns true if
they have at least one common element.
sortListnList order Function that sorts a list nList, either in descending or ascending order.
Write a Python program that reads a text file called student.txt
The input text file contains studentID studentname, Quizgrade as well as Testgrade 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.
student.txt:
output.txt:
Class Report
There are total of students
The average of total marks is
Shamma scored the lowest marks as
Hamda scored the highest marks as
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started