write a program that reads the grades from the file and displays the number of scores in the “A” range (90-100) “B” range (80-89)Visual Studio Programming

Lab Project 3– For Loops, Arrays & Procedures Project

Create a text file, “Final.txt” that contains 25 student grades on a final exam:

78,85,50,93,88,97,55,72,81,90,80,46,77,86,66,72,65,83,90,77,81,78,50,53,87

Each grade should be on a separate line with no commas

Then write a program that reads the grades from the file and displays the number of scores in the

 

  • “A” range (90-100)
  • “B” range (80-89)
  • “C” range (70-79)
  • “D” range (60-69)
  • “F” range (below 60)

 

Also list the highest score, lowest score, the average (mean) score and the percentage of the grades that fall above the average.   

The name of the project must have your name in it.

The following constructs are required (in parenthesis are suggested places to use constructs)

Do Loop (reading file, count number of grades)

Array (store grades)

Subroutine (update count for each letter grade)

Select Case (Update count for each letter grade)

High Score, Low score, Average and % above average must be figured out within the program.

            DO NOT USE ARRAY SHORTCUTS (min, max sum or average)

Do not use more than 2 loops. Make sure the second loop is the right kind of loop.     

      Hints: 

1) You can not figure out the average until after you have read in all of the test scores.

2) After figuring out the average you must read the array in another loop to figure out how many are above average.

Attachments:

Instructions Files

Visual Studio Programming Experts

expert
Joseph Ackerson
Visual Studio Programming

55 Answers

View More Experts
Disclaimer

The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.

Get Free Quote!

265 Experts Online