Question

In C++

Write a menu driven C++ program to read a file containing information for a list of Students, process the data, then present a menu to the user, and at the end print a final report shown below. You may(should) use the structures you developed for the previous assignment to make it easier to complete this assignment, but it is not required.

Required Menu Operations are:

  1. Read Students’ data from a file to update the list (refer to sample input file below)

  2. Print Students list (content) to a file (refer to sample output below)

  3. Sort the list of students and print it to the monitor(Name, ID, Units completed, and average ):

    1. Alphabetical (Based on last name)

    2. Descending order (based on Average)

  4. Print list of employees in a tabular form to the monitor only(Name, ID, Units completed, and average )

  5. Search the list of Students find a particular student and print all the details of a student to the monitor

    (prompt user for the last name of the student)

  6. Add a new student to the list (Prompt user for data for the new student)

  7. Delete a student from the list (prompt user for the last name of the student)

  8. Edit student information

    1. Add more courses

    2. Remove1ormorecourses

    3. Change the grade for courses

  9. Exit

The program prompts user for a file name, opens and reads the data, process, and store them in an array of students. The data is stored in an array of user defined structure named Student (you need to declare it). The program calculates the total completed units and GPA for a student and stores it in the structure. The program then displays a menu and allows the user to run the program till Exit option is chosen, then prints a final table and stops the program.
Use the following table to assign points for a course:

Grade Points

  1. A 4.0

  2. B 3.0

  3. C 2.0

  4. D 1.0

F0

To calculate the GPA multiply units by points for each course, and then add then together and divide the sum by total units. For example if course 1 has 5 units and the grade is A (4 points) and course 2 has 4 units and the grade is B (3 points), and course 3 has 4 units and the grade is F then (4*3 + 5*4 + 4 * 0)/13 = 2.462. Units completed are all the courses that have a passing grade (a,b,c, and d), Units taken is sum of all units registered for.

Input File Format:

Last, First
ID number_of_courses Course 1 name
Grade Units
Course 2 name
Grade Units
Course 3 name
Grade Units

Input File Sample :

Smith Jr., Joe 111-22-3333 3 Physics I
A5

English 1A B4
English 1B F4

Jones , Bill

111-11-11 11 4 Physics I
A5
Chemistry 1A B5

Computer Science 1 A4
Chemistry 1 Lab B1

Re quire ments:

  • Develop struct(s) and utility functions to represent a student: (the following data members must be included, more is OK):Name (First,Last),Idnumber,listofcourses,numberofunits taken,unitscompleted,units taken,and ave rage .

  • Program must be modular (all tasks must be done in functions)

  • Must include functions to process array of students

  • Complete documentation ( algorithms for functions and main)

  • Prompt user for all input and output file names

  • At start of program execution; prompt user for an input file name, start the program with loading the data into the program and then show the menu and let the user continue.

  • Global variables are not allowed.

  • Use data file FinalS15.txt to test your program.

  • Set array size to 20 for students and courses, but when adding elements check the size to make sure not to overflow

the array.

Output Format for individual student information:

Name:
Id Number: Course 1
Course 2
Course 3
Units Taken: Units Completed: GPA:

Smith Jr., Jack 111-22-3333 Name: Physics I Name: English 1A Name: English 1B 13

9 2.462

Grade: A Grade: B Grade: F

Name Id ===============================================================

Sample output file format: (Final report to a file)

Units Taken

Units Completed

Average

Jack Smith Jr.
Bill Jones
Nancy Brown ------------------------------------------------------------------------------------------------------------ Total number of Students: 3

Total Units completed by all students: 66 Total Units taken by all students: 70

Student list print format to the monitor:

Name Id ======================================

111-22-3333 13 9 111-11-1111 15 15 222-11-1111 42 42

2.462 3.600 4.000

Units: 5 Units: 4 Units: 4

Smith Jr., Jack Jones, Bill Brown, Nancy

111-22-3333 111-11-1111 222-11-1111

Smith Jr., Joe 111-22-3333 3 Physics I A 5 English 1A English 1B F 4 Jones, Bill Physics I A 5 Chemistry 1A B 5 Computer Scie

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Public VoTd inchemert Gcal C)

