Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me about it. At least the last code can run. T 11:56 oo AT&T 92% public asu.edu ASU CSE 110 Lab 10 Due

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribedPlease help me about it. At least the last code can run.
T 11:56 oo AT&T 92% public asu.edu ASU CSE 110 Lab 10 Due date/Time: Thursday, Apr. 20th, 2017 at 5:30pm What this Lab Is About: Given a text file's name, learn to read in data by using FileReader&BufferedReader Learn to use split0 method in String class to get each piece of information out Learn to use different delimiter to tokenize a String Learn to use PrintWriter class to write the output to a text file Note: for this lab, you are NOT allowed to use Scanner class to read in data! Coding Guidelines for All LabsAssignments Oou will be graded on this) Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc). Keep identifiers to a reasonably short length. Use upper case for constants. Use title case (first letter is upper case) for classes. Use lower case with uppercase word separators for all other identifiers (variables, methods, objects). Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, methods, and code associated with ifs, switches and loops. Be consistent with the number of spaces or tabs that you use to indent. Use white space to make your program more readable. Use comments properly before or after the ending brace of classes, methods, and blocks to identify to which block it belongs. 1. Lab Description For this lab, you are given a text file which contains several students' four test scores. see the following partial file for sample input data: Mouse Mickey 94.2 88.1 90 89.4 Duck Donald 82 87.4 79 83.5 Basically each line represents one student's test scores in the following format: last Name firstName test 1Score test2 Score test 3 Score test 4 Score lastName and firstName are seperated by comma firstName to testiscore, and testlScore to test2Score, etc. are seperated by tab (lt).You are required to write a program to read in data from the file and compute each student's average and save it inside a text file called testHverage.tat in the following format. Note: there's one empty space between firstName and lastName and one tab (At) between lastName and testAverage. Also, the test average need to be formatted with 2 decimal digits. firstName lastName testAverage The following is one sample of testAveragett file: CSE110 Report Test Average Name

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

LO2 Identify components of workflow analysis.

Answered: 1 week ago