100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Ensayo

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

Puntuación
3.6
(8)
Vendido
41
Páginas
14
Grado
D
Subido en
16-03-2021
Escrito en
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.

Mostrar más Leer menos
Institución
Grado









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Libro relacionado

Escuela, estudio y materia

Nivel de Estudio
Editores
Tema
Curso

Información del documento

Subido en
16 de marzo de 2021
Número de páginas
14
Escrito en
2019/2020
Tipo
Ensayo
Profesor(es)
Desconocido
Grado
D

Temas

Vista previa del contenido

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
$10.56
Accede al documento completo:
Comprado por 41 estudiantes

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Reseñas de compradores verificados

Se muestran 7 de 8 comentarios
3 año hace

3 año hace

3 año hace

3 año hace

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

3 año hace

3 año hace

3 año hace

3.6

8 reseñas

5
3
4
1
3
3
2
0
1
1
Reseñas confiables sobre Stuvia

Todas las reseñas las realizan usuarios reales de Stuvia después de compras verificadas.

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
BpoBpo University of Central Lancashire Preston
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
309
Miembro desde
5 año
Número de seguidores
250
Documentos
78
Última venta
2 meses hace

3.7

73 reseñas

5
27
4
17
3
17
2
5
1
7

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes