Which of the following methods correctly withdraws an amount from a bank account?
A. Method withdraw(Numeric amt)
acctBal = acctBal - amt
Display "The new balance is: $" + acctBal
End Method
B. Method withdraw(String amt)
acctBal = acctBal - amt
Display "The new balance is: $" + acctBal
End Method
C. Method withdraw(Numeric amount)
acctBal = acctBal - amt
Display "The new balance is: $" + acctBal
End Method
D. Method withdraw(String amount)
acctBal = acctBal - amt
Display "The new balance is: $" + acctBal
End Method
Answer: A
Computer Science & Information Technology
You might also like to view...
To edit a slide master in PowerPoint, click Slide Master on the ________ tab
A) REVIEW B) VIEW C) SLIDE SHOW D) DESIGN
Computer Science & Information Technology
?The four most commonly used formats are called special formats.?
Answer the following statement true (T) or false (F)
Computer Science & Information Technology