0% found this document useful (0 votes)
5 views

Programming challenge A1 2023

The document outlines Programming Challenge 1A for COS1511/2 students, where participants must create a console app that generates a ticket based on user input regarding the game 'Towers of Hanoi'. It includes specific prompts for user input, restrictions on programming methods, and a 14-day timeline for completion. Participants are encouraged to seek help and will submit their code and output in a PDF format with their name and challenge title.

Uploaded by

ashnay57
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Programming challenge A1 2023

The document outlines Programming Challenge 1A for COS1511/2 students, where participants must create a console app that generates a ticket based on user input regarding the game 'Towers of Hanoi'. It includes specific prompts for user input, restrictions on programming methods, and a 14-day timeline for completion. Participants are encouraged to seek help and will submit their code and output in a PDF format with their name and challenge title.

Uploaded by

ashnay57
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Welcome to Programming Challenge 1A!

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

Use of any restricted methods/functions/scopes, or encryption, will result in disqualification.

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.

Where the challenge will be held: https://t.me/+EyjnifQTpFc4MDY0


Please join and participate in the poll. Also note if you join, you must remain online for at least 5 mins’
incase you are prompted by a security/anti-spam bot. This bot (if present) will prompt you, merely
read and respond to the prompt.
This is the only place where the submission and discussion will be permitted.
Additional information:
Example of the Towers of Hanoi -
https://www.youtube.com/watch?v=jv8Gm5HEujw&ab_channel=No-NonsenseGuides

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.

You might also like