Uploaded by rae

Project Report 6

advertisement
1
Landon Reynolds
Programming Foundations I
Professor Streeter
November 22, 2022
Project Report 6
The goal of Homework 6 was to utilize classes and files to comb through thousands of
lines of data to earn Donna her innocence. There are no program inputs. The outputs are the
names of the supposed hackers. As there were no inputs, no error handling was required.
I chose to complete the assignment in Visual Studio Community. There were no major
design decisions made on my part as far as the code is concerned. The program uses vectors, the
class structure, and opens, reads, writes in, and closes files. Code provided for the assignment
had a decrypt function. Homework 6 did not allow for too much freedom as the code I wrote was
based off the sample code.
Given both header files, both text files, and partially completed .cpp files, the first step
was to complete the .cpp files. Said files were missing constructors, destructors, getters, setters,
and a print method. Next came programming the main file. The functions involved are
accountRead, transactionRead, transactionWrite, and findHackers. The development timeline
was one and a half weeks.
Since there were no inputs, the only testing needed was to recompile the code until the
name of the hackers displayed in the decryptedTransactions.txt file. The typescript had some
errors involving definition that were not seen in Visual Studio Community.
2
Landon Reynolds
Programming Foundations I
Professor Streeter
November 22, 2022
3
Landon Reynolds
Programming Foundations I
Professor Streeter
November 22, 2022
Homework 6 resulted in a program that uses class in conjunction with files to decrypt and
sort through thousands of lines of data. The program worked as intended. I would work on an
assignment of this size more incrementally, I split the work into four long sessions of
programming. The program took five or six hours to complete.
Download