Student Registration

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Make a C++ Student Registration And Mark List System where users can register students as well as their mark to
the system, users can see registered students and their academic
mark, can delete and edit information and can search student information.


The main data storage of the project is C++ file system. this means each student data is going to be stored at file created by the program automatically.

these are the main menu

cout<<"     Press 1 To Register New student \n";
cout<<"     Press 2 To Show Registered Students and their Grade \n";
cout<<"     Press 3 To remove Student \n";
cout<<"     Press 4 To edit Student information \n";
cout<<"     Press 5 to search student \n";
cout<<"     Press 0 to exit \n";
cout<<"    \n\n                Enter your Choice: ";
cin>>select;

 

here are some more needed details

 cout<<"        Write First Name of the student: ";
 cin>>student.FName;
 cout<<"        Write Last Name of the student: ";
 cin>>student.LName;
  cout<<"        Write Age of the student: ";
 cin>>student.age;
  cout<<"        Write Sex of the student: ";
 cin>>student.sex;
 cout<<"        Write Registration year: ";
 cin>>student.reg_year;
 cout<<"        Write Course of student: ";
 cin>>student.course;
 cout<<"        Write number of courses that student learns in this semester and register them one by one\n";
 cout<<"        Number of courses: ";
 cin>> student.no_courses;
  
//the below is for loop to help us in registering muliple courses for one student based on the user choice (number of choices entered)
     for(int a=1; a<=student.no_courses; a++) 
{
 cout<<"         Write course Name: ";
 cin>>student.course_Name;
 cout<<"         Enter grade for quiz one: ";
 cin>>student.quiz_one;
 cout<<"         Enter grade for quiz two: ";
 cin>>student.quiz_two;
 cout<<"         Enter grade for quiz three: ";
 cin>>student.quiz_three;
 cout<<"         Enter midterm grade: ";
 cin>>student.mid;
 cout<<"         Enter assignment grade: ";
 cin>>student.assignment;
 cout<<"         Enter lab grade: ";
 cin>>student.lab;
 cout<<"         Enter final exam grade: ";
 cin>>student.final_exam;
 storage.open("marklist.txt",ios::app) ;
   storage.write((char*)&student,sizeof(student));
   //storage.write(student,sizeof(student));
 storage.close(); 

the output should look like this:  

cout<<"  Full Name: "<<student.FName<<"  "<<student.LName<<endl;
  cout<<"  Registration Year: "<<student.reg_year<<endl;
  cout<<"  Age: "<<student.age<<endl;
  cout<<"  Sex: "<<student.sex<<endl;
  cout<<"  Faculty: "<<student.course<<endl;
  cout<<"  *****************************************************************************\n";
  cout<<"  ******************************STUDENT MARK LIST******************************\n";
  cout<<"  *****************************************************************************\n";  
  cout<<"  Subject    Quiz1   Quiz2   Quiz3    Mid   Assignment    Final   Total   Grade\n";
  cout<<"  _____________________________________________________________________________\n";

(their results of the grade will be printed below that line)

please help me with this, i've been stuck here for days and i still can't figure out how will this work :((

Expert Solution
steps

Step by step

Solved in 6 steps with 11 images

Blurred answer
Knowledge Booster
Project Roles
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education