+ 1

I want help for c++ transportation project that how i can do task# 2?

Transportation project of c++

23rd Nov 2020, 5:04 PM
Rehan Ahmed
Rehan Ahmed - avatar
5 Answers
+ 2
A simple three lines of code implementation. First, you use the modulus function to find the remainder, which are the passengers on the last bus. Then, to find the empty seats, you use bus capacity minus away the last passengers. https://code.sololearn.com/cAsIKRZH3quK/?ref=app
16th Dec 2020, 12:46 PM
Lam Wei Li
Lam Wei Li - avatar
0
I clear test case #1 but i dont know how to code for test case# 2
23rd Nov 2020, 5:18 PM
Rehan Ahmed
Rehan Ahmed - avatar
0
#include <iostream> using namespace std; int main() { //your code goes here int passengers = 12; int seats = 50; int remaining; remaining =seats - passengers ; cout<<remaining; cin>>passengers; return 0; }
23rd Nov 2020, 5:23 PM
Rehan Ahmed
Rehan Ahmed - avatar
0
This is my code but how i code for test case 2.
23rd Nov 2020, 5:24 PM
Rehan Ahmed
Rehan Ahmed - avatar
0
i am very thankful to you for your help.
23rd Nov 2020, 5:47 PM
Rehan Ahmed
Rehan Ahmed - avatar