Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In your program, add comments that describe in English what your program does. Begin by writing your header and main program. Declare your variables, define

In your program, add comments that describe in English what your program does.
Begin by writing your header and main program. Declare your variables, define their type, and use them.

  1. Make a list of the control structures that you need to iterate and process data in your program. Do you need to return the result?
  2. W r i t e a few lines of code and test it. Add to the program new features and test them.
    • Tip: if your code works and then you add a feature, examine it, and identify the fix that led to compile or runtime errors.
  3. Correct it or comment it out and test your code again. When it compiles and runs, examine the commented code and identify the error and how you can fix it.
  4. Take a screenshot and insert it inside a Word file. Upload your code in a text file that ends with .cpp to the Assignment Submission folder. Add your notes to the Word document and save it as a .docx, .doc, .rtf, or .pdf file.

    Your capstone program will be written using Visual Studio or another IDE (not MindTap)


    Reference:
    Student Management System Project

 

The above code is a C++ program that creates a Student Management System. The program takes in student data such as names, student numbers, DOB, Email and GPA, and stores it in an array. The program can add and remove students from the array, and also modify existing student data. The program can also print out a list of students and their information, as well as search for specific students.


The code starts with the inclusion of the necessary header files. The header files include iostream and string. The vector header file is necessary for the array in which the student data will be stored. The code then defines a structure called Student. The Student structure includes five variables, name, studentNumber, Email,DOB and GPA.


The code then declares four functions, addStudent, deleteStudent, updateStudent, and showallStudent. The code then enters the main function, which is where the program starts running. The main function declares a vector of Student, which will store the student data, and a char input.


The main function then enters a do-while loop, which will keep running until the user inputs 'Q' to quit. Inside the loop, the program prints out the user menu and takes an input from the user. The input is then used to enter a switch statement, which will call the appropriate function for the user input.


The addStudent function takes in the vector of Student by reference and allows the user to enter data for a new student. The data is then stored in a variable of type Student and pushed back into the vector. The deleteStudent function takes in the vector of Student by reference and allows the user to delete a student by entering the student number. The deleteStudent function then uses a loop to search for the student number in the vector, and if found, it erases the Student element from the vector.


The Update function takes in the vector of Student by reference and allows the user to modify a student's information. The UpdateStudent function also uses a loop to search for the student number in the vector, and if found, it modifies the student's data. The ShowAllStudent function takes in the vector of Student by constant reference and allows the user to search for a student by student number. The ShowAllStudent function also uses a loop to search for the student number in the vector, and if found, it prints out the student's information.


Finally, the code ends with the closing of the main function and the end of the program. This program shows the use of variables, arrays, loops, and conditionals to c r e a t e a Student Management System in C++.

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

cpp Author Your Name Course Course Name Date Date include iostream Function to calculate employee pa... 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

Recommended Textbook for

Accounting Information Systems

Authors: George H. Bodnar, William S. Hopwood

11th Edition

0132871939, 978-0132871938

More Books

Students also viewed these Databases questions

Question

Factor the given expressions completely. 28x 2 700y 2

Answered: 1 week ago