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
lara31 [8.8K]
1 year ago
12

write (define) a public static method named countup, that takes one int argument and returns no value. you can safely assume tha

t the argument will always be a positive integer. when this method is called, it should print a count from 1 up to (and including) the argument value.
Computers and Technology
1 answer:
tester [92]1 year ago
7 0

Using the knowledge of computational language in python it is possible to write a code that write (define) a public static method named countup, that takes one int argument and returns no value.

<h3>Writting the code:</h3>

<em>public class </em><em>Main</em>

<em>{</em>

<em>public static void main(</em><em>String</em><em>[] args) {</em>

<em>// testing the method </em><em>countDown </em><em>with values 5, 6, 1</em>

<em>countDown(5);</em>

<em>System.out.println();</em>

<em>countDown(6);</em>

<em>System.out.println();</em>

<em>countDown(2);</em>

<em>System.out.println();</em>

<em>}</em>

<em />

<em>public static void </em><em>countDown</em><em>(int num)</em>

<em>{</em>

<em>for (int i=1 ; i<=num ; i++) // for </em><em>loop </em><em>iterates from 1 to num</em>

<em>{</em>

<em>System.out.print(i+","); // prints num followed by comma ,</em>

<em>}</em>

<em>}</em>

<em>}</em>

See more about JAVA at brainly.com/question/12975450

#SPJ1

You might be interested in
When is it most appropriate to quote from an e-mail message in a response?
allochka39001 [22]
I would say *d. when the quote is a part of a series of e-mails written by more than one person.*

eskettit hope this helped.
4 0
3 years ago
Read 2 more answers
What is the advantage of learning through story compared to learning through personal experience?
Artemon [7]

Answer:

I think the answer would be D

Explanation:

it just seems to make the most sense

7 0
3 years ago
Read 2 more answers
What might a designer need to consider when choosing an appropriate energy source for products and power systems
NemiM [27]

Answer:

one just the right power storage if it is not the right power storage it could over heat or catch fire

Explanation:

6 0
3 years ago
A news website uses 32-bit integers to count the number of times an article has been viewed. The website is becoming more popula
Irina-Kira [14]

Answer:

2^32 times as many values can be represented

Explanation:

32-bit. This means that the number is represented by 32 separate one’s and zero’s. 32 bits of 2 possible states = 2^32=4,294,967,296 possible values.

Integer meaning that only whole multiples of one are accepted.

Signed meaning that negative values are accepted. This halves the number of possible positive values (roughly), so the largest number you can represent is 2^31–1=2,147,483,647, but instead of 0, the smallest number you can represent is -2,147,483,648. An unsigned 32-bit integer, by contrast, can represent anything from 0 to 4,294,967,295.

7 0
3 years ago
Which social network site has 1.5 billion actives users per month?
aksik [14]
I think it is Twitter.
6 0
3 years ago
Other questions:
  • 7. While an adjacency matrix is typically easier to code than an adjacency list, it is not always a better solution. Explain whe
    5·1 answer
  • Your browsing the Internet and realize your browser is not responding which of the following will allow you to immediately exit
    14·2 answers
  • What is a feature of audio editing software
    11·1 answer
  • Items that represent features of smartphones apps
    12·1 answer
  • Haigy Paigy is as a children's invented language which sounds exactly like English, except that "aig" is inserted before the vow
    12·1 answer
  • How do professionals address their problems?
    14·2 answers
  • Which model represents any process in general?
    6·1 answer
  • The Internet was first used by which of the following institutions?
    7·1 answer
  • Consider the following code segment:
    12·1 answer
  • FCAPS is a network management functional model. FCAPS is an acronym that represents the focal tasks necessary to effectively man
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!