Skip to Main Content
Introducing Data Structures with Java
book

Introducing Data Structures with Java

by David Cousins
March 2013
Intermediate to advanced content levelIntermediate to advanced
416 pages
9h 41m
English
Pearson Education India
Content preview from Introducing Data Structures with Java

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Structures and Algorithms Using Java

Data Structures and Algorithms Using Java

William McAllister

Publisher Resources

ISBN: 9788131758649