Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment builds up on HW 6. In spirit, think of this as a precursor to HW6. For HW6, we worked on a file (input.txt)

image text in transcribed

image text in transcribed

image text in transcribed

This assignment builds up on HW 6. In spirit, think of this as a precursor to HW6. For HW6, we worked on a file ("input.txt") with the following format 2.6 John 2.3 Jim 2.0 Kathy 2.9 Steve 3.8 Stacy 1.8 Faith As you see, above file has a particular format. First line is the count and second line onwards it is a table of cumulative GPA and name. However, how did this file get generated with all the GPAs in the first place? One possible answer: Maybe some program/app created this file based all the scores that a student received from the HWs submitted so far (Lets skip ICAs, PCAs etc) That said, the goal of this assignment is to create such a program Using individual HW scores, create a file with GPAs calculated. * . Do some more analytics on the individual score and print out a report. Requirements: Assume we have the following file with all the individual scores across all HWs so far. We will call this file as "inputHW7.txt" HW1 HW2 HW3 HW4 HW5 97 64 75 100 21 John 19 68 89 49 97 Kim 28 83 48 4491 Kathy 69 66 78 87 85 Steve 99 94 93 9691 Stacy 35 75 65 55 45 Faith Using this input file ("inputHW7.txt") process the scores to create an output file called "outputHW7.txt". This file will have the same format that we used as input file for HW6. Please refer to the table in assumptions section for the GPA breakup. 1. 2.6 Johrn 2.3 Jim 2.0 Kathy 2.9 Steve 3.8 Stacy 1.8 Faith This assignment builds up on HW 6. In spirit, think of this as a precursor to HW6. For HW6, we worked on a file ("input.txt") with the following format 2.6 John 2.3 Jim 2.0 Kathy 2.9 Steve 3.8 Stacy 1.8 Faith As you see, above file has a particular format. First line is the count and second line onwards it is a table of cumulative GPA and name. However, how did this file get generated with all the GPAs in the first place? One possible answer: Maybe some program/app created this file based all the scores that a student received from the HWs submitted so far (Lets skip ICAs, PCAs etc) That said, the goal of this assignment is to create such a program Using individual HW scores, create a file with GPAs calculated. * . Do some more analytics on the individual score and print out a report. Requirements: Assume we have the following file with all the individual scores across all HWs so far. We will call this file as "inputHW7.txt" HW1 HW2 HW3 HW4 HW5 97 64 75 100 21 John 19 68 89 49 97 Kim 28 83 48 4491 Kathy 69 66 78 87 85 Steve 99 94 93 9691 Stacy 35 75 65 55 45 Faith Using this input file ("inputHW7.txt") process the scores to create an output file called "outputHW7.txt". This file will have the same format that we used as input file for HW6. Please refer to the table in assumptions section for the GPA breakup. 1. 2.6 Johrn 2.3 Jim 2.0 Kathy 2.9 Steve 3.8 Stacy 1.8 Faith

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

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions