Question: C++ II D Microsoft word-Stack Assm > x + sers/Smart%20loe%20Jr/Documents/C + +%20download/class%2 Due: Tuesday, October 30 before the dlass (S:30 pm) Submission: Email your pp
D Microsoft word-Stack Assm > x + sers/Smart%20loe%20Jr/Documents/C + +%20download/class%2 Due: Tuesday, October 30" before the dlass (S:30 pm) Submission: Email your pp file to pipep.nuangpookkaBudc.edy before 5:30 pm Note: The code submitted must be your own work, otherwise, it won't be graded. You may continue to use the code we did in class to continue your implementation. Late submission won't be accepted because I will go over the solution in class on Tuesday. Try your best to accomplish the tasks as much as possible Assume that a local gas station has asked you to createa "Gas Tank Control System" which allows their derks to manage gas on a tank based on their occupancies. The operations include: 1. Fill Tank 2. Remove From Tank 3. Show Tanks 4. Exit The requirements are as followed. 1. One stack must be constructed. 2. Use character "X as an item added to the stack l The four operations must be repeated until the "Exit" option is chosen 4 A unit of gas (X) must be added to the tank. The limitation of the tank is three units. if the tank is full and the clerk tries to add a unit to the gas tank, the system must dinallow the addition and display an appropriate message. (See the sample run for the message) 5. To remove, the system must remove a unit from the tank, if the tank is empty and the clerk tries to remove a unit from the gas tank, the system must disallow the removal and display an appropriate message. (See the sample run for the message) system must allow the clerk to view occupancy of the gas tank at any time. The unit of the gas must be displayed from the bottom of the tank. itf anmy unit of the tank is empty, the system sisplays a blank instead of "X.Refer to the sample run shown below to see how the tank is displayed Sample Run on the next pages
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
