Define a function FindLot() that takes two integer parameters asthe hourly parking price and the parking duration, and returns theparking lot allocation as an integer. The lot is returned asfollows:
Ex: If the input is 4 4, the output is:
Here is the template of the problem, please use it:
#include <iostream>using namespace std;
// CODE GOES HERE
int main() { int price; int parkingDuration;
cin >> price; cin >> parkingDuration; cout << FindParkingLot(price, parkingDuration)<< endl;
return 0;}
Define a function FindLot() that takes two integer parameters as the hourly parking price and the parking duration, and
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am