Write a constructor for money data structure, Programming Languages

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)

Posted Date: 3/22/2013 5:26:12 AM | Location : United States







Related Discussions:- Write a constructor for money data structure, Assignment Help, Ask Question on Write a constructor for money data structure, Get Answer, Expert's Help, Write a constructor for money data structure Discussions

Write discussion on Write a constructor for money data structure
Your posts are moderated
Related Questions
(a)  Create procedures for accessing the root, left subtree and right subtree, and also mutators for changing the root, left subtree and right subtree of an avl argument. (b) Wr

I need help with having a user input a year, and my program to spit out what day of the week Christmas is on.... any helping hands on this?


Describe URL and hostname part? The hostname part of the URL should be a valid Internet hostname. It can also be an IP address like as 204.29.207.217 or 128.235.252.184. The

#question.what. is cai? Explain its pitfalls .o

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

create a small database for a company, require at least 4 tables. also, have 4 business report, oracle built-in function, 5 string, 5 number or math functions, 5 date and time func

The program presents mainframe contains two button new user, existing user PART ONE: CLICKING ON NEW USER New window appear contains: text field represent username,

HOW CAN I DESIGN A MOBILE WEB BROWSER LIKE OPERA MINI. USING VISUAL BASIC? HELP ME.

Determine the solution to the following differential equation. x 2 y′′ + 3xy′ + 4 y = 0   Solution Find the roots to (3) first as generally. r(r -1) + 3r + 4 = 0 r