Question: Write a C++ program: A Gym teacher work with an entire grade of less than 300 students. Each day that the students attend her gym
Write a C++ program:
A Gym teacher work with an entire grade of less than 300 students. Each day that the students attend her gym class she lines them up in groups and sometimes has lone students, that is, there are students not in any group, given the situations below determine how many students could be in the gym teacher's class. * When she lines them up by 2's, there is a lone student * When she lines them up by 3's, there is a lone student * When she lines them up by 4's, there is a lone student * When she lines them up by 5's, there is a lone student * When she lines them up by 6's, there is a lone student Hint: Set up the equality Let the brute computing force of the computer solve the math for you (e.g., for-loop + if-then)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
