Friday, July 31, 2009

Please Help: Data Structure Q1 part.2. Need Full Programming(Q too long so I seprate into part1 and 2) Thanks!

remove Remove a given monetary value to the purse.


Should return fail status if it has not enough money.


empty Empties the purse.


Destructor:


Implement the above ADT specification. And also, you need to create a client program which contains the main function to test all ADT functions of your Purse ADT. You need to divide them into the following files.


1) Interface


Purse.h


2) Implementation


Purse.c


3) Client Program (Test Program)


TestPurse.c








(That's the whole Question with Part 1 and Part 2, I would be really appriciate if anyone could help, Thanks)

Please Help: Data Structure Q1 part.2. Need Full Programming(Q too long so I seprate into part1 and 2) Thanks!
This is more of a clarification of the first answer you got. The .h file is the interface because it contains the function declarations you are making available to the whole world - that's what an interface is. As for the other part of his answer - I agree, hit the books, it seems like a simple enough assignment.
Reply:if it's a homework question, i think you should hit the books and learn something. If it's a text based interface, it's not going to be that hard.





Also, *.h is usually used for the header, I don't see how and why the interface would go in there.


No comments:

Post a Comment