Sep-19-2017, 10:09 AM
... just I'm really bad in math. Can anybody help me out?
Write a program to solve the following problem. At the beginning of the school year, the program manager has to split the students between the practical sessions. The manager wishes to divide the students between the classes as equally as possible. Write a program that asks the manager for the number of class rooms and for the number of students. The program should then output the number of students in each class room.
Test your program with the following inputs: number of students: 100, number of rooms: 20 number of students: 105, number of rooms: 10 number of students: 1050, number of rooms: 45
Some examples of the program output are shown below: Enter number of students: 103 Enter number of rooms: 15 In 13 classes there are 7 students In 2 classes there are 6 students
Write a program to solve the following problem. At the beginning of the school year, the program manager has to split the students between the practical sessions. The manager wishes to divide the students between the classes as equally as possible. Write a program that asks the manager for the number of class rooms and for the number of students. The program should then output the number of students in each class room.
Test your program with the following inputs: number of students: 100, number of rooms: 20 number of students: 105, number of rooms: 10 number of students: 1050, number of rooms: 45
Some examples of the program output are shown below: Enter number of students: 103 Enter number of rooms: 15 In 13 classes there are 7 students In 2 classes there are 6 students