Cpt 111 - Assigment

Topics: Gold medal, Bronze medal, Silver medal Pages: 3 (488 words) Published: October 14, 2010
[pic]

PUSAT PENGAJIAN SAINS KOMPUTER

UNIVERSITI SAINS MALAYSIA

Semester 1 Session 2010/2010

CPT111 – Principles of Programming
Assignment Part IV (ARRAYS & FUNCTIONS) DUE 24/10/2010

For each question below, you are to include the following details: i) Specification Requirements
ii) Problem analysis –include input , process, output and test data. iii) Design (pseudo code)
iv) C++ code ( source code)
v) Print screen of output.

In the XIX Commonwealth Games, the Medals Tally shows the list of participating countries according to their achievements of gold, silver, and bronze medals. The arrangement is based on the highest number of medals and if they are the same, the country will be displayed in alphabetically order.

Assume there are 10 countries and 10 games; each game will be given only 1 gold medal, 1 silver medal and 1 bronze medal.

Your program will display the Medals Tally based on the results of the 10 games.

The results of each 10 games will be randomly generated.

Sample Outputs:

GoldSilverBronze Total
AUS000 0
CMR000 0
ENG000 0
IND000 0
JAM000 0
KEN000 0
MAS000 0
NGR000 0
SIN000 0
WAL000 0

GoldSilverBronze
Game 1AUSINDENG
Game 2ENGAUSMAS
Game 3 ...
...

GoldSilver Bronze Total
AUS110 2
ENG101 1
IND010 1
MAS001 1
CMR000 0
JAM000 0
KEN000 0
NGR000 0
SIN000 0
WAL000 0

INSTRUCTIONS:

Please submit your typewritten report by Sunday 24/10/2010 by 11:59 p.m by uploading the softcopy to moodle and drop the hardcopy into post box level 6. Save all the programs and report in one folder and zip the folder before you upload. Please make a cover page with the following information

Course:
Name:
Matric No:
Group/Subgroup:

The name of the folder that you upload must follow this standard: PROG IV YOUR FULL...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Assigment Essay
  • Essay about English 111
  • 111 Essay
  • Essay about Assigment
  • Assigment Essay
  • assigment Essay
  • Assigment Research Paper
  • ASSIGMENT Essay

Become a StudyMode Member

Sign Up - It's Free