
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
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
1 / 1
This page cannot be seen from the preview
Don't miss anything!
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 ).