EX NO 8B: OOPS LAB - FUNCTION TEMPLATE
EX NO 8B: Function Template 1. Multi-Type Banking Transaction Analyzer ( RNO – 1 TO 5) Problem Statement: Design a program using function templates to perform multiple banking operations (deposit, withdrawal, interest calculation) for different numeric data types. Maintain transaction history and validate all operations. Steps: Define function templates for deposit, withdraw, and interest calculation Accept initial balance Use loop to display menu (Deposit / Withdraw / Interest / Exit) For deposit: validate amount > 0 and update balance For withdrawal: check sufficient balance before deduction For interest: calculate based on formula Store each transaction in an array Display transaction history Repeat until user exits 2. Generic Data Analyzer System ( RNO – 6 TO 10) Problem Statement: Develop a program using function templates to analyze a dataset (array) by calculating sum, average, variance, and standard deviation for ...