I have been coding in C++ for the past three years and studied this language as part of my Bachelors degree. Below are some examples of programs created for academic purposes, these programs are presented to show my skill set in this area, each task covers a use of a different skill set. The programs shown here do not show a high level use of C++ but rather show the underlying principles of programming. Each of the programs below were created during my study of programming principles and received High Distinction marks. Each program is explained below with a link provided to download the .zip file which contains the executable application as well as the source code for the application.
In Australia the preferential voting system is used to determine how candidates are elected to the House of Representatives. The program will automate this process for up to 100 candidates. The application will load election vote data from a file, the file is called election.txt the file has the record of each election candidate for a chosen division, the application reads the data from the file and then performs a series of calculations to see if a winner has been found, if there is no winner it moves onto the next round of preferential votes, it continues doing this until the election winner is found or until all four rounds of votes have been calculated and a winner produced at the end.
To accept five integers input by a user and use the integers in calculations to produce the square and cube of the input number. The code utilizes "SETFILL" to format the screen output.
The source code and executable file is included in the .zip that can be downloaded here.
To accept a number from the user between 1-12 and then represent month corresponding to the number, the program will then ask the user if they want to know the days in the month, if the user types yes the days will be displayed, if the user types no the program will end. The program demonstrates the use of functions and switches.
The source code and executable file is included in the .zip that can be downloaded here.
To accept any char from a user and output that symbol in a X n/2 sized V where n = the width of the V. The user can input any character and this character will be used as to display the V. The program demonstrates the use of loops and inner loops.
The source code and executable file is included in the .zip that can be downloaded here.
To store student record data into a text file, The program will open a text file and write users input into the text file The program will then close the file once all user input has been written The program will then open the file again and write the data in the file to screen output. The program demonstrates the principles of opening external files. The external file is written to, the data saved and the filed closed. The code utilizes "FSTREAM" in order to read the write to the file, the data is then written to the file using a "STRUCT".