Add a comment
Know the answer?
Add Answer to:
In C++ Write a menu driven C++ program to read a file containing information for a list of Students, process the data, t...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Must be written in JAVA Code Write a program that will read in a file of student academic credit data and create a list of students on academic warning. The list of students on warning will be written...

    Must be written in JAVA Code Write a program that will read in a file of student academic credit data and create a list of students on academic warning. The list of students on warning will be written to a file. Each line of the input file will contain the student name (a single String with no spaces), the number of semester hours earned (an integer), the total quality points earned (a double). The following shows part of a typical...

  • C++ Data Structure Write a program to read a list of students from a file and...

    C++ Data Structure Write a program to read a list of students from a file and create a list. The program should use a linked list for implementation. Each node in the linked list should have the student’s name, a pointer to the next student, and a pointer to a linked list of scores. There may be up to four scores for each student.

  • Write a C++ program to store and update students' academic records in a binary search tree....

    Write a C++ program to store and update students' academic records in a binary search tree. Each record (node) in the binary search tree should contain the following information fields:               1) Student name - the key field (string);               2) Credits attempted (integer);               3) Credits earned (integer);               4) Grade point average - GPA (real).                             All student information is to be read from a text file. Each record in the file represents the grade information on...

  • C# Write a program that takes a list of information and grades of the students of...

    C# Write a program that takes a list of information and grades of the students of a class and perform some processing. Take the following steps to write the program. The program must give the user two options such as a menu. At the beginning of the program must ask the following from the user: Which task you want to do (choose an option between 1-2), 1- Entering new information 2- Searching a student If the user types something rather...

  • Java This application will be menu driven. The application should allow: 1. Collect student information and...

    Java This application will be menu driven. The application should allow: 1. Collect student information and store it in a binary data file. Each student is identified by an unique ID.   The user should be able to view/edit an existing student. Do not allow the user to edit student ID. 2. Collect Course information and store it in a separate data file. Each course is identified by an unique ID. The user should be able to view/edit an existing course...

  • In JAVA please! Write program for exercises You will write a Graphical User Interface(GUI) application to manage student...

    In JAVA please! Write program for exercises You will write a Graphical User Interface(GUI) application to manage student information system. The application should allow: 1. Collect student information and store it in a binary data file. Each student is identified by an unique ID. The user should be able to view/edit an existing student. Do not allow student to edit ID. 2. Collect Course information and store it in a separate data file. Each course is identified by an unique...

  • Write a C++ menu driven Payroll program. Must be user friendly.   Menu 1. Check data file  ...

    Write a C++ menu driven Payroll program. Must be user friendly.   Menu 1. Check data file   2. Read Data file 3. Process payroll for one employee 4. Process payroll for all employees 5. Print out to a text or an HTML file 6. Exit You must use the following Payroll classes, structures, pointers, arrays, enum, vector, recursive, advance file I/O, STL, iterators and containers. The program to process an input file below to calculate tax of 28% and output it...

  • Write a modularized, menu-driven program to read a file with unknown number of records.

    ==============C++ or java================Write a modularized, menu-driven program to read a file with unknown number of records.Create a class Records to store the following data: first and last name, GPA , an Id number, and an emailInput file has unknown number of records; one record per line in the following order: first and last names, GPA , an Id number, and emailAll fields in the input file are separated by a tab (‘\t’) or a blank space (up to you)No error...

  • Write a C++ program that includes the following: Define the class Student in the header file Stu...

    Write a C++ program that includes the following: Define the class Student in the header file Student.h. #ifndef STUDENT_H #define STUDENT_H #include <string> #include <iostream> using namespace std; class Student { public: // Default constructor Student() { } // Creates a student with the specified id and name. Student(int id, const string& name) { } // Returns the student name. string get_name() const { } // Returns the student id. int get_id () const { } // Sets the student...

  • Q3: Write a Python program the prompts the user for information for stu num students. For...

    Q3: Write a Python program the prompts the user for information for stu num students. For each student prompt for the student ID and three quiz grades. Use a nested loop, where the inner loop prompts for the three quiz grades. Print the student's name and average, formatted to two decimal places. The sample output below is when stu_num -3. Enter name of student 1 Mary Jones Enter Score 1: 78 Enter soore 2: 90 Enter soore 3: 91 Name:...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT