I need help with the transportation project (C++)
Don't want to take much of your time so I'll try to get to the point. I made a program, that basically does what is asked but with one little condition, the user has to introduce the amount of busses in order to multiply the amount of chairs (being a constant of 50 per bus). Then substracting the amount of passangers from the amount of chair to get the remaining chairs. This technically a right answer, but that is not what SoloLearns wants. int main() { int chairs = 50, bus, passangers, remaining_chairs; cout << "Amount of busses: " << endl; cin >> bus; chairs = chairs * bus; cout << "Amount of passangers: " << endl; cin >> passangers; remaining_chairs = chairs - passangers; cout << "The amount of remaining chairs is: " << endl << remaining_chairs; return 0; } It seems to ask me for a way to get the necesary amount of buses basses on only the amount of passangers as input. But I can only think in two ways to do that. 1. Condition statements. I have basically no prior coding experience so this is only an assumption. Condition statements would allow me to do what is asked, but there are two issues: first, I still dont know about them, and second and most importantly, I still havent seen that class, so it makes no sense that the answer to the project is something I havent studied yet, and I'd like to solve it the way SoloLearn wants me to do it. 2. Modulo operator. Everything, Including the hint of the project itself, aim to the modulo operator being the part of the solution. The issue being, I just don't know how to apply it, I dont mean in a coding sense, but in a logical sense, I'm still not able to see how it could get me to the answer. I would really love some help with the project, and I know such a small program is not good reference, but if there is any observation about the program I wrote in itself, I'd love to read it. I'm just getting into programming, so any advice about common beginner mistakes is welcome, THANK YOU BEFOREHAND. ^_^