{"id":54356,"date":"2022-01-17T06:31:01","date_gmt":"2022-01-17T06:31:01","guid":{"rendered":"https:\/\/academicwritersbay.com\/answers\/the-student-data-table\/"},"modified":"2022-01-17T06:31:01","modified_gmt":"2022-01-17T06:31:01","slug":"the-student-data-table","status":"publish","type":"post","link":"https:\/\/academicwritersbay.com\/answers\/the-student-data-table\/","title":{"rendered":"The \u201cStudent Data Table\u201d"},"content":{"rendered":"<p>A. Modify the \u201cstudentData Table\u201d to include your personal information as the last item.<br \/>\nB. Create a C++ project in your integrated development environment (IDE) with the following files:<br \/>\n\u2022 degree.h<br \/>\n\u2022 student.h and student.cpp<br \/>\n\u2022 roster.h and roster.cpp<br \/>\n\u2022 main.cpp<br \/>\nNote: There must be a total of six source code files.<br \/>\nC. Define an enumerated data type DegreeProgram for the degree programs containing the data type values SECURITY, NETWORK, and SOFTWARE.<br \/>\nNote: This information should be included in the degree.h file.<br \/>\nD. For the Student class, do the following:<br \/>\nCreate the class Student in the files student.h and student.cpp, which includes each of the following variables:<br \/>\n\u2022 student ID<br \/>\n\u2022 first name<br \/>\n\u2022 last name<br \/>\n\u2022 email address<br \/>\n\u2022 age<br \/>\n\u2022 array of number of days to complete each course<br \/>\n\u2022 degree program<br \/>\nCreate each of the following functions in the Student class:<br \/>\na. an accessor (i.e., getter) for each instance variable from part D1<br \/>\nb. a mutator (i.e., setter) for each instance variable from part D1<br \/>\nc. All external access and changes to any instance variables of the Student class must be done using accessor and mutator functions.<br \/>\nd. constructor using all of the input parameters provided in the table<br \/>\ne. print() to print specific student data<br \/>\nE. Create a Roster class (roster.cpp) by doing the following:<br \/>\nCreate an array of pointers, classRosterArray, to hold the data provided in the \u201cstudentData Table.\u201d<br \/>\nCreate a student object for each student in the data table and populate classRosterArray.<br \/>\na. Parse each set of data identified in the \u201cstudentData Table.\u201d<br \/>\nb. Add each student object to classRosterArray.<br \/>\nDefine the following functions:<br \/>\na. public void add(string studentID, string firstName, string lastName, string emailAddress, int age, int daysInCourse1, int daysInCourse2, int daysInCourse3, DegreeProgram degreeprogram) that sets the instance variables from part D1 and updates the roster.<br \/>\nb. public void remove(string studentID) that removes students from the roster by student ID. If the student ID does not exist, the function prints an error message indicating that the student was not found.<br \/>\nc. public void printAll() that prints a complete tab-separated list of student data in the provided format: A1 [tab] First Name: John [tab] Last Name: Smith [tab] Age: 20 [tab]daysInCourse: {35, 40, 55} Degree Program: Security. The printAll() function should loop through all the students in classRosterArray and call the print() function for each student.<br \/>\nd. public void printAverageDaysInCourse(string studentID) that correctly prints a student\u2019s average number of days in the three courses. The student is identified by the studentID parameter.<br \/>\ne. public void printInvalidEmails() that verifies student email addresses and displays all invalid email addresses to the user.<br \/>\nNote: A valid email should include an at sign (\u2018@\u2019) and period (\u2018.\u2019) and should not include a space (\u2018 \u2018).<br \/>\nf. public void printByDegreeProgram(DegreeProgram degreeProgram) that prints out student information for a degree program specified by an enumerated type.<br \/>\nF. Demonstrate the program\u2019s required functionality by adding a main() function in main.cpp, which will contain the required function calls to achieve the following results:<br \/>\nPrint out to the screen, via your application, the course title, the programming language used, your WGU student ID, and your name.<br \/>\nCreate an instance of the Roster class called classRoster.<br \/>\nAdd each student to classRoster.<br \/>\nConvert the following pseudo code to complete the rest of the main() function:<br \/>\nclassRoster.printAll();<br \/>\nclassRoster.printInvalidEmails();<br \/>\n\/\/loop through classRosterArray and for each element:<br \/>\nclassRoster.printAverageDaysInCourse(\/current_object\u2019s student id\/);<br \/>\nNote: For the current_object\u2019s student id, use an accessor (i.e., getter) for the classRosterArray to access the student id.<br \/>\nclassRoster.printByDegreeProgram(SOFTWARE);<br \/>\nclassRoster.remove(\u201cA3\u201d);<br \/>\nclassRoster.printAll();<br \/>\nclassRoster.remove(\u201cA3\u201d);<br \/>\n\/\/expected: the above line should print a message saying such a student with this ID was not found.<br \/>\nImplement the destructor to release the memory that was allocated dynamically in Roster.<br \/>\nG. Demonstrate professional communication in the content and presentation of your submission.<br \/>\nOther Article:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A. Modify the \u201cstudentData Table\u201d to include your personal information as the last item. B. Create a C++ project in your integrated development environment (IDE)&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-54356","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/posts\/54356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/comments?post=54356"}],"version-history":[{"count":0,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/posts\/54356\/revisions"}],"wp:attachment":[{"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/media?parent=54356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/categories?post=54356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/tags?post=54356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}