Project 03 CPSC-236 solution

$30.00

Category:

Description

5/5 - (3 votes)

Create a record keeping console application. You are encouraged to theme your application.

Details

Starting with a premade C# console application in Visual Studio, create an application for adding, viewing and deleting records. Records must be written to a file when the application closes and be read back in from the file when the application first opens. You will need to make use of an array, list or dictionary, or possibly some combination thereof (your choice). Records can be duplicated (in the case of two people with the same name, for example), but users should be able to specify which record to view or delete. You must check the validity of the user input (i.e. no ints for string fields, no strings for int fields).

Hint
System.IO contains an abstract File class object. You can use System.IO.File.WriteAllLines to create a file, write a string collection to said file, and close it. There are other useful methods in the File class as well.

Grading

Assignment is worth 25 points. You will be graded on:

  • Successfully writing data to a file
  • Successfully reading data from a file into your application
  • Being able to view, add and delete records from your application
  • Having a compile-able application within Visual Studio
  • Correctly turning in the assignment – naming convention, correct files submitted

Submitting

Turn in your zipped solution folder to Blackboard. Make sure to name the zipped file firstInitialLastName_proj03. For example, cBoyd_proj03.zip.

Optional Challenge (and a Hint!)

Use a “using” loop to read or write to a file by using the StreamReader or StreamWriter.