代做COMP 1406A Assignment 3: Introduction to GUI’s帮做SQL 程序

COMP 1406A Assignment 3: Introduction to GUI’s

Commonwealth Games

The Commonwealth Games are a series of sporting events held every 4 years, which host competitors from a body of 72 member nations and territories, including Australia. The 2022 Commonwealth games have just ended, and the organisers are looking ahead towards the 2026 Games, which are to be held here in Victoria.

Your team is going to be helping to create the technical infrastructure for recording the athletes, events, and results of the games. As part of this, you’ll be creating a MySQL database to store this information. The following specifications have been provided to you to assist in your design. The team also wants to store data about future games, and possibly previous ones too so that it can all be kept in the one system and accessed conveniently.

Note: Some simplifications have been made compared to the real games, in particular we do not carefully consider round-based sports (e.g. basketball), do not consider qualifier data, etc. If at any point your understanding of The Games and this specification contradict, consider this specification as authoritative.

Regions, countries, and Games

Currently, 72 member nations (countries) compete in The Games. These nations are divided into 6 fixed regions: Africa, Americas, Caribbean, Europe, Asia, and Oceania. For each member nation we should store their name, and a link to an image of their flag.

The Games are held every 4 years, and are located in one of the member nations. Each set of games has a ‘host city’ within that nation (e.g. Melbourne, Australia). Each set of games has its own ‘theme song’ for which we need to store the name (e.g. ‘This is the Moment’), as well as a music video recording (to be played at the event).

Sports, Events, and Competitors

The Games are broken down into various sports (e.g. ‘swimming’, ‘basketball’, ‘shotput’, ‘wheel-chair race’,etc.). Each sport consists of a set of events (e.g. ‘100m men’s breast-stroke’ and ‘50m women’s breast-stroke’ are both events that fall under the sport of ‘swimming’). Each event is for only one sport. New sports and

events may be added, or old ones removed, from future games. Events may be either ‘time-based’ or ‘score based’. Additionally, all events have a set of rules (which can be 10,000+ chars long) which we should store.

Events are competed in by ‘competitors’. Events can be ‘individual’ or ‘group’ based. In individual events, each ‘competitor’ is a single ‘athlete’ (e.g. ‘100m men’s sprint’). For group events, each ‘competitor’ is actually a group of several athletes that compete together (e.g. a relay race). Every competitor in The Games competes as a representative of one of the member nations.

Note that each country might be represented by several competitors in the same event. This is true for both group and individual events. For example, out of 10 swimmers in the ‘100m men’s breast-stroke’ (which is an individual event), there might be 2x Australian athletes who are competing separately and are thus separate competitors.

For each athlete, we need to record their name (which consists of their first, middle, and last name, and their title), and date of birth. Athletes may compete in many different games over time, and might potentially represent more than one country over time.

As part of each event, we may store up to 1 photo per competitor that was taken during the event. These photos will have been uploaded online, and so we only store the link. For instance, for the ‘100m men’s breaststroke’ (an individual event), we might store a link for up to one photo that was taken during the event of each of the individual swimmers. For a group event like the ‘1000m men’s freestyle. relay’, where the ‘competitor’ is in fact 4 athletes, we still only store up to one photo per competitor/group of 4.

Scores and Medals

For each competitor, we need to record their ‘performance’ in the event. Each event can be one of the following types depending on what performance means in that context:

  1. Time based events have a final time that the competitor took to perform. a task (like swimming,running), as well as a ‘penalty time’ which may be used if the competitor was penalised during the event (i.e. broke an event rule).
  1. Score based events have a final score that the competitor earned (like diving, archery). They also have a field for ‘disqualification’ set to ‘true’ if the competitor was disqualified for any reason. Score-based events may also have been scored by a panel of judges (e.g. in diving), in which case we need to record the names of all judges on the panel for that event. The same judges will judge all competitors in the one instance of the event (e.g. the same judges assessed all of the competitors in the ‘2022 men’s springboard diving’)

Note that we record times/scores per ‘competitor’, so for group-based events we’d record only a single ‘time’ or ‘score’ record for the group as a whole.

For all event types, we should also record the date and time that each event occurred, and the number of spectators present. For some events the average and maximum outside temperature recorded during that event must be recorded.

Gold, Silver, and Bronze medals are awarded based on competitors’ performances.

Venues

Each event takes place in a venue provided by the host city. For each venue, we need to store the name,latitude + longitude, spectator capacity, and a photo of the venue.

Some venues might be ‘inside’ of other venues. For example, a swimming event might be conducted in the ‘Queen Elizabeth Swimming Pool’, but this pool is a part of a larger venue called the ‘London Aquatics Center’.

Note that some other event might just be listed as being held at the ‘London Aquatics Center’, rather than another venue inside of it.

Business Requirements

Your database design needs to be able to meet the business’ needs to answer questions such as:

  1. Which series of games did competitor ‘Emma McKeon’ participate in?
  2. List names of the events that belong to a sport ‘swimming’ but have never been held at The Games.
  3. List the names of all events that were held in the 1974 games.
  4. Find the youngest Badminton player that has ever represented Bermuda.
  5. Which athlete had the lowest time for the 2022 games’ Women’s Wheelchair Race event (and thus won the gold medal)?
  1. Which venue has the greatest number of venues inside of it?
  2. How many sports have had events in the past, but had no events in the 2022 games?
  3. Which country has had the greatest number of competitors across all games?
  4. What were the names of the judges that scored the Men’s Diving event at the 2018 games?
  5. Which sport’s events had the highest average number of spectators?
  6. What is the record keeping time in 100m men’s breast-stoke across all the games recorded?
  7. How many competitors were disqualified or received penalty time in the 2018 games?
  8. Is there a link to a photo of athlete ‘Kyle Chalmers’ competing in the 2022 games in the event ‘men’s 100m freestyle’?




热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图