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...

Which of the following statements is false?

a. Every Java thread has a thread priority that helps determine the order in which threads are scheduled. b. Each new thread inherits the priority of the thread that created it. c. Informally, higher-priority threads are more important to a program and should be allocated processor time before lower-priority threads. d. Thread priorities guarantee the order in which threads execute.

Computer Science & Information Technology

Live Preview is a name for the gallery of choices for paste options.

a. true b. false

Computer Science & Information Technology

Which of the following provides for uniformity and consistency of data?

A. Lookup field B. Cell validation C. Field validation D. One-to-One relationships

Computer Science & Information Technology

Can you insert a 300 ppi image on your webpage?

What will be an ideal response?

Computer Science & Information Technology