Please tell me how the first project in the C ++ course is being solved, I'm new to programming, so I don't understand what need | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Please tell me how the first project in the C ++ course is being solved, I'm new to programming, so I don't understand what need

C++ project first help me please.

8th Apr 2021, 12:00 PM
Own Lord
Own Lord - avatar
2 Answers
+ 3
The first project in C++ course is of Transportation. All you have to do is find the number of empty seats the last bus will have. You can do something like this in your 'main' function: int main(){ int numOfPassengers, emptySeatsLeft; cin >> numOfPassengers; emptySeatsLeft = 50 - (numOfPassengers % 50); cout << emptySeatsLeft ; return 0; }
8th Apr 2021, 2:16 PM
Rivan
0
Thank you very much, I knew that I needed to use user input and carry out some operations with it, but I didn’t know how to correctly implement the code, so I asked for help. Thanks again
8th Apr 2021, 6:06 PM
Own Lord
Own Lord - avatar