+ 1

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

Transportation project of c++

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

0

I clear test case #1 but i dont know how to code for test case# 2

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;
}

0

This is my code but how i code for test case 2.

0

i am very thankful to you for your help.