Preview

Cpt 111 - Assigment

Satisfactory Essays
Open Document
Open Document
488 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Cpt 111 - Assigment
[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:

Gold Silver Bronze Total
AUS 0 0 0 0
CMR 0 0 0 0
ENG 0 0 0 0
IND 0 0 0 0
JAM 0 0 0 0
KEN 0 0 0 0
MAS 0 0 0 0
NGR 0 0 0 0
SIN 0 0 0 0
WAL 0 0 0 0

Gold Silver Bronze
Game 1 AUS IND ENG
Game 2 ENG AUS MAS
Game 3 ...
...

Gold Silver Bronze Total
AUS 1 1 0 2
ENG 1 0 1 1
IND 0 1 0 1
MAS 0 0 1 1
CMR 0 0 0 0
JAM 0 0 0 0
KEN 0 0 0 0
NGR 0 0 0 0
SIN 0 0 0 0
WAL 0 0 0 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

You May Also Find These Documents Helpful

  • Good Essays

    Dbq on Olympic

    • 707 Words
    • 3 Pages

    The technology right now allows people from different countries to communicate with each other, by airplane, cellphone, email. However in 1892, such technology did not exist, but people unite in different way – Olympic. It is an athletic game originally held in Greece city states every four years in honor of Zeus, their god. Shaped by many factors; ever since the first modern Olympic start in Athens in 1896 this competition became international celebrated. Such as the countries ‘pride of associate with Olympic, the impact of conflict political view affects the team, the economic opportunities created by the events, and influence of society views on gender role of female.…

    • 707 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Olympics Dbq Analysis

    • 732 Words
    • 3 Pages

    There are many different factors that have shaped the modern Olympic movement from 1892 to 2002. It was originally revived so people of different races could interact with other people without conflict. They wanted to have a temporary time of international peace. This idea is expressed in Document 1. The author, Pierre de Coubertin, explains how the athletes are exported into other lands without any hostility. The author is credible because he is also the founder of the modern Olympic movement. However, many countries were motivated by political, social, and economical reasons. The reasons altered the competitiveness of the Olympics.…

    • 732 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    • Australia won every men's and women's freestyle race and collected a total of 8 gold medals.…

    • 589 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Bus 237

    • 1079 Words
    • 5 Pages

    You are required to prepare a maximum two-page summary report of this article in Microsoft Word, including a…

    • 1079 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Olympic Games DBQ

    • 602 Words
    • 3 Pages

    The economies of the countries who host the Olympic games generally have a boost in the economy. With a few exceptions like South Korea. Even with the Olympic games being hosted in Seoul, none of their companies were selected as top sponsors. “Korean companies are not on the list. Korea failed to avail itself of an opportunity to display its industrial and economic power to a worldwide television audience.” (Doc 7) One country that always contributed to the games was the United…

    • 602 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Dbq Olympics Apwh

    • 1089 Words
    • 5 Pages

    There were many factors that helped shape the Olympic Games from 1892 to 2002. Originally, Olympic Games were conducted in Ancient Greece in hopes of uniting its city-states Athens and Sparta and to promote peace through sports activity. When Olympic Games were resurrected in 1892, they had the same goal of promoting peace in the world. Over time factors such as nationalism, The Cold War, changes in global economy and a rise in feminism facilitated changes in the Olympic Games. However, a great additional document to add would be a personal letter from one of the German athletes or a bar graph before the world wars had taken place.…

    • 1089 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Dbq - Olympics

    • 930 Words
    • 4 Pages

    The Olympic games today have been influenced by many factors that happened throughout history. In documents 2 and 8, the increases of women participants in the games show social change of the world. In documents 3 and 4 the influence of nationalism causes countries to become extremely competitive. In 6 and 3 nations show their pride of their home country by proving themselves as top notch. In 7 and 10, the opinionated views of a Japanese and Pakistani journalist on the wealth of certain nations and the strategy of certain countries in the playing of a sport. In documents 1 and 5, countries are shown to be needing the games in order to rebuild not only economy but pride and in documents 9 and 7, powerhouses prove they will always overcome the enemy.…

    • 930 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Your report is to be prepared as a Word document and transmitted to the instructor as a Dropbox attachment.…

    • 409 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Essays

    • 450 Words
    • 2 Pages

    - There needs to be 3 sections for this report and they are to be as followed:…

    • 450 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    communication develop plan

    • 1389 Words
    • 6 Pages

    The project report is due Thursday, November 14, 2013. A hard copy of your report is due at the start of…

    • 1389 Words
    • 6 Pages
    Good Essays
  • Better Essays

    1896: Olympic Change

    • 927 Words
    • 4 Pages

    Competitors from 11 to 16 different nations participated in the inaugural 1896 Games, in Athens. Eleven nations Australia, Austria, Denmark, England, France, Germany, Greece, Hungary, Sweden, Switzerland, and the United States are mentioned in the official report for the Games and the International Olympic Committee states that 14 nations were represented. In 1896 there was 14 nations participating and 241 athletes participating. In 2016 there was 207 nations participating and 11,237 athletes…

    • 927 Words
    • 4 Pages
    Better Essays
  • Better Essays

    Why Did Olympics Start

    • 740 Words
    • 3 Pages

    Do you know how the Olympics all started? The purpose of this paper is to explain how the Olympics first began and why it began. There are many different games that have been adapted over the years. The importance of this paper is to inform the reader of how the Olympics developed and why it developed.…

    • 740 Words
    • 3 Pages
    Better Essays
  • Good Essays

    Second Amendment

    • 260 Words
    • 2 Pages

    Your report must be at least 300 words. List all web resources and referenced materials that were used. You must use the APA citation style…

    • 260 Words
    • 2 Pages
    Good Essays
  • Good Essays

    First, the scores in luge are calculated by counting the total time it takes for the athlete to complete the run. All runs are timed to a thousandth of a second. The rules are very complex and you can be disqualified if you chose to not follow the rules that go along with this event. Here are a couple of the rules that come with this event. For singles, athletes will be allowed to take four separate runs.…

    • 533 Words
    • 3 Pages
    Good Essays
  • Better Essays

    "Equipment and History." Olympics | Olympic Medals Results Videos Sports News | IOC. N.p., n.d. Web. 16 Oct. 2013.…

    • 1968 Words
    • 8 Pages
    Better Essays