Define a function FindLot() that takes two integer parameters as the hourly parking price and the parking duration, and

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Define a function FindLot() that takes two integer parameters as the hourly parking price and the parking duration, and

Post by answerhappygod »

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;}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply