Travel Agent's IATA Airport Code Quiz system - Part 1 of the project
Assume that you have been asked to create a simple quiz software to test knowledge of a travel agent about IATA airport codes. Travel agents need to remember IATA codes for airports since the systems they use understand these codes. For example for Muscat the IATA airport code is MCT.
The quiz software should ask questions as follows:
What is the code of <….name of the airport/city…..>?
Q1.What is the code for Melbourne?
Q2.What is the code for London-Heathrow?
The questions should be generated dynamically and the name of the airport/city must come from a map which you have initialized. The travel agent answers by typing the IATA airport code for that airport/city and pressing ENTER key and the software shows another question with the name of a different country - this should continue until the software the iterated over all the airports/cities 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.
Each time the student 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 student has answered all the questions the software displays results as follows:
== Results Report ==
Result of IATA Airport Codes Quiz
Total Questions : 10
Correct answers : 5
Wrong answers: 5
You scored 50% on this quiz.
This was your attempt no: 4
The Questions which you answered incorrectly were
Q2. What is the code of Singapore?
Q5. What is the code of Brisbane?
Q7. What is the code of Sanaa?
Q8. What is the code of Los Angeles?
Q9. What is the code of Dubai?
== End of Results ==
This 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 2-3 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
Last date for submission:
07 Nov 2013
Marks are cut for late submission at 20% of the assignment marks per day.
You may works in group of 2-3 students each.
Copying from INTERNET or otherwise will strictly not be tolerated leading to loss of marks significantly.