Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that read the given file StudentScores.txt. Store the scores for each student in an array (this should be done automatically by the

Write a program that read the given file StudentScores.txt. Store the scores for each student in an array (this should be done automatically by the program). Your program will calculate the following results and display the results on the screen. The lowest number in the array The highest number in the array The total of the numbers in the array (use integer type for total) The average of the numbers in the array (use integer type for average) The grade based on the average according to the following grading scale Test Score Letter Grade 90100 A 8089 B 7079 C 6069 D 059 F For example, if the following is the records in StudentScores.txt Kate 80 83 83 82 90 88 Tom 79 70 70 73 66 69 Andrew 90 92 94 92 90 87 The results displayed on the screen should look like the following. Name lowest highest total average grade Kate 80 90 506 84 B Tom 66 79 427 71 C Andrew 87 94 548 91 A Your program should contain the following functions:

1. A function named Lowest, which takes an array as the parameter and returns the lowest number in the array.

2. A function named Highest, which takes an array as the parameter and returns the highest number in the array.

3. A function named Total, which takes an array as the parameter and returns the total of the numbers in the array. 4. A function named Average, which takes an array as the parameter and returns the average of the numbers in the array

For example, if the following is the records in StudentScores.txt

Kate 80 83 83 82 90 88 Tom 79 70 70 73 66 69

Andrew 90 92 94 92 90 87

Notes: Program with Visual studio( If you can please explain each steps with comments, Just want to know how you getting those steps)

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

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Define "Rights Issue".

Answered: 1 week ago