subject

Your grade data is stored in a text file called "gradeInput. txt". Your program should be written so that the input file is located in the same directory as the program file.
Each line in the input file consists of:
*the student's last name, followed by a comma. You can assume that the last name is no more than 15 characters long.
*the student's first name, followed by a space. Note that there are no spaces between the last name and the first name, only the comma. You can assume that the first name is no more than 15 characters long.
*15 homework scores, integers between 0 and 100 inclusive, each pair of numbers separated by a space.
*3 exam scores, integers between 0 and 100 inclusive, each pair of numbers separated by space.
You can assume there are no spaces at the start or end of any line, and that every line (including the last one) is terminated by a newline (\n) character.

Sample file:
Abdallah, Johnetta 65 60 70 65 75 65 80 90 80 70 80 70 50 65 70 70 80 55
Ahle, Delmy 90 80 80 70 70 65 75 65 65 60 70 80 50 70 65 70 80 55
Albares, Cammy 90 85 100 90 80 100 100 100 85 90 90 100 85 80 90 90 85 80
Amigon, Minna 90 90 90 100 100 85 80 80 100 90 80 85 85 90 90 100 85 100
Barfield, Stephaine 55 80 65 50 55 70 60 60 45 40 70 70 60 55 70 55 60 60
Battle, James 100 85 100 85 80 90 100 100 85 80 85 100 90 90 90 90 80 90
Benimadho, Elvera 70 55 55 80 65 60 55 60 45 60 70 40 70 60 60 50 70 55
Blackwood, Kallie 80 80 70 70 60 70 80 80 55 70 65 50 90 70 65 65 65 75
Bolognia, Brock 50 55 70 70 80 75 80 70 70 80 65 90 65 65 80 65 60 70
Bowley, Emerson 80 80 80 90 65 100 60 90 75 90 80 80 75 70 85 75 75 90
Briddick, Jina 80 60 85 65 80 100 75 90 80 70 90 75 90 80 75 80 90 75
Bruschke, Danica 50 70 60 45 80 55 55 60 60 55 55 70 70 60 65 70 40 60
Buvens, Tawna 80 80 70 70 65 65 65 50 60 90 75 70 80 70 70 80 65 55
Caldarera, Kiley 100 85 80 100 100 80 80 90 90 90 85 90 100 85 85 90 90 100

Output File:
Your program should not print anything to the screen. Instead, it should create an output file called "gradeOutput. txt" in the same directory as the program. The output file should contain a table listing the students' names, their homework average, their exam average, and their final grade.
The first column of the table should consist of the students' last names.
The second column of the table should consist of the students' first names.
Note that no commas should appear, and the field should be large enough to contain the entire name. (Do not leave an extra space between fields; if the last name is exactly 15 characters long, allow it to run into the first name.)
The numeric fields should all be 7 characters wide, right justified, with one decimal place of accuracy.
The homework average is simply the average of the 15 homework grades.
The exam average is simply the average of the 3 exam grades.
The final grade is a weighted sum of the other two grades, with a 55% weight given to the homework and a 45% weight given to the exams.
Include a header exactly as shown below.

Done everything correctly, the output should resemble the following for the sample data file:

HW Exam Final
Last Name First Name Avg Avg Grade

Abdallah Johnetta 70.3 68.3 69.4
Ahle Delmy 70.3 68.3 69.4
Albares Cammy 91.0 85.0 88.3
. . .
Whobrey Yuki 91.3 83.3 87.7
Wieser Sage 90.0 90.0 90.0
Yglesias Maurine 70.7 66.7 68.9

The last character in the file should be a newline so that there appears to be a blank line in the file after the last student's data.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Write a method named addall that could be placed inside the hashintset class. this method accepts another hashintset as a parameter and adds all elements from that set into the current set, if they are not already present. for example, if a set s1 contains [1, 2, 3] and another set s2 contains [1, 7, 3, 9], the call of s1.addall(s2); would change s1 to store [1, 2, 3, 7, 9] in some order. you are allowed to call methods on your set and/or the other set. do not modify the set passed in. this method should run in o(n) time where n is the number of elements in the parameter set passed in.
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Word vocabulary words: print, proofread, status line, graphics, font effects, left margin, justification, line spacing, copy/paste, data. review words: font point, bold, save, center, error. fill in the correct word for the definition and then transfer the letters to the appropriate spot by number. some numbers will be found multiple times. you will end up with a quotation about…… what else? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 k 16 17 18 19 20 21 22 23 24 25 8 27 28 29 w 31 32 k 34 35 36 w h 39 40 41 42 8 44 45 46 47 48 49 50 51 52 53 54 55 .1. a software function that records keystrokes on a disk or drive so information can be 5 4 52 9 later retrieved. p n 2. to produce a paper copy of information. 10 7 12u n 3. a display that shows the location of the cursor, pages, etc. 45 46 18 27 36 20 42p4. pictures or images, located in clip art or other files. 6 24 44 28 34 49 555. any mis-stroke of a key. 47 41 48 2 10 n6. allows major changes to the font such as shadow, emboss, etc. 21 25 46 35 23 21 29 14 22 17 n7. a feature that centers lines of text horizontally. 49 53 46 9 51 p8. size of the font 31 16 22 b l 9. a feature that prints designated text darker than the rest to add emphasis. 32 3 . p10. to compare copy on a display screen or printout to the original 24 39 25 23 54 9 50 3 and correct errors. j un 11. a feature that allows text to be aligned at the left 11 12 7 21 16 49 40 46 34 2 and right margins. leftn 12. amount of blank space on the left side of the paper. 8 18 41 6 34 linen 13. number of blank lines between lines of text. 17 4 49 13 1914. any information inputted into the computer. 3 4 46 44 p /p15. feature that duplicates text from one location and places it in another.
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
You know the right answer?
Your grade data is stored in a text file called "gradeInput. txt". Your program should be written so...
Questions
question
Business, 01.02.2021 09:30
question
Mathematics, 01.02.2021 09:30
question
Business, 01.02.2021 09:30
question
Mathematics, 01.02.2021 09:30
question
Social Studies, 01.02.2021 09:30
Questions on the website: 13722362