0% found this document useful (0 votes)
4 views5 pages

Assignment2 SampleOutput

The document outlines sample outputs for a programming assignment involving a game where players guess answers based on clues from different categories. It details scenarios for when a player wins, loses, or inputs answers in an incorrect format, highlighting the game's mechanics and user interactions. The random number generator is initialized with 100, affecting the game's behavior and outcomes.

Uploaded by

tancharran
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Assignment2 SampleOutput

The document outlines sample outputs for a programming assignment involving a game where players guess answers based on clues from different categories. It details scenarios for when a player wins, loses, or inputs answers in an incorrect format, highlighting the game's mechanics and user interactions. The random number generator is initialized with 100, affecting the game's behavior and outcomes.

Uploaded by

tancharran
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

COMP 1602 – Computer Programming II

Assignment #2
Sample Output

Important Note

The output below is produced when the random number generator is initialized with 100. The output
also depends on the selections being made when the user is prompted to make a choice. It is possible
that different results will be obtained with different development environments such as Microsoft Visual
C++ or XCode. If this happens, you should ensure that your program behaves the same way as shown in
the sample output.

1
Output When Random Number Generator is Initialized with 100 and Player Wins

Please enter the encryption key: MELON


Encrypting puzzles ...
# of categories read from the file: 48
Reading encrypted puzzles ...
# of puzzles read from the file: 266

Please choose from one of the following categories:

1. EUROPE
2. NURSERY RHYMES
3. COUNTRIES OF THE WORLD

Your choice? 3

Category chosen for the final round is: COUNTRIES OF THE WORLD

Here is the clue:

Christchurch is the capital of Canterbury Provincial District on this country's South


Island

Your answer?
What is Australia?

Sorry. AUSTRALIA is not correct.


You have 2 tries left.

Your answer?
What is New Zealand?

Congratulations! You got it out!

OK, let's see your prize.


It is ..... $10,000.00

2
Output When Random Number Generator is Initialized with 100 and Player Loses

Please enter the encryption key: MELON


Encrypting puzzles ...
# of categories read from the file: 48
Reading encrypted puzzles ...
# of puzzles read from the file: 266

Please choose from one of the following categories:

1. EUROPE
2. NURSERY RHYMES
3. COUNTRIES OF THE WORLD

Your choice? 3

Category chosen for the final round is: COUNTRIES OF THE WORLD

Here is the clue:

Christchurch is the capital of Canterbury Provincial District on this country's South


Island

Your answer?
What is Australia?

Sorry. AUSTRALIA is not correct.


You have 2 tries left.

Your answer?
What is Papua New Guinea?

Sorry. PAPUA NEW GUINEA is not correct.


You have 1 try left.

Your answer?
What is Barbados?

Sorry. BARBADOS is not correct.


You have 0 tries left.

I am sorry. You will not get a prize.


The answer is: NEW ZEALAND

3
Output When Random Number Generator is Initialized with 100 and Input Is Not in Required Format

Please enter the encryption key: MELON


Encrypting puzzles ...
# of categories read from the file: 48
Reading encrypted puzzles ...
# of puzzles read from the file: 266

Please choose from one of the following categories:

1. EUROPE
2. NURSERY RHYMES
3. COUNTRIES OF THE WORLD

Your choice? 3

Category chosen for the final round is: COUNTRIES OF THE WORLD

Here is the clue:

Christchurch is the capital of Canterbury Provincial District on this country's South


Island

Your answer?
Australia

Your response is not in the required format.


Please try again.

Your answer?
What is Australia

Your response is not in the required format.


Please try again.

Your answer?
What is Australia?

Sorry. AUSTRALIA is not correct.


You have 2 tries left.

Your answer?
What is England?

Sorry. ENGLAND is not correct.


You have 1 try left.

Your answer?
What is New Zealand

Your response is not in the required format.


Please try again.

Your answer?
What is New Zealand?

4
Congratulations! You got it out!
OK, let's see your prize.
It is ..... $10,000.00

You might also like