1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nadya [2.5K]
3 years ago
6

Given this method comment, fill in the blank in the method implementation. /* Deposits money into the bank account amount: the a

mount to deposit */ public _____ deposit(double amount) { balance = balance + amount; }
Computers and Technology
1 answer:
DIA [1.3K]3 years ago
3 0

Answer:

"void" is the correct answer for the given question.

Explanation:

In the function body the value of balance variable is not return that means we use void return type .The void return type is used when the function does not return any value .

If the function are  int return type that means it return "integer value ".

if the function are  double return type that means it return the "double value" .

The complete implementation of this method is

public void deposit(double amount) // function definition  

{

balance = balance + amount; // statement

}

You might be interested in
Host to IP address lookup and its reverse lookup option are very important network services for any size network. It is also how
Serhud [2]

Answer:

Domain Name System Security Extensions (DNSSEC)

Explanation:

3 0
3 years ago
You should use _____ software for writing a letter.
Amanda [17]
You should use word processor software for writing a letter

reason :
word processor is a software to make a letter. it has many functions. not only for make a letter. word processor is made for make a document in a computer

program examples :
- Microsoft Word
- Wordpad
6 0
3 years ago
Assume the availability of class named DateManager that provides a static method, printTodaysDate, that accepts no arguments and
Ira Lisetskai [31]

Answer:

Hi!

The answer is:

<em> </em> DateManager dm = new DateManager(); <em>// Instanciate.</em>

 dm.printTodaysDate; <em>// Calls the method.</em>

Explanation:

If you are working on object-oriented programming, then:

  • First, you have to instanciate the class DataManger.
  • Then, you can call printTodaysDate on the instance dm of DataManager.
8 0
3 years ago
In the following nested loop structure, which loop does the program EXIT first?
seropon [69]

Answer:

The loops are nested, and the program ends when loop 1 is completed. Since loop 4 is the innermost one, that one is completed first.

7 0
3 years ago
Does access provide email communication
Semmy [17]
I don't get what you mean I'm sorry i can't answer you question
8 0
3 years ago
Other questions:
  • What protocol must be supported by routers in order to utilize remote assistance easy connect?
    10·1 answer
  • After a robbery, what is the purpose of conducting a neighborhood canvass?
    9·1 answer
  • A ________ is hardware or software that acts as a filter to prevent unwanted packets from entering a network.
    9·2 answers
  • If you print a document with red green or blue underlines will they show up on printed pages
    14·1 answer
  • What is the purpose of the overload keyword in the ip nat inside source list 1 pool nat_pool overload command?
    8·1 answer
  • Your friend sees an error message during Windows startup about a corrupted bootmgr file. He has another computer with a matching
    12·1 answer
  • Your employer is opening a new location, and the IT director has assigned you the task of calculating the subnet numbers for the
    14·1 answer
  • Match the items with their respective descriptions.
    6·2 answers
  • Are to print or find<br> the sum<br> 5 numbers<br> of<br> using flow chart
    6·1 answer
  • What java syntax allows me to take user input.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!