Posted by **Anonymous** on Thursday, October 18, 2012 at 12:03pm.

//compares the amount the user has in deposits to the price of app selected.

//It returns 1 if the amount is enough to cover the cost, 0 if there is not enough.

int Compare(double deposit, double choiceCost);

how do you get this function to compare return 1 or 0?

i have double balance = 0.0; declared already and previously used *depositPtr as well as *choiceCostPtr.

????????????????

if(balance>=choiceCost)

{

return 1;

}

else

{

return 0;

}

Or at least can someone tell me steps on how I could make this work.

## Answer This Question

## Related Questions

- computer - construct function prototypes for descriptions given below: 1) Rarb...
- C programming - A few questions, all involving "for" loops that I am unsure how ...
- Java Programming - I am trying to finish this final problem on my Java homework...
- Computer Programming - Create the flowchart and algorithm for a module that will...
- Math 10 Linear Equations - Kevin opened a bank account and plans to deposit $200...
- fundamentals of programming - The ACME Company has approached you with a ...
- programming - Develop psuedocode to control operation of vending machine The ...
- programming - creat a logic for a program that continuously prompts the user for...
- Math - Dalya received the proceeds from an inheritance on April 5. She wants to ...
- Math - Can you help me with this problem? At the beginning of January, Lisa had ...

More Related Questions