Fall2009-assignment7

Fall2009-assignment7 - 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 # 7 Due Date: 11/1/2009 (11:59:59 p.m.) Goal This assignment requires you to understand how to work with the CLASS construct. Just like you learned to work with an array of struct objects, in this assignment you will declare and manipulate an array of class objects. This is primarily an adaptation of Assignment 5, except you are required to use CLASS construct. You will also learn to write a program that consists of multiple files and how to use separate compilation in C++. Task The program will prompt the user for an input file name and an output file name. The task in this assignment is to read information about students from the input file and write out the output to an output file. The program will ensure that the ONLY data written out satisfies all the requirements. The following are the attributes of a student: Last name: a string with only alphabetic characters. For formatting purposes, you may assume the names would be no longer than 15 characters; First name: a string with only alphabetic characters. For formatting purposes, you may assume the first name would be no longer than 15 characters; Social Security Number: a string. The social security numbers you accept must be 11 characters, with digits in positions 1, 2, 3, 5, 6, 8, 9, 10 and 11; and the “-“ in positions 4 and 7. Phone Number: a string. A valid phone number will be of length 13, and will contain characters “(“ in position 1, “)” in position 5, and “-“ in position 9. All other characters must be digits. Age: an integer. You may assume this field will always be an integer, but the age must be a positive integer. The input table contains essentially a table of students with the columns as shown in the
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 / 6

Fall2009-assignment7 - 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