Question
1. Write a program that takes multiple student marks as input. If a user enters negative marks, the program writes all marks to a file
1. Write a program that takes multiple student marks as input. If a user enters negative marks, the program writes all marks to a file called marks.txt and exits.
2. Write a program that opens the file marks.txt and prints all marks on screen
3. Write a program that opens the file marks.txt and prints the average of all marks in the file
4. Write a program that takes 5 student names and their marks as input. The program then writes them to a file called records.txt
5. Write a program that opens records.txt and reads all records. Program will find the student with highest marks and print his name and marks on the screen.
note: plz do in python code
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