Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I would like an authentic code coming from someone who has the knowledge to solve this? the requirements are not using chatgpt. and a rather
I would like an authentic code coming from someone who has the knowledge to solve this? the requirements are not using chatgpt. and a rather long code.
Your task is to write an application that keeps track of: - Students: id, name, e-mail - Tests: id, course name, test name, date/time - Test results: test id, student id, grade Details: - IDs should be assigned automatically, starting from 1 - IDs are not reused even if an item is deleted (think database auto increment) - Any student can take any number of tests - Students are not always present at tests Use the ideas we have discussed in class to design classes that keeps track of all this information and a way to store them while the application is running. Follow my user interface to pass the tests: Please choose: 1. Add student 2. Edit student 3. Remove student 4. Add test 5. Edit test 6. Remove test 7. Add test result 8. Edit test result 9. Remove test result 10. Show all info 11. Exit The choice numbers must match. The text in the menu does not. Once an operation is completed the application should go back to the menu, ready for another choice. Each choice has to display information needed to perform that choice. As an example, "Edit student" must show a list of students and let you pick one by number, starting Assignment 2 - Data structures - C++ 2/7/2023 doesn t the grade is adaea. In all edit / remove menus the last choice means back to the menu (do nothing). Example: There are 2 students. Remove student let's you choose 1 or 2 (for the students), or 3 for back. Removing a student should also remove all results for that student. The same for other data relationships. The model should never be inconsistent. Adding a test result to a student should not display tests the student has already taken, and so on. Remember: If code systematically you can test early. Start running the tests once you have some basic functionality in place. Expected output (all ofi these must be displayed on choice 10): Student details: student id=1, name = Christian Auby, email = christian.auby@uia.no Test details: test id =1, course name =IKT103, test name = Exam, date =2022.06.12 Test results: student id=1, course name =IKT103, test id=1, test name = Exam, grade =4 Areas of interest: Cpp files and header files. Classes, std::list, std::vector, std::map Important: The select student and select test menus (used on edit and remove menus) must show a short version of the details above. Otherwise the edit and delete tests will fail because my tests will see the old version of the student/testStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started