Question
Write a c++ program that prompts the user to enter the number of students in the class, then loops to read that many IDs from
Write a c++ program that prompts the user to enter the number of students in the class, then loops to read that many IDs from the user. A teacher has asked all her students to line up single file by their student ID. For example, in one class 1234 will be at the front of the line and 9999 will be at the end. Another class might have 3456 at the front of the class and 6789 at the end. Once all the IDs have been read, it reports which student would be at the front of the line and which one would be at the end of the line. You may assume that no two students have the same ID.
Input Validation: Do not accept a number less than 1 or greater than 25 for the number of students.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started