Final Assignment IPL
Final Assignment IPL
❖ Instructions:
➢ Paste your code with output screenshot in the bellow Answer section, make a pdf
copy of the file and rename the file with your name, ID and section.
Example:
1. [20-34678-3] [IP-A].pdf
➢ Do not copy your code from your friends. If you do there will be consequences.
➢ Make sure to turn in your assignments by the deadline.
Questions Marks
Develop a C++ program for a simple ATM machine using Object-Oriented 20
Programming (OOP) concepts.
(Create a class ATMachine with private members for balance, withdrawal amount,
and transfer amount. Implement member functions for withdrawing money,
transferring money, and checking recent transactions. Users should interact with the
ATM through a menu-driven system, where they can choose to withdraw money,
transfer money, or check recent transactions.)
Create a C++ program that calculates the area of geometric shapes including 10
rectangles, circles, and triangles. Implement functions for each shape:
calculateRectangleArea_(Area=Length×Width),_calculateCircleArea
(Area=π×Radius2), and calculateTriangleArea (Area=1/2×Base×Height). In the main
function, prompt the user to choose a shape, input dimensions, and call the relevant
function to display the calculated area. Use 3.14159 for π.
Answer section: