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
What is the purpose of the domain name? The domain name is an example of a service provider. The domain name .gov.nz is an examp
malfutka [58]

.gov.nz is for New Zealand

6 0
4 years ago
Read 2 more answers
The file extension for Access 2007 and 2010 database filenames is .accdb. What is the file extension for older versions of Acces
Vikentia [17]
<span>The earlier file format was the .mdb file format. If a person has a file that is stored in the .mdb format and gets a new version of Access or needs an upgrade, he or she may choose not to upgrade due to the fact that he or she will not be able to make design changes to the .mdb file.</span>
4 0
4 years ago
How to find out what version of windows i have?
Sholpan [36]
Look in for setting under system settings, that should show what software and firmware version you are on.
3 0
4 years ago
Does anyone know what this logo is??
scoray [572]

Answer:

I have got no idea it looks like an older style

8 0
2 years ago
Read 2 more answers
Anyone here codes? <br> C++, C#, Lua? Anything?
Travka [436]

Answer:

IxxyzjgzkgzjgKfzkg v

jvljcljxkhxkgg/gjhkggzkykzkgjzjgggggzjgcufxu

Explanation:

nk yxthzefhGghghrhgzxhhsdgchiixxu

7 0
3 years ago
Read 2 more answers
Other questions:
  • In a Python dictionary, an association is formed between what two components of the dictionary?
    15·1 answer
  • Find Multiplication of Binary Numbers: 1100112 x 10012
    9·1 answer
  • QUESTION 8 Software applications that generate information are located in the first tier of n-tier architectures. True False
    7·1 answer
  • Given an integer variable i and a floating-point variable f, write a statement that writes both of their values to standard outp
    12·1 answer
  • What is distribution hardware?
    14·1 answer
  • THE FOLLOWING IS WRITTEN IN C:
    5·1 answer
  • Assume myString and yourString are variables of type String already declared and initialized. Write ONE line of code that sets y
    15·1 answer
  • 1) If a robot has a 3 bit instruction set and needs 20 instructions to reach its destination, how many bits of memory are requir
    5·1 answer
  • Consider the following method:
    9·1 answer
  • Chantal has configured the network at her company's new headquarters with a number of VLANs. All devices joined to the individua
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!