Programming challenge A1 2023
Programming challenge A1 2023
This challenge has been structured in such a manner that all COS1511/2 students should be able to
participate.
The Objective:
You are tasked with making a console app, which presents specific prompts to the user and produces
a “ticket” based on the input.
Instructions:
1. In your program, you should output to console prompts to the user asking the user to input a
title. The input must be “Towers of Hanoi” and stored.
2. The user must be prompted to write the instructions of the game (you must research the
game). The instructions must be stored by the program for later use.
3. The user must be prompted to input their name or alias and stored.
4. The user must be prompted if they have covered the following topics:
• Integers
• floating
• point numbers
• chars
• strings
• assignment statements
• comparison statements
• for loops
• while loops
• switch-case statements
• Boolean values
• writing functions that return a value
• writing functions that return no value
• referencing
• pointers
• global and local variables
• 1-D arrays
• 2-D arrays
• Structs
• Classes
The above prompts must be in the form of y/n Boolean-based prompts. The value of each answer
must be stored by means of an array for later use.
5. The above inputs must be processed to display the output in the format of an organized
“ticket”, given the following format:
• The input (1) must be displayed in the center of the console or document.
• The instructions (2) must be displayed in full in the console or document under the
heading “Instructions”.
• The users alias/name (3) must be presented at the end of the document or program
in whichever way they so choose.
• Instructions (4) must be displayed in 1 or more columns containing the prompt as
well as a tick-box for each yes or no answer/result.
e.g. Classes[N] and For loops[Y] for “no” and “yes”, respectively.
Restrictions:
Language: C++
Not to be used:
• 2-D arrays
• Protected functions/variables
• More than 1 global constant variable
• More than 1 global variable in total
• Classes
• Overloaded operators
• Inheritance
• Templates
Exceptions:
• #include<fstream> may be used.
• All participants may ask for assistance with concepts regarding C++ if they are troubleshooting
errors and can’t seem to resolve them. (This is for fun and to help bolster the understanding
of C++) :D
• If you cant finish the program, don’t worry, all programs will be discussed and critiqued to help
students and hobbyists improve their C++ skills.
All participants will be given 14 days to complete their program and must submit their program code
and output on the group by means of PDF. The title of the pdf must contain their name/alias as well
as the name “Programing Challenge 1A”. The main goal is to gauge where students are, in regard to
C++ concepts in preparation for challenge 2A and future exams for COS1511/2.
If you do not understand anything with regard to the challenge, feel free to contact any participating
admin in the above mentioned group. Please DO NOT INBOX admins.
All intellectual property and media used are attributed to all respective parties.