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 messageNo 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 is treated the same as "Computer Science
ii Print "Your students: 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 of the requested GPA.
iii. Also print "You may, also, consider:" and provide information about the same student type within 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
