Finished code for a basic version of the program.  Everything compiles, but need to debug a divide by zero, probably caused by the structs value notbeing set correctly