create a money data structure that is made up of


Create a Money data structure that is made up of amount and currency. 

(a) Write a constructor for this data structure  

(b)  Create accessors for this data structure

(c) Write operations convert-money (takes a Money object and a currency symbol and returns the Money object of the requested currency), add-money and subtract-money (add and subtract Money objects possibly from different currencies and return a Money object with currency of the first Money object argument)

Request for Solution File

Ask an Expert for Answer!!
Application Programming: create a money data structure that is made up of
Reference No:- TGS0218475

Expected delivery within 24 Hours