function - Fall2010Due:Monday1March Emphasison:functions...

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

View Full Document Right Arrow Icon
CSCI 152                        Programming Assignment 2 Fall 2010                                                                                      Due: Monday 1 March   Emphasis on: functions Write a C++ program for a university registrar to process student grades at the end of every semester.  We’ll  assume that another program has read the final grade files (organized by course) for all courses and has  reordered the data into another file which is in order by student.   For each of an unknown number of students, the file  SemGrades.txt  is formatted like this:  col. 1 - 20 student name string 22 - 31 student id string   (123-45-678 format) 33   credit hours for first course int 34 letter grade for first course char (upper-case A, B, C, D, F)         35 space Additional courses are in the same format. The data file SemGrades.txt can be downloaded from the Program Assignments folder in eCollege Doc  Sharing. Sample of the input file format: Cleese, John 111-22-333 3C 3C 3D 1B 1F 1B Idle, Eric 222-33-444 4A 3C 3B 1D 3F Palin, Michael 333-44-555 3B 3A Output the following information for each student: 1. name and id 2. total credit hours attempted this semester (includes all courses given in the input) 3. total credit hours passed this semester
Background image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '11
  • harter
  • Monty Python, Monty Python's Life of Brian, John Cleese, Monty Python and the Holy Grail, Michael Palin, Eric Palin

{[ snackBarMessage ]}

Page1 / 4

function - Fall2010Due:Monday1March Emphasison:functions...

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