100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Essay

Unit 4 - programming assignment 2 example distinction (contains C++ code snippets)

Beoordeling
3,6
(8)
Verkocht
41
Pagina's
14
Cijfer
D
Geüpload op
16-03-2021
Geschreven in
2019/2020

NOTE! This document only contains 90% of the assignment. It is missing some small portion of Learning aim B. Also, this tournament system was made by one person so having things such as a record of the review and a document that demonstrates that you have shown individual responsibility and effective self-management was not applicable. If the project would've been done by more than one person, then these would be required. This document contains a description of the tournament system, evaluation, code snippets for the tournament system that is needed for assignment 2, design (flowchart), optimization, and also test logs.

Meer zien Lees minder
Instelling
Vak









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Gekoppeld boek

Geschreven voor

Study Level
Publisher
Subject
Course

Documentinformatie

Geüpload op
16 maart 2021
Aantal pagina's
14
Geschreven in
2019/2020
Type
Essay
Docent(en)
Onbekend
Cijfer
D

Onderwerpen

Voorbeeld van de inhoud

Programming Assignment 2



Tournament event system



Make a dice roll function, that would determine team event pick que.

It will generate random values from 2 to 12 (two dices) for each team. It will bubble sort the teams
in an array to make a que for teams to choose events they want to participate in.

e.g. “Team 1 rolls 8”, “Team 2 rolls 9”, “Team 3 rolls 2”, “Team 4 rolls 12”

So, the team que according to the function will be:

1. Team 4
2. Team 2
3. Team 1
4. Team 3

Then, it will ask for the Team 4 (since it rolled the highest value) to choose 1 out of 5 events.

e.g. “Team 4, please choose 1 out of 5 possible events that you will be participating, by typing in
their number.”

*Displays the event*

“1. Event One 2. Event Two 3. Event Three 4. Event Four 5. Event Five”



After the team chooses the event, it will store the choice for the specific team.

Array that contains 4 place holders for the choices



When the events have been assigned to the teams, then each member in the teams will start taking
their part in the event.

e.g. “Team 1 started Event Three”

“Member 1 from Team 1 has scored 14 (random value)”

“Member 2 from Team 1 has scored 32 (random value)”

“Member 3 from Team 1 has scored 15 (random value)”

“Member 4 from Team 1 has scored 76 (random value)”

“Member 5 from Team 1 has scored 4 (random value)”

After the team finished their event, they it will calculate the total score and put it into the score
array. In the score array the score will be bubble sorted and the winners will be decided.

, 1. Output members of teams using for loops
2. If statements based on the chosen event
3. If statements will contain main formula for which the score will be calculated
4. The if statement has to be in the for loop
€8,25
Krijg toegang tot het volledige document:
Gekocht door 41 studenten

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Beoordelingen van geverifieerde kopers

7 van 8 beoordelingen worden weergegeven
3 jaar geleden

3 jaar geleden

3 jaar geleden

3 jaar geleden

this was not the work i was looking for and its definitely not a distinction level work

3 jaar geleden

3 jaar geleden

3 jaar geleden

3,6

8 beoordelingen

5
3
4
1
3
3
2
0
1
1
Betrouwbare reviews op Stuvia

Alle beoordelingen zijn geschreven door echte Stuvia-gebruikers na geverifieerde aankopen.

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
BpoBpo University of Central Lancashire Preston
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
309
Lid sinds
5 jaar
Aantal volgers
250
Documenten
78
Laatst verkocht
1 maand geleden

3,7

73 beoordelingen

5
27
4
17
3
17
2
5
1
7

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen