Create a text file named grades.txt

Assignment Help C/C++ Programming
Reference no: EM13161563

Write a program to calculate students' average test scores and their grades. Creat a text file named grades.txt and add the following data just as it is:

Johnson 85 83 77 91 76    
 Aniston 80 90 95 93 48   
 Cooper 78 81 11 90 73     
 Gupta 92 83 30 69 87  
  Blair 23 45 96 38 59    
 Clark 60 85 45 39 67     
 Kennedy 77 31 52 74 83   
  Bronson 93 94 89 77 97    
  Sunny 79 85 28 93 82     
 Smith 85 72 49 75 63 
  1. Use three arrays: a one-dimensional array to store the students' names, a (parallel) two-dimensional array to store the test scores, and a parallel one- dimensional array to store grades.
  2. Your program must contain at least the following functions: a function to read the data from the external file and store into two arrays (the student array and the grades array), a function to calculate the average test score and grade and put it into the third array, and a function to output the results.
  3. Have your program also output the class average.

Note: A parallel array is an array whose subscripts correspond to the subscripts in another array. For example

students[0] = "Johnson" grades [0][] = {85, 83, 77, 91, 76}

The zero subscripts across the parallel arrays all refer to the first student in the list

 

Reference no: EM13161563

Questions Cloud

Data file is a comma separated : The data file is a comma separated text values stored in a file with '.CSV' extension. The file has five columns corresponding to employee data fields listed above.
Calculate the amount of stock reagent : Calculate the amount of stock reagent.
State what is the vapor pressure of an aqueous : What is the vapor pressure at 75 degrees celcius of an aqueous solution prepared by the addition of 52.9 g of urea CO(NH2)2 to 178 g of water?
What are the levels of marine zones : What are the levels of marine zones? Where is the aphotic zone? Pelagic zone?
Create a text file named grades.txt : Write a program to calculate students' average test scores and their grades. Creat a text file named  grades.txt
What is the ph of the buffer after the addition of naoh : What is the pH of the buffer after the addition of 0.02 mol of NaOH? C)What is the pH of the buffer after the addition of 0.02 mol of HI? Express Numerically
One-dimensional array to solve the : In C#, Use a one-dimensional array to solve the following problem. A company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who gros..
What is the process of virus : what is a virus? what are the components of virus? what is the process of virus? what are the types ( classes) of virus?
What is cancer : what is cancer? why is it bad? what causes cancer? what are the types of cancer?What causes alzheimer's?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write c program to find smallest-largest values

Write a program c that will find the smallest, largest and average values in a collection of N numbers.Get the value of N before scanning each value in the collection of N numbers.

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

  Output the even numbers from 1 to 10 in ascending order

Output the even numbers from 1 to 10 in ascending order, then the odd numbers from 10 to 1 in descending order: 2 4 6 8 10 9 7 5 3 1. in C++

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

  Flipflaps - game based on pancake sorting

The project is to design and write a C++ 11/FLTK game program with a graphical user interface.The game is based on "pancake sorting,", which actually has some mathematical significance.

  Create a customer profile class.

a. Create a CustomerProfile class. Each CustomerProfile contains a last name, phone number, and bit fields indicating whether the customer:

  Design a deck plan space ship in eclipse

Develop a simple interactive two-dimensional spaceship deck plan editor using OpenGL and GLUT. Your program will enable a user to create and save a deck plan of a hypothetical spaceship comprising the hull walls.

  Write application to calculate price of carpeting for room

The Westfield Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms.

  Implementation of data member counter of type int

Write the implementation (.cpp file) of Counter class. Here is the full specification of the class: A data member counter of type int.

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Calculate that implements a simple arithmetic calculator

Write a  C program  calc.c that implements a simple arithmetic calculator. Input to the calculator consists of lines composed of integer constants separated by the five arithmetic operators used in C: +, -, *, /, and %. For each line of input,

  Definitions of the class circularlinkedlist

Write the definitions of the class circularLinkedList and its member functions. (You may assume that the elements of the circular linked list are in ascending order.)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd