Question: Write this program in C++. Then modify it by utilizing at least 1 function and a minium of 1 array or vector. This is what

Write this program in C++. Then modify it by utilizing at least 1 function and a minium of 1 array or vector. Write this program in C++. Then modify it by utilizing at least
This is what I need to be modified. 1 function and a minium of 1 array or vector. This is

A penthouse that has a 25-story building, with a standard elevator that holds a capacity weight of 2,500lbs, is throwing a party. Friends, family, D.J, servers, caters and band will be there. They are taking the elevator to the 25th floor. Write a program in C++ that will determine if the elevator ca support the weight of guests. Apply skills such as: develop, compile, and edit. The program needs to calculates the current weight in the occupied elevator. Compares the current weight with the maxium weight allowed, and then prints an output stating either "Let's go" or "This elevayor is too heavy by X Ibs. C++ CODE: #include using namespace std; int main() int currentWeight; // Current weight in the occupied elevator in lbs const int MAX_WEIGHT = 2500; // Maximum weight allowed in lbs // Get total weight of guests currently in the elevator cout > currentWeight; // Check if elevator is overloaded or not if (current Weight > MAX_WEIGHT) cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!