This is part of my homework and im so confused. inputAmount and IsValidAmount are 2 other value returning functions. I have to initialize amount and is valid to them? (this is all inside the GetAmount function). This means calling them? PLEASE HELP --------------------------------------… GetAmount(): Declare local variables amount: floating point isValid: bool Initialize amount to InputAmount() Initialize isValid to IsValidAmount() Loop while isValid is false Print error message Update amount to InputAmount() Update isValid to IsValidAmount() Return amount --------------------------------------… I don't understand how I can initialize a variable to a function? |