March 5, 2015

Homework Help: Programming C

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.

return 1;
return 0;

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

Answer this Question

First Name:
School Subject:

Related Questions

programming - creat a logic for a program that continuously prompts the user for...
Computer Programming - Create the flowchart and algorithm for a module that will...
computers - Write a program that will emulate a cash register. Ask the user to ...
programming - Create the logic for a program that continuously prompts the user ...
programming - 3. Write a structured algorithm that prompts the user to input the...
fundamentals of programming - The ACME Company has approached you with a ...
Programming Logic and Design: Comprehensive, 6th E - Create the logic for a ...
java programming - Create a Sales application that prompts the user for a series...
programming - Develop psuedocode to control operation of vending machine The ...
PROGRAMMING - Create a C program that contains a function that computes the ...