logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

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)

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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.

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Atharva PatilComputer science

862 Answers

Hire Me
expert
Chrisantus MakokhaComputer science

655 Answers

Hire Me
expert
AyooluwaEducation

954 Answers

Hire Me
expert
RIZWANAMathematics

709 Answers

Hire Me

Get Free Quote!

283 Experts Online