Menu

[Solved]Write C Program Maintain List Student Records Main Flow Program Read Information File S Pl Q37268358

Write a C# program to maintain a list of student records. Themain flow of your program should be to read all information fromfile(s) and place it in arrays, loop and do stuff with the records(e.g., add, update, look up, etc.), before exiting optionally writethe new information back to the file(s) before exiting. Please notethe files are only accessed at the beginning and the end, do notchange the files during the “do stuff loop” (unless you have a”save changes” option in the loop)

A student record will consist of a name, address, ID (7 digitsand ID > 1000000), list of phone numbers, and a list of coursescompleted.

A name object will have 3 parts, first, middle, and last. Thesethree name parts are restricted to only a-z and A-Z characters. Youmay optionally add additional fields

An address will consist of street number, street name, city,state (2 characters) and zip code. Zip codes will be stored as long(not strings). Zip plus 4 is optional.

A phone number will consist of area code, exchange, extensionand type. For instance, with the number 216-687-2000, 216 is thearea code, 687 is the exchange and 2000 is the extension. Allfields are long (not strings).

A course will consist of a department name (3 characters),number (long), semester (string), year (long), credit hours(long)and grade (2 characters).

Fields in all objects need the appropriate set and get routines(still no properties).

The student object has set and get routines for all data. Thestudent object also methods to return the student’s GPA, number ofhour attempted, number of hours completed (assume only C- andhigher count toward graduation). equals and compareto in thestudent object are dependent only on the ID field and the tostringonly returns their name and ID.

All objects also need Equals and ToString methods.

Reiterating, after reading in the information from the file(s),the program asks the end user to add, update or look up informationuntil the end user is done. When done the program optionally writesthe information back into the file(s).

Please include code and results.

Expert Answer


Answer to Write a C# program to maintain a list of student records. The main flow of your program should be to read all informatio… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *