COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
Dear learner, please find the model answers for the study unit:
COS1511, Assignment 2 for Semester 2 Year 2020 UNIQUE NUMBER:
641165.
We at Cloud 9 Training Academy offer expert Training/Facilitation
/Supplementary notes and study material/Model Answers/Exam Packs
and much more, all at affordable and reasonable prices for you, the
learner. Our main focus is on you as the learner, we also offer guidance
and one-on-one tutoring sessions (depending on your location). Please
email us directly at cloud9academy@outlook.com if you are unable to purchase
from the site directly.
CONTACT: cloud9academy@outlook.com for any issues or questions
COPYRIGHT AND DISCLAIMER:
Copyright: purchase of a document from this site grants you a limited licence to use the
copyright in such document. Ownership of all copyright remains with the owner and creator
of such documents (Cloud 9 Training Academy). No document or part of a document may be
reproduced, marketed, offered or sold through any internet site, mobile application or other
channel or avenue, nor used in any way that competes with the business conducted by
Cloud 9 Training Academy. Using any such document in a way that is not intended or
permitted by Cloud 9 Training Academy constitutes breach of copyright and automatically
bears legal implications.
All material/model answers/study notes/practice exercises are created and intended for
Studying and Guidance purposes ONLY. Learners will use these model answers to
study/practice and revise. Explanations/Calculations/Solutions/Guidelines and References
have been provided.
Page |1
,COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
INSTRUCTIONS TO LEARNER FOR THIS PURCHASED MEMO:
1. FOR ANY THEORY, PLEASE USE OUR ANSWERS AND
TRY TO REWORD THEM IN YOUR OWN WORDS IN
ORDER TO LIMIT PLAGIARISM.
2. FOR THE PRACTICAL AND SCREENSHOTS, WE HAVE
GIVEN YOU ALL OF THE C++ CODE TO USE, SO PLEASE
USE THEM AND CREATE YOUR OWN SCREENSHOTS
FROM YOUR OWN COMPUTER AND PASTE ALL OF THIS
INTO YOUR OWN WORD DOCUMENT FOR
SUBMISSION.
REMEMBER THAT MANY PEOPLE BUY THIS MEMO
THEREFORE IT IS IMPORTANT THAT YOU USE IT AS A
REFERENCE ONLY AND YOU MAKE SOME CHANGES.
THIS WILL HELP YOU TO BE SAFE FROM PLAGIARISM.
PLEASE GIVE US A 5-STAR RATING AND A GOOD
COMMNET TO SHOW YOUR APPRECIATION. PLEASE
CONTACT US FIRST IF YOU NEED HELP WITH OR
CLARITY ON ANYTHING BEFORE POSTING NEGATIVE
COMMENTS. PLEASE RATE ONLY AFTER YOU ARE
SATISFIED.
Page |2
,COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
SCREENSHOTS (using the sample data)
Sample Program output (from one execution of the program without exiting):
1. Application running for this first time, asking user to enter their name, then displaying the
available flight times:
2. Testing the validation of the flight times using sample input 9:
Page |3
,COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
3. Show the user entering a valid flight time, example: 1
Page |4
,COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
4. Display
the seat arrangements for flight time 1;
show the message for the already-booked flights;
show the message to ask the user to input a valid seat number
show the booked ticket display
Page |5
,COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
5. Program repeating to allow a user to book another ticket:
6. Successfully entered the next booking for: Deon Pieters
Page |6
,COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
7. Entering the seating arrangement for the FIRST (1) flight time:
here we can see that the seat we booked previously (A1) has already been booked and is
marked with two asterisks:
Page |7
,COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
8. Here we select the seat G3 for Deon Pieters:
Page |8
,COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
9. Program repeating and Entering ticket information for Jim Baker:
Page |9
, COS1511 ASSIGNMENT 2 SEMESTER 2 YEAR 2020 UNIQUE NUMBER: 641165
10. Currently showing all the booked seats marked with two asterisks for the FIRST (1) flight time:
P a g e | 10