This is the challenge called ChallengeStudentCourses that covers the lessons dealing with Collections, Lists, Dictionaries and Initializers. This challenge is broken up into three sub-challenges, each of which are detailed below and covered more in-depth in the provided code. That code will be found in the CS-ASP_051-Challenge_Code folder.
Your first challenge is to create a List of courses that each have students registered to them, retrieve the Course ID, Name and Student information, then display it to the user. You should create three courses for this List, and each course should have at least two students registered for them. Each student has an ID number and a name. The code you write for this will go under the pre-generated assignment1Button_Click event. The classes you'll need are already created and populated with properties. When complete, the result should look like this:
Note: The names of the Courses, Students, and the Student Id's is up to you to decide. You can fill in any names you'd like.
Here's the detailed assignment as you'll see in the code file:
The second challenge is to create a Dictionary of students with at least three students. The key for each dictionary entry should be the student's ID number. Each student will have two courses that they are registered to. You'll need to write code in the assignment2Button_Click to display the information to the user:
Here's the detailed instructions from the code file:
This challenge requires you to keep track of a student's courses, as well as the grade they received in the course. At a minimum, you should create a new class to give the functionality needed for this challenge. You'll display the information to the user when they click the assignment3Button:
Note: The information pertaining to the grades can either be randomized or hard-coded. You have the choice to do whichever you would like.
Here are the detailed instructions for this challenge:
As always, do your best to solve as much of this challenge as you can on your own. Only look at the solution if you get stuck, or if you want to compare your solution against Bob's. There are many different ways to complete this challenge, and the one that is in the solution is not necessarily even the best. If you manage to solve this using a different implementation, then it is just as legitimately completed. Good luck!
Challenge 11 - Challenge Student Courses