Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ Objectives: conditions, loops, abstract data type, arrays, multiple source files and file O. Write a Student Information Viewing program. This project requires a

In C++ image text in transcribed
Objectives: conditions, loops, abstract data type, arrays, multiple source files and file O. Write a Student Information Viewing program. This project requires a user-defined stzuct type A student.h header file, declared below, is used to represent each student record in the system and functions that you need to implement. Implement the declared student functions in a file named student.cpp. Develop a program, name projo1.cpp, to read from input student data record file and create a list of student records. The input data file can store up to 35 student records. This program can perform 2 functions .List: to list all the student records read from the input file Find: to lookup a specific student record by the input student id. Student ID read from command line is character string. It needs to be converted to an integer before calling the find function. Use the atoi) function in header for the conversion. Your program will read all input from the command line, no prompting for user input and hardcoding for input file name. The required program output is provided below Declaration of Student struct: /f efile student.h #ifndef STUDENT-H define STUDENT H # include using namespace std; struct Student f string firstName; string lastName int id char grade; param filename name of the input data file param students an array of student records read from the file * return the number of student records read int read (string filename, Student students() param id the student id to search for param length the number of student records in the array return the array index of the match student record, otherwise it returns -1 *param students the list of student records int find (int id, Student students, int length) #endif /* STUDENT H */

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Is it possible for an economy to be based entirely on services?

Answered: 1 week ago