Home Segments Index Top Previous Next

410: Practice

Devise a structure, deposit, for a bank deposit for which interest is compounded annually. Include structure variables for the account number (an integer), the annual interest rate, and the amount of the deposit. Define readers and writers for all structure variables. Also include a reader and writer for a virtual monthly interest rate that is 1 / 12 of the annual interest rate.