Question: Required Output: Interactive Inventory Query Capability a . Query the user of an item by asking for a major and GPA with a single query.

Required Output:
Interactive Inventory Query Capability
a. Query the user of an item by asking for a major and GPA with a single query.
i. Print a message("No such student") if the major is not in the roster, more that one major or GPA is submitted. Ignore any other words, so "smart Computer Science student 3.5" is treated the same as "Computer Science 3.5".
ii. Print "Your student(s):" with the student ID, first name, last item, GPA. Do not provide students that have graduated or had disciplinary action. List all the students within 0.1 of the requested GPA.
iii. Also print "You may, also, consider:" and provide information about the same student type within 0.25 of the requested GPA. Do not provide students that have graduated or had disciplinary action.
iv. If there were no students who satisfied neither ii nor iii above - provide the information about the student within the requested major with closest GPA to that requested. Do not provide students that have graduated or had disciplinary action.
v. After output for one query, query the user again. Allow 'q' to quit.
Required Output: Interactive Inventory Query

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!