Question: Avoid the use of OOP: Write in C++. Use structures, switches, conditionals and file handling etc: Student Data base: We have a Pre-Nursery (Lady Bird)
Avoid the use of OOP:
Write in C++.
Use structures, switches, conditionals and file handling etc:
Student Data base:
- We have a Pre-Nursery (Lady Bird) school in which there are two classes.
- One is Kinder Garden 1 and Kinder Garden 2.
- KG1 has two sections Green and Yellow.
- KG2 has two section Purple and Blue.
- Each section has the capacity of 20 students(max).
- Some may have less than 20 but not more.
- The program must first ask the user if they want to enroll into the ladybird school.
- Then it must ask which class and section it wants to join.
- The program must use this to hold information of students and entertain new ones if there is availability.
- If there is no room in a section, the program will redirect you to another section.
- If that section is full, we will ask you to politely to apply next year.
- The program must store each students name, address, age, Date of birth, Gender, Blood group, Guardian name, Guardians phone numbers, Class and section.
- It must be taking all the date from the user and displaying it on the console in a structured way.
- All the data stored must be stored in a txt file in an ordered format.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
