Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please complete in C++, using structs, information in the photo provided The purpose of this assignment is to give you some experience working with structs.

please complete in C++, using structs, information in the photo provided image text in transcribed
image text in transcribed
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: Name House (Gryffindor, Hufflepuff, Ravenclaw or Slytherin) 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is the relationship between humans and nature?

Answered: 1 week ago