Fall2009-assignment2

Fall2009-assignment2 - Programming Systems Design CSCI 455...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Programming Systems Design CSCI 455 FALL 2009 Dr. K. Narayanaswamy Programming Assignment # 2 Due Date: 9/20/2009 (11:59:59 p.m.) Goal This assignment requires you to understand how to declare and manipulate C++ arrays, and how to use C++ control constructs like “while” statement and “for” statement with arrays. Of course, you have to combine this knowledge with what you should already know about reading and writing to files. Task This program first asks the user for the name of an input file and the name of an output file. The input file contains a set of exactly 10 names of students on the first line. Following that, there are 5 lines (representing Tests 1 through 5 respectively) containing the scores on different assignments received by the student. The first line of numbers is for Test 1, and the 2 nd is for Test 2, and so on. Every data item is separated from the next by white space, making it easy for you to read the input. A sample of the input file is shown below: Bob Mary Jane John Jim Joan Tim Tina Marsha Bill 25 40 80 35 78 90 54 67 78 95 60 90 76 58 98 65 83 67 89 87 -23 99 77 43 54 59 76 90 89 45 44 56 67 98 98 63 79 80 79 90 89 74 45 78 94 105 39 94 77 80 In this assignment you may assume that the data will have the right format in the file as above – 10 strings on the first line, and 10 numbers per line for the next 5 lines. Your program should read the input names into an array of strings.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Fall2009-assignment2 - Programming Systems Design CSCI 455...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online