14

Case Study 1—A Student Grades Program

14.1 INTRODUCTION

The purpose of this case study is to review, apply and extend the contents of Chapter 6, which deals with array searching. It also illustrates the process of reading data from a file.

14.2 THE APPLICATION

A tutor keeps a data file holding a list of the names of all students in a group together with their semester grades for the course Data Structures. Grades are in the form of capital letters, A–C, followed possibly by a ‘+’ or ‘–’ sign, such as B+ or C–.

The following operations are required:

  1. to look up a given student’s grade;
  2. to display the names of all students with a given grade, and display the total number of students having that grade;
  3. to display the entire set of data.

The ...

Get Introducing Data Structures with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.