Menu

Purpose Assignment Give Experience Working Structs Overview Assignment Ll Write Program Le Q43901945

please complete in C++ coding and this assignment is on structs.
The purpose of this assignment is to give you some experience working with structs. Overview In this assignment, youll writeTechnical Details • Student data should be stored in an array of structs. The data to be stored for each student is: 1 Name 1The purpose of this assignment is to give you some experience working with structs. Overview In this assignment, you’ll write a program that lets you enter, store, and display student names, houses (Gryffindor, Hufflepuff, Ravenclaw, or Slytherin) and GPAS. The data will be stored in an array of structs. Operational Details The program should display a menu with the following options: 1. Add a student – gets info from the user and adds it to the array 2. List Students – lists the name, house, and GPA for each student. 3. List student(s) with the highest GPA – lists the name, house, and GPA for the student(s) with the highest GPA. Note that more than one student may be tied for highest GPA, so you may need to list multiple students. When an option is taken that action should be carried out and the menu redisplayed. Technical Details • Student data should be stored in an array of structs. The data to be stored for each student is: 1 Name 1 House (Gryffindor, Hufflepuff, Ravenclaw or Slytherin) 1 GPA • Data should be stored for 10 students (changing this number should be a one-line change and recompile). • The program should be organized into multiple functions. At a minimum, each of the three menu options should be implemented in its own function. In general, each function should do one thing and there should be no duplication. As always, the program should be well written and easy to follow. Extra Credit Rather than manually entering the house for each student, make your program ask a couple of questions in order to sort a student into the correct house. Since there are only 4 possible houses (Gryffindor, Hufflepuff, Ravenclaw or Slytherin), two yes-or-no questions should be sufficient in order to produce the 4 unique outcomes. This addition is worth up to 10 points of extra credit. Show transcribed image text The purpose of this assignment is to give you some experience working with structs. Overview In this assignment, you’ll write a program that lets you enter, store, and display student names, houses (Gryffindor, Hufflepuff, Ravenclaw, or Slytherin) and GPAS. The data will be stored in an array of structs. Operational Details The program should display a menu with the following options: 1. Add a student – gets info from the user and adds it to the array 2. List Students – lists the name, house, and GPA for each student. 3. List student(s) with the highest GPA – lists the name, house, and GPA for the student(s) with the highest GPA. Note that more than one student may be tied for highest GPA, so you may need to list multiple students. When an option is taken that action should be carried out and the menu redisplayed.
Technical Details • Student data should be stored in an array of structs. The data to be stored for each student is: 1 Name 1 House (Gryffindor, Hufflepuff, Ravenclaw or Slytherin) 1 GPA • Data should be stored for 10 students (changing this number should be a one-line change and recompile). • The program should be organized into multiple functions. At a minimum, each of the three menu options should be implemented in its own function. In general, each function should do one thing and there should be no duplication. As always, the program should be well written and easy to follow. Extra Credit Rather than manually entering the house for each student, make your program ask a couple of questions in order to sort a student into the correct house. Since there are only 4 possible houses (Gryffindor, Hufflepuff, Ravenclaw or Slytherin), two yes-or-no questions should be sufficient in order to produce the 4 unique outcomes. This addition is worth up to 10 points of extra credit.

Expert Answer


Answer to The purpose of this assignment is to give you some experience working with structs. Overview In this assignment, you’ll …

OR