Prepare
In this guided project, you’ll use Visual Studio Code to develop portions of a C# console application. You’ll begin by writing the code that performs various numeric calculations. All calculations must be completed within the existing iteration and selection structures. This Prepare unit provides you with the overall goals of the project and the requirements for your application. The Setup section describes how to set up your development environment, including a “Starter” code project.
Important
This module includes coding activities that require Visual Studio Code. You’ll need access to a development environment that has Visual Studio Code installed and configured for C# application development.
Project specification
The Starter code project for this module is a C# console application that implements the following code features:
- Uses arrays to store student names and assignment scores.
- Uses a
foreach
statement to iterate through the student names as an outer program loop. - Uses an
if
statement within the outer loop to identify the current student’s name and access that student’s assignment scores. - Uses a
foreach
statement within the outer loop to iterate through the assignment scores array and sum the values. - Uses an algorithm within the outer loop to calculate the average exam score for each student.
- Use an
if-elseif-else
construct within the outer loop to evaluate the average exam score and assign a letter grade automatically. - Integrates extra credit scores when calculating the student’s final score and letter grade as follows:
- Detects extra credit assignments based on the number of elements in the student’s scores array.
- Applies a 10% weighting factor to extra credit assignments before adding extra credit scores to the sum of exam scores.
Your goal in this challenge is to implement the coding updates required to produce the teacher’s requested score report.