Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Modify the C# code above to do the following: 1- Receive student grade 2- After printing the report, calculate the average of all scores. 3-

Modify the C# code above to do the following: 1- Receive student grade 2- After printing the report, calculate the average of all scores. 3- Display the highest grade. 4- Display the lowest grade.

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UnsingArrays { class Program { static void Main(string[] args) { int[] grades; string[] names; string name; int elements = 0; Console.Write("Enter Count of Enrolled Students: "); elements = Convert.ToInt32(Console.ReadLine()); grades = new int[elements]; names = new string[elements]; if (elements > 0) { for (int i = 0; i < elements; i++) { Console.Write("Enter Student Name or X to exit: "); name = Console.ReadLine(); if(name.ToUpper() == "X") { i = elements; } else { names[i] = name; Console.Write("Enter " + name + "'s grade: "); //Enter code for grades } } for(int i = 0; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

What is an information system? What is its purpose?

Answered: 1 week ago

Question

LO1 Discuss the objectives of human resource management.

Answered: 1 week ago

Question

Explain the market segmentation.

Answered: 1 week ago

Question

Mention the bases on which consumer market can be segmented.

Answered: 1 week ago

Question

How was your life influenced by those events?

Answered: 1 week ago

Question

Which of these influenced your life most dramatically?

Answered: 1 week ago