Write a program that reads the student information from a tab separated values (tsv) file and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that reads the student information from a tab separated values (tsv) file and creates a text file that contains student information together with the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midterm1 score, Midterm2 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. Open the tsv file and read the student information • 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 • A: 90-<x B: 80 <x<90 • C70 <x<80 • D: 60 <x<70 • F:X<60 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 Ex: If the input of the program is Student Info.tsv and the contents of Studentinfo.tsvare Barrett Edan 70 45 59 Bradshaw Reagan 961 97 BB Charlton Caius 73 94 80 Mayo Tyrese Stern 88 61 Brenda 90 86 45 the file report.txt should contain 36 Barrett Edan 20 45 59 F > my Home - Looking Glass NM zy Section 8.8 - CS 172: Computer Science I learn.zybooks.com Homework Help - Q&A from Online Tutor... What's the difference between a Premier... =zyBooks My library > CS 172: Computer Science I home > 8.8: LAB: Course Grade Computation and the contents of StudentInfo.tsv are: Barrett Edan 70 45 59 Bradshaw Charlton Reagan 96 97 88 Caius 73 94 80 Mayo Tyrese 88 61 36 Stern Brenda 90 86 45 the file report.txt should contain: Barrett Edan Bradshaw Charlton Reagan 96 97 Caius 73 94 70 45 59 F 88 A 80 B Mayo Tyrese 88 61 36 D Stern Brenda 90 86 45 C 423062.2712980.qx3zqy7 LAB ACTIVITY 8.8.1: LAB: Course Grade Computation Submission Instructions Downloadable files Student Info.tsv Download Compile command javac CourseGrade.java We will use this command to compile your code Upload your files below by dragging and dropping into the area or choosing a file on your hard drive. CourseGrade.java Drag file here or 凹+ C Post a new question EzyBooks catalog ? Help/FAQ Katie Alemar 0/10 Write a program that reads the student information from a tab separated values (tsv) file and creates a text file that contains student information together with the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midterm1 score, Midterm2 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. Open the tsv file and read the student information • 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 • A: 90-<x B: 80 <x<90 • C70 <x<80 • D: 60 <x<70 • F:X<60 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 Ex: If the input of the program is Student Info.tsv and the contents of Studentinfo.tsvare Barrett Edan 70 45 59 Bradshaw Reagan 961 97 BB Charlton Caius 73 94 80 Mayo Tyrese Stern 88 61 Brenda 90 86 45 the file report.txt should contain 36 Barrett Edan 20 45 59 F > my Home - Looking Glass NM zy Section 8.8 - CS 172: Computer Science I learn.zybooks.com Homework Help - Q&A from Online Tutor... What's the difference between a Premier... =zyBooks My library > CS 172: Computer Science I home > 8.8: LAB: Course Grade Computation and the contents of StudentInfo.tsv are: Barrett Edan 70 45 59 Bradshaw Charlton Reagan 96 97 88 Caius 73 94 80 Mayo Tyrese 88 61 36 Stern Brenda 90 86 45 the file report.txt should contain: Barrett Edan Bradshaw Charlton Reagan 96 97 Caius 73 94 70 45 59 F 88 A 80 B Mayo Tyrese 88 61 36 D Stern Brenda 90 86 45 C 423062.2712980.qx3zqy7 LAB ACTIVITY 8.8.1: LAB: Course Grade Computation Submission Instructions Downloadable files Student Info.tsv Download Compile command javac CourseGrade.java We will use this command to compile your code Upload your files below by dragging and dropping into the area or choosing a file on your hard drive. CourseGrade.java Drag file here or 凹+ C Post a new question EzyBooks catalog ? Help/FAQ Katie Alemar 0/10
Expert Answer:
Answer rating: 100% (QA)
This program reads student information from a TSV Tab Separated Values file com... View the full answer
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
A business has the following transactions: The business is started by receiving cash from an investor in exchange for common stock $20,000 The business purchases supplies on account $500 The...
-
Which source of variation is placed in the denominator of the test statistic for each hypothesis test for the two-way between-subjects ANOVA?
-
A demand curve has equation q = 100 5p, where p is price in dollars. A $2 tax is imposed on consumers. Find the equation of the new demand curve. Sketch both curves.
-
Pick an industry and a product or service. Engage in a creative-thinking process, as outlined in Chapter 11, to generate an improved offering. Do the same to create an entirely new offering that uses...
-
The ledger of Costello Company at the end of the current year shows Accounts Receivable $110,000, Sales Revenue $840,000, and Sales Returns and Allowances $20,000. Instructions (a) If Costello uses...
-
Bleeker Street Pizza and Keste Pizza & Vino are located close to each other on Bleeker Street in the West Village. There are 450 potential customers every day, and suppose that each of them is...
-
1. Generations using Thony Write a program that asks the user what year they were born. The program should then display a message indicating whether the person is a boomer, a gen-xer, a millennial,...
-
The research paper assignment is worth 240 points or 24% of the course grade. A grade of C or better is required as per MBA policy as this is the Final Assessment for the course. The...
-
Who is Netflix's biggest competitor in the video-streaming industry out of the list above? What competitive advantage(3-5 advantages)do they have that Netflix lacks? Please provide thoughtful and...
-
Safety must always be considered a high priority when working on 'Common Rail' fuel systems. Why? Some electronic diesel fuel injectors work on high voltage. They can produce around 120 - 150 volts...
-
Give a brief review of introduction to marketing and definition of marketing concept with autor ?
-
One of your regular customer approached you for finding out the best freight rate from Calgary to Dusseldorf, Germany, for exporting 10 cartons of hand tools. Each carton weighs 6 kgs. and dimension...
-
How do you think the development of mobile commerce in the future? What can companies do in the face of the development of mobile commerce?
-
Evaluate each logarithm to four decimal places. log 0.257
-
Write a program that repeatedly prompts the user to enter a capital for a state. Upon receiving the user input, the program reports whether the answer is correct. Assume that 50 states and their...
-
Write a method that displays an n-by-n matrix using the following header:public static void printMatrix(int n)Each element is 0 or 1, which is generated randomly. Write a test program that prompts...
-
Write the following method that returns the largest element in an ArrayList: public static > E max(ArrayList list)
-
If you make multiple measurements of your height, you are likely to find that the results vary by nearly half an inch in either direction due to measurement error and actual variations in he ight....
-
Loveland, Colorado, is 18 km due south of Fort Collins and 3 1 km due west of Greeley. What is the distance between Fort Collins and Greeley?
-
Migrating geese tend to travel at approximately constant speed, flying in segments that are straight lines. A goose flies 32 km south, then turns to fly 20 km west. Afterward, how far is the goose...
Study smarter with the SolutionInn App