Question: Using Visual Studio Console App (.NET framework) Modify and fix the following code so it can extend to accept and report information from more than
Using Visual Studio Console App (.NET framework) Modify and fix the following code so it can extend to accept and report information from more than one student.
GIVEN CODE :
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace procNotas { class Program { static void Main(string[] args) { int i; // Counter in the loop double total = new double(); // Student average double[] table = new double[10]; // The grade of each student's test will be saved in this arrangement double weight = new double(); // It will be used to calculate the weight of each tests or assignment double finEx = new double(); // The last test grade will be saved double asig = new double(); //The note of the assignments will be saved string grade = "", name = "", numEst = ""; // It will show the grade that the student obtained according to his average Console.Write("Enter the student's name: "); // Ask the use to enter its name name = Console.ReadLine(); // Ask the user to enter the student number Console.Write("Student number: "); numEst = Console.ReadLine(); // This cycle will be used so that the user can enter the 3 marks of the student's partial tests { Console.Write("Enter test grade " + i + ": "); table[i] = double.Parse(Console.ReadLine());// Save the test grade in an arrangement weight = table[i] * .15; // Multiply the test grade by the weight of that test total = total + weight; // Accumulate the grade of each test for average } Console.Write("Enter the last test grade: "); finEx = double.Parse(Console.ReadLine()); //Saves Last Grade weight = finEx * .20; // Multiply the fina grade by the weight of that final test total = total + weight; // Accumulate the final grade with the other grades the student has Console.Write("Enter note of assignments: "); asig = double.Parse(Console.ReadLine()); // Save the note of the assignments weight = asig * .35; // Multiply the grade of the assignments by the weight of the assignments total = total + weight; // Accumulate the note of the assignments with the other notes that the student has // Displays the average that the student obtained in the course Console.WriteLine("Average: " + total); if (total >= 0 & total = 65 & total = 70 & total = 80 & total = 90 & total
OUTPUT FORMAT REQUIRED

Enter the student's name : Luis Students Name : 843-00-9999 Enter grade of test 1:77 Enter grade of test 2: 87 Enter grade of test 3 : 88 Enter final ex grade : 99 Enter assignments grade : 89 Average: 88.75 You had obtain a B in the SICI 3032 class Name: Luis ID: 843-00-9999 Would you like to continue ? ( Yes/No) Yes Enter the student's name : Luis Students Name : 843-00-8964 Enter grade of test 1: 67 Enter grade of test 2 67 Enter grade of test 3: 67 Enter final ex grade : 67 Enter assignments grade :67 Average 67 You had obtain a D in the SICI 3032 class Name : Pedro ID: 843-00-8964 Would you like to continue ? (Yes/No) No Press Any Key to exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
