Question: Please answer question #4 and write a bash program for ubuntu. NOTE: please use similar code to the other pictures i added. Thank you. 4.



Please answer question #4 and write a bash program for ubuntu. NOTE: please use similar code to the other pictures i added. Thank you.
4. GRADE PROBLEM (DIFFICULT PROBLEM) Write a bash script that reads all the midterm and final grades from the grades.txt file and for output creates a new file called gradeswletter.txt that contains the midterm and final grades with the average and letter grades added. At the end of the program stores in gradestats.txt the lowest, highest grades and average sorted grades per letter shown. Also display the number of As, Bs, Cs, Ds and Fs grades.txt 70 80 100 90 50 70 40 60 70 90 80 90 70 80 PROGRAM OUTPUT gradeswletter.txt gradestats.txt 70 80 75 100 90 95 A 50 70 60 D 40 60 50 F 70 90 80 B Highest Grade 9!5 Lowest Grade: 50 A 1 95 B 2 80 85 C 2 70 75 D: 1 60 60 80 70 C F: 1 50 5. MENU PROBLEM Write a program with the following menu and functionality: MAIN MENU 1. Factorial Problem 2. Fraction Problem 3. Birthday Problem 4. Grade Problem 5. Quit program Enter your choice: 4. GRADE PROBLEM (DIFFICULT PROBLEM) Write a bash script that reads all the midterm and final grades from the grades.txt file and for output creates a new file called gradeswletter.txt that contains the midterm and final grades with the average and letter grades added. At the end of the program stores in gradestats.txt the lowest, highest grades and average sorted grades per letter shown. Also display the number of As, Bs, Cs, Ds and Fs grades.txt 70 80 100 90 50 70 40 60 70 90 80 90 70 80 PROGRAM OUTPUT gradeswletter.txt gradestats.txt 70 80 75 100 90 95 A 50 70 60 D 40 60 50 F 70 90 80 B Highest Grade 9!5 Lowest Grade: 50 A 1 95 B 2 80 85 C 2 70 75 D: 1 60 60 80 70 C F: 1 50 5. MENU PROBLEM Write a program with the following menu and functionality: MAIN MENU 1. Factorial Problem 2. Fraction Problem 3. Birthday Problem 4. Grade Problem 5. Quit program Enter your choice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
