Assignment 1 : IATA Airline Codes Quiz System

Travel Agent's IATA Airlines Code Quiz system - Project Part 1

Assume that you have been asked to create a simple quiz software to test knowledge of a travel agent
about IATA airlines codes. Travel agents need to remember IATA codes for airlines since the systems
they use understand these codes. For example for Oman Air the IATA airline code is WY.

The quiz software should ask questions as follows:

What is the code for <….name of the airline…..>?

For example:
Q1.What is the code for Oman Air?
WY
Q2.What is the code for Qantas?
QF


Q10….
….

The questions should be generated dynamically and the name of the airline must come from a map which you have initialized. The travel agent answers by typing the IATA airline code for that airline and pressing ENTER key and the software shows another question with the name of a different airline - this should continue until the software the iterated over all the airlines in the map

Each time the travel agent enters an answer you check the map to see if his/her answer is correct. The software should make a record of which questions were answered correctly and which questions were answered incorrectly.

If any of questions were answered incorrectly the quiz starts again asking the same questions but in a different randomized order.

At the end when the travel has answered all the questions the software displays results as follows:


Results of Quiz
Result of IATA Airline Codes Quiz
Total Questions : 10
Correct answers : 5
Wrong answers: 5
You scored 50% on this quiz.

The Questions which you answered incorrectly were
Q2. What is the code for Singapore Airlines?
Q5. What is the code for Emirates?
Q7. What is the code for Lufthansa?
Q8. What is the code for British Airways?
Q9. What is the code for Malaysia Airlines?
END OF Results

The quiz will now start again


Total marks for the Project : 10 marks

What will make you loose marks:

1. Not using classes - you should have at least 3-4 classes
2. Your program does not work at all
3. Your program works incorrectly
4. Does not count correct and incorrect answers properly
5. Questions which were answered incorrectly are not shown
6. Report at the the end of each quiz is not shown exactly as above
7. Number of tries are not calculated correctly
8. Quiz does not repeat in a different randomized order if there are incorrect answers

How to submit

Send all the C++ files as a zip file to
TBA

Last date for submission:

07 Nov 2013
Marks are cut for late submission at 20% of the assignment marks per day.

Groups:

You may works in group of 2-3 students each.

Copying:

Copying from Internet or otherwise will strictly not be tolerated leading to loss of marks significantly.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License