logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

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

expert
Bernard BealeBusiness
(5/5)

813 Answers

Hire Me
expert
StatAnalytica ExpertPolitical science
(5/5)

590 Answers

Hire Me
expert
Hardik DixitSociology
(5/5)

747 Answers

Hire Me
expert
Mohammad KaifAccounting
(5/5)

900 Answers

Hire Me
Visual Studio Programming

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.

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. 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

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme