Question: Write a program with two functions Main and ValuesSplit that will read the data for student's grades from a file, the Values Split function
Write a program with two functions Main and ValuesSplit that will read the data for student's grades from a file, the Values Split function will receive a list containing integer values. It returns another list where the grades between 75-100and other grades are separated from each other. The grades with the high mark should be at the beginning and the other ones at the end. Each line in the file can contain any number of grades values. After finishing write the results in an output file. Note: All reading, and writing must be done in the main function, a counter should be there to count the number of the grades which are between 75-100the list should be ordered before sending it to ValuesSplit. Hint: You can use the list methods if needed. Output: out-Notepad File Edit Format View Help Original list 0 2 Split list 100 96 95 92 83 82 there are 7 form B to A+ grades 2 3 3 4 6 77 7 0 8 2 8 2 9 3 12 3 12 45 4 6 55 77 7 8 82 8 83 9 92 O 95 96 100 12 12 45 55 X data-Notepad File Edit Format View Help 2 3 55 12 45 7 8 95 100 77 83 92 9 4 6 12 8 0 3 2 82 96
Step by Step Solution
There are 3 Steps involved in it
The Python program that reads grades from a fil... View full answer
Get step-by-step solutions from verified subject matter experts
