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
balu736 [363]
3 years ago
11

printTodaysDate is a method that accepts no arguments and returns no value. Write a statement that calls printTodaysDate. Assume

that printTodaysDate is defined in the same class that calls it.
Computers and Technology
1 answer:
Damm [24]3 years ago
4 0

Answer:

printTodaysDate( );

Explanation:

A method or function is called in programming languages like java by typing the method's name followed by a pair of parenthesis and a semi-colon to end the statement. The parenthesis will contain the parameters if the method accepts argurments when called.

For the example in this question, the method printTodaysDate(), accepts no arguments. It is important also to note that if a method returns a value, then it can be called and assigned to a variable, for example if printTodaysDate were to return a value then it could also have been called like this: todaysDate=printTodaysDate();

You might be interested in
Fill in the blanks:
Temka [501]

Answer:

Explanation:

Since this is a fill in the blanks question, I will rewrite the sentences and make the answers bold and underlined for ease of access. Hope it helps.

1. A worksheet is made up of <u>cells</u> organized in a grid of rows and columns.

2. A <u>Cell Address</u> describes the location of a cell based on its column and row location.

3. A(n) <u>Absolute reference</u> refers to a fixed cell location that never changes.

4. Rows are typically represented by <u>Numbers</u> and contain data for individual records.

5. The <u>Format</u> of a worksheet defines its appearance.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

7 0
3 years ago
How do you turn on the Track Changes feature in a word-processing document?
aniked [119]
Click options in the tools menu and select track changers
5 0
3 years ago
A student is reading a book for language arts. She has to finish three chapters by class tomorrow, because there will be a quiz.
Jobisdone [24]

Answer:

Distracted..?

8 0
3 years ago
Read 2 more answers
Write a method named addCommas that accepts a string representing a number and returns a new string with a comma at every third
pentagon [3]

Answer:

Locale unaware

'{:,}'.format(value) # For Python ≥2.7

f'{value:,}' # For Python ≥3.6

Locale aware

import locale

locale.setlocale(locale.LC_ALL, '') # Use '' for auto, or force e.g. to 'en_US.UTF-8'

'{:n}'.format(value) # For Python ≥2.7

f'{value:n}' # For Python ≥3.6

6 0
3 years ago
Suppose that a function dynamically allocates a block of memory with a local pointer variable p pointing to the allocated block.
Kaylis [27]

Answer:

The Pointer P becomes a dangling pointer.

Explanation:

int calculate(){

int *p = (int*)malloc(10);

*p = 10;

return p;

}

In this program, the scope of p is only with the calculate function block. Hence, once the compiler comes out of the function, it can no more access the pointer p or the memory location p is pointing to. To overcome the dangling pointer, we need to declare p as static, so that the scope of p is throughout the program.

6 0
4 years ago
Other questions:
  • If we have an economy that operates with a minimum of government interference, why are there so many laws on the books about emp
    7·2 answers
  • Multiple choice
    9·2 answers
  • He ____________ may include a high-level WBS in a graphic chart format or as an indentured list of the work elements and associa
    14·1 answer
  • Use the image above to determine which toolbars will be displayed in the program you are using. SELECT ALL THAT APPLY
    11·2 answers
  • __________ systems support the search for and sharing of organizational expertise, decision making, and collaboration at the org
    9·1 answer
  • String member function compare compares two strings (or substrings) and returns 0 if:
    5·1 answer
  • Es costoso construir un robot
    6·1 answer
  • Strange<br><br> String<br><br> Striated<br><br> Stop
    13·1 answer
  • Order the steps for changing the settings of an outlook data file
    10·1 answer
  • Difference between software developer and software engineer.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!