zyBooks My library>COP 1220: Introduction to Programming in C home > 9.9: LAB. Course Grade zyBooks catalog Help/FAQ 19.
Posted: Mon May 09, 2022 7:10 am
Programming in C, add notes if you can. Thank you!
zyBooks My library>COP 1220: Introduction to Programming in C home > 9.9: LAB. Course Grade zyBooks catalog Help/FAQ 19.8 LAB: File name change Students: Section 99 is a part of 1 assignment: Final Programs Requirements: zyLab Due 05/03/2022 11:59 PM EDT 9.9 LAB: Course Grade Write a program that reads the student information from a tab separated values (tsv) file. The program then creates a text file that records the course grades of the students. Each row of the tsy file contains the Last Name, First Name, Midterm 1 score Midterm 2 score, and the Final score of a student A sample of the student information is provided in Studentinfo.sv. Assume the number of students is at least 1 and at most 20 The program performs the following tasks . Read the file name of the tsv file from the user. Assume the file name has a maximum of 25 characters. • Open the tsv file and read the student information Assume each last name or first name has a maximum of 25 characters • Compute the average exam score of each student • Assign a letter grade to each student based on the average exam score in the following scale 0 A 90 =< X OB 80 =< X<90 O C70 =< X < 80 OD: 60 =< X < 70 OF X < 60 F.x Compute the average of each exam Output the last names first names, exam scores, and letter grades of the students into a text file named report.txt. Output one student per row and separate the values with a tab character. Output the average of each exam, with two digits after the decimal point at the end of report txt. Hints Use the precision sub-specifier to format the output Ex: If the input of the program is StudentInfo.tv and the contents of Studentinfo.tsv are Barrett Edan 70 45 59 Bradshaw Reagan 06 96 97 88 Charlton Caius 73 94 Mayo Tyrese BB 61 36 Stern Brenda 90 86 45 80 the file report txt should contain: Barrett Edan 70 45 59 E E Bradshaw Reagan 96 97 88 A Charlton Caius 73 94 80 В. B Mayo Tyrese BB 61 36 D Stern Brenda 90 86 45 C Averages: midtermi 83.40, midterm2 76.60, final 61.60 3300 LAB ACTIVITY 9.9.1: LAB: Course Grade 0 / 10
9.9 LAB: Course Grade . a Write a program that reads the student information from a tab separated values (tsv) file. The program then creates a text file that records the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midterm 1 score, Midterm 2 score, and the Final score of a student. A sample of the student information is provided in Studentinfo.tsv. Assume the number of students is at least 1 and at most 20 The program performs the following tasks: . Read the file name of the tsv file from the user. Assume the file name has a maximum of 25 characters. Open the tsv file and read the student information. Assume each last name or first name has a maximum of 25 characters. Compute the average exam score of each student Assign a letter grade to each student based on the average exam score in the following scale: O A: 90 =< X O B: 80 =< X < 90 o C: 70 =< X < 80 OD: 60 =<x<70 o F: X 60 • Compute the average of each exam. • Output the last names, first names, exam scores, and letter grades of the students into a text file named report.txt. Output one student per row and separate the values with a tab character. • Output the average of each exam, with two digits after the decimal point at the end of report.txt. Hint: Use the precision sub-specifier to format the output Ex: If the input of the program is: StudentInfo.tav and the contents of Studentinfo.tsv are: 00 Barrett Edan 70 45 59 Bradshaw Reagan 96 97 88 Charlton Caius 73 94 80 Mayo Tyrese 88 61 36 Stern Brenda 90 45 3 0 09 the file report.txt should contain: F lo 09 Barrett Edan 70 45 59 Bradshaw Reagan 96 97 88 Charlton Caius 73 94 80 Mayo Tyrese 88 61 36 D Stern Brenda 90 86 45 C wo 00 DO 10 A 19 o B 0 m 0 Averages: midtermi 83.40, midterm2 76.60, final 61.60
zyBooks My library>COP 1220: Introduction to Programming in C home > 9.9: LAB. Course Grade zyBooks catalog Help/FAQ 19.8 LAB: File name change Students: Section 99 is a part of 1 assignment: Final Programs Requirements: zyLab Due 05/03/2022 11:59 PM EDT 9.9 LAB: Course Grade Write a program that reads the student information from a tab separated values (tsv) file. The program then creates a text file that records the course grades of the students. Each row of the tsy file contains the Last Name, First Name, Midterm 1 score Midterm 2 score, and the Final score of a student A sample of the student information is provided in Studentinfo.sv. Assume the number of students is at least 1 and at most 20 The program performs the following tasks . Read the file name of the tsv file from the user. Assume the file name has a maximum of 25 characters. • Open the tsv file and read the student information Assume each last name or first name has a maximum of 25 characters • Compute the average exam score of each student • Assign a letter grade to each student based on the average exam score in the following scale 0 A 90 =< X OB 80 =< X<90 O C70 =< X < 80 OD: 60 =< X < 70 OF X < 60 F.x Compute the average of each exam Output the last names first names, exam scores, and letter grades of the students into a text file named report.txt. Output one student per row and separate the values with a tab character. Output the average of each exam, with two digits after the decimal point at the end of report txt. Hints Use the precision sub-specifier to format the output Ex: If the input of the program is StudentInfo.tv and the contents of Studentinfo.tsv are Barrett Edan 70 45 59 Bradshaw Reagan 06 96 97 88 Charlton Caius 73 94 Mayo Tyrese BB 61 36 Stern Brenda 90 86 45 80 the file report txt should contain: Barrett Edan 70 45 59 E E Bradshaw Reagan 96 97 88 A Charlton Caius 73 94 80 В. B Mayo Tyrese BB 61 36 D Stern Brenda 90 86 45 C Averages: midtermi 83.40, midterm2 76.60, final 61.60 3300 LAB ACTIVITY 9.9.1: LAB: Course Grade 0 / 10
9.9 LAB: Course Grade . a Write a program that reads the student information from a tab separated values (tsv) file. The program then creates a text file that records the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midterm 1 score, Midterm 2 score, and the Final score of a student. A sample of the student information is provided in Studentinfo.tsv. Assume the number of students is at least 1 and at most 20 The program performs the following tasks: . Read the file name of the tsv file from the user. Assume the file name has a maximum of 25 characters. Open the tsv file and read the student information. Assume each last name or first name has a maximum of 25 characters. Compute the average exam score of each student Assign a letter grade to each student based on the average exam score in the following scale: O A: 90 =< X O B: 80 =< X < 90 o C: 70 =< X < 80 OD: 60 =<x<70 o F: X 60 • Compute the average of each exam. • Output the last names, first names, exam scores, and letter grades of the students into a text file named report.txt. Output one student per row and separate the values with a tab character. • Output the average of each exam, with two digits after the decimal point at the end of report.txt. Hint: Use the precision sub-specifier to format the output Ex: If the input of the program is: StudentInfo.tav and the contents of Studentinfo.tsv are: 00 Barrett Edan 70 45 59 Bradshaw Reagan 96 97 88 Charlton Caius 73 94 80 Mayo Tyrese 88 61 36 Stern Brenda 90 45 3 0 09 the file report.txt should contain: F lo 09 Barrett Edan 70 45 59 Bradshaw Reagan 96 97 88 Charlton Caius 73 94 80 Mayo Tyrese 88 61 36 D Stern Brenda 90 86 45 C wo 00 DO 10 A 19 o B 0 m 0 Averages: midtermi 83.40, midterm2 76.60, final 61.60