John 6:10-14 (NKJV)
“Then Jesus said, “Make the people sit down.” Now there was much grass in the place. So the men sat down, in number about five thousand.
And Jesus took the loaves, and when He had given thanks He distributed them to the disciples, and the disciples to those sitting down; and likewise of the fish, as much as they wanted.
So when they were filled, He said to His disciples, ‘Gather up the fragments that remain, so that nothing is lost.’
Therefore they gathered them up, and filled twelve baskets with the fragments of the five barley loaves which were left over by those who had eaten.
Then those men, when they had seen the sign that Jesus did, said, ‘This is truly the Prophet who is to come into the world.’ “
Guided Project #1 adapted from Microsoft Learn with my own unique alterations.
Student Grading Application
Task: Develop a simple application that automates student grading.
The algorithm should consider all of the scored assignments.
This simple application should result in an overall grade/score for the class.
Prompt: We need to sum the values of eight of their assignment scores. Then this sum is utilized to calculate their average, which will be their current grade.
(1) We need to create a variable for each of our three students. This variable will represent the sum of all eight assignment scores.
(1a): We will start by assigning a value of zero to each student. This will initialize the variable to 0.
(1b): We will create output that displays the (1) name of our student & (2) the sum of their assignments.
My three students are named: Erok, Erich, and Yuni.
int erokSum = 0;
int erichSum = 0;
int yuniSum = 0;
Console.WriteLine("Erok: " + erokSum);
Console.WriteLine("Erich: " + erichSum);
Console.WriteLine("Yuni: " + yuniSum);
//This is the code I utilized to create the variables for (1a) & the output for (1b).
My output for this code looks like this:

(1c): Create variables & test scores for eight assignments for each of the three students: Erok, Erich, & Yuni.
int erok1 = 90;
int erok2 = 91;
int erok3 = 53;
int erok4 = 58;
int erok5 = 3;
int erok6 = 95;
int erok7 = 77;
int erok8 = 91;
int erich1 = 100;
int erich2 = 79;
int erich3 = 93;
int erich4 = 72;
int erich5 = 73;
int erich6 = 77;
int erich7 = 81;
int erich8 = 65;
int yuni1 = 100;
int yuni2 = 94;
int yuni3 = 73;
int yuni4 = 99;
int yuni5 = 72;
int yuni6 = 50;
int yuni7 = 100;
int yuni8 = 99;
(1d): Now, I will update the “erokSum”, “erichSum” and “yuniSum” variables with the new assignment variables.
erokSum = erok1 + erok2 + erok3 + erok4 + erok5 + erok6 + erok7 + erok8;
erichSum = erich1 + erich2 + erich3 + erich4 + erich5 + erich6 + erich7 + erich8;
yuniSum = yuni1 + yuni2 + yuni3 + yuni4 + yuni5 + yuni6 + yuni7 + yuni8;
The output should now look like this:

(2) Create Variables To Store The Average Values
(2a) I will now declare three new variables. These variables will store the average scores.
The decimal data-type is chosen because we want our averages to include decimals.
decimal erok_avgScore;
decimal erich_avgScore;
decimal yuni_avgScore;
(2b) We will now create a new variable. This new variable will hold the value of the total number of assignments. Each of our three students have been assigned eight assignments.
int number_of_Assignments = 8;
(2c) We will initialize our previous variables “erok_avgScore”, “erich_avgScore” and “yuni_avgScore” with this formula:
“erokSum / number_of_Assignments”
decimal erok_avgScore = erokSum / number_of_Assignments;
decimal erich_avgScore = erichSum / number_of_Assignments;
decimal yuni_avgScore = yuniSum / number_of_Assignments;
(2d) Finally, we will update our Console.WriteLine ( ); code as follows:
Console.WriteLine("Erok's Average Score is: " + erok_avgScore);
Console.WriteLine("Erich's Average Score is: " + erich_avgScore);
Console.WriteLine("Yuni's Average Score is: " + yuni_avgScore);
My output now looks like this:

*** Stay tuned for variations of this project ***
The entire code for the project looks like:
namespace New_Microsoft_Project
{
internal class Program
{
static void Main(string[] args)
{
int number_of_Assignments = 8;
int erok1 = 90;
int erok2 = 91;
int erok3 = 53;
int erok4 = 58;
int erok5 = 3;
int erok6 = 95;
int erok7 = 77;
int erok8 = 91;
int erich1 = 100;
int erich2 = 79;
int erich3 = 93;
int erich4 = 72;
int erich5 = 73;
int erich6 = 77;
int erich7 = 81;
int erich8 = 65;
int yuni1 = 100;
int yuni2 = 94;
int yuni3 = 73;
int yuni4 = 99;
int yuni5 = 72;
int yuni6 = 50;
int yuni7 = 100;
int yuni8 = 99;
int erokSum = 0;
int erichSum = 0;
int yuniSum = 0;
erokSum = erok1 + erok2 + erok3 + erok4 + erok5 + erok6 + erok7 + erok8;
erichSum = erich1 + erich2 + erich3 + erich4 + erich5 + erich6 + erich7 + erich8;
yuniSum = yuni1 + yuni2 + yuni3 + yuni4 + yuni5 + yuni6 + yuni7 + yuni8;
decimal erok_avgScore = erokSum / number_of_Assignments;
decimal erich_avgScore = erichSum / number_of_Assignments;
decimal yuni_avgScore = yuniSum / number_of_Assignments;
Console.WriteLine("Erok's Average Score is: " + erok_avgScore);
Console.WriteLine("Erich's Average Score is: " + erich_avgScore);
Console.WriteLine("Yuni's Average Score is: " + yuni_avgScore);
}
}
}
John 6:10-14 (NKJV)
“Then Jesus said, “Make the people sit down.” Now there was much grass in the place. So the men sat down, in number about five thousand.
And Jesus took the loaves, and when He had given thanks He distributed them to the disciples, and the disciples to those sitting down; and likewise of the fish, as much as they wanted.
So when they were filled, He said to His disciples, ‘Gather up the fragments that remain, so that nothing is lost.’
Therefore they gathered them up, and filled twelve baskets with the fragments of the five barley loaves which were left over by those who had eaten.
Then those men, when they had seen the sign that Jesus did, said, ‘This is truly the Prophet who is to come into the world.’ “
Leave a Reply