Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Extra Credit Assignment #10: Analyzing Video Game Players using Arrays of Objects, Assignments of Computer Science

Instructions for an extra credit programming assignment aimed at helping students learn to use arrays of objects in programming. The objective is to write a program for analyzing players of a video game, allowing users to input player names and skill levels, and outputting the average skill level, list of advanced players, and highest skill level with corresponding players. Use a player class with name and skilllevel fields.

Typology: Assignments

Pre 2010

Uploaded on 08/18/2009

koofers-user-xnp
koofers-user-xnp 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Extra Credit Version of Assignment #10
Each extra credit programming assignment is worth 10 points; they are due by the last lab
session of the semester (May 2 or May 3, depending on your lab schedule)
Objective: The main objective of this assignment is to learn to use arrays of objects.
Programming assignment: Write a program for analyzing players of a video game. This
program must allow the user to enter the name of the player followed by his/her skill
level. Assume that we have a tournament, so the overall number of players does not
exceed 50. You must then output the following information:
the average skill level;
the list of all the players whose skill level is advanced (i.e., above 50);
the highest skill level, and the list of all the players having the highest skill level.
Hints:
For this assignment, define a class Player whose objects contain two fields:
a field name that contains the name of the player, and
a field skillLevel that contains the player’s skill level.
Use a single array of players (i.e., of objects of type Player).

Partial preview of the text

Download Extra Credit Assignment #10: Analyzing Video Game Players using Arrays of Objects and more Assignments Computer Science in PDF only on Docsity!

Extra Credit Version of Assignment # Each extra credit programming assignment is worth 10 points; they are due by the last lab session of the semester (May 2 or May 3, depending on your lab schedule) Objective: The main objective of this assignment is to learn to use arrays of objects. Programming assignment: Write a program for analyzing players of a video game. This program must allow the user to enter the name of the player followed by his/her skill level. Assume that we have a tournament, so the overall number of players does not exceed 50. You must then output the following information:  the average skill level;  the list of all the players whose skill level is advanced (i.e., above 50);  the highest skill level, and the list of all the players having the highest skill level. Hints : For this assignment, define a class Player whose objects contain two fields:  a field name that contains the name of the player, and  a field skillLevel that contains the player’s skill level. Use a single array of players (i.e., of objects of type Player ).