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
nika2105 [10]
3 years ago
10

#In the previous coding problem, you created a function #called hide_and_seek that printed the numbers from 1 to 10. #Now, howev

er, we want to extend that. What if we want to #count to 20? 30? # #Modify your previous function so that it takes as input one #parameter: count. Then, instead of printing the numbers from #1 to 10, it should print the numbers from 1 to the value of #count. Then, end with "Ready or not, here I come!"
Computers and Technology
1 answer:
fredd [130]3 years ago
5 0

Answer:

public class num7 {

//Method hide and seek begins here

   public static void hide_and_seek(int count){

       for(int i=1; i<=count; i++){

           System.out.println(i);

       }

       System.out.println("Ready or not, here I come!");

   }

//Main method begins here

   public static void main(String[] args) {

       hide_and_seek(20);

       hide_and_seek(10);

   }

}

Explanation:

Using Java programming langauge.

Method hide_and_seek is created with return type void and receives one parameter count

The method uses a for loop to print numbers from 1 to count, then the string Ready or not, here I come!"

In the main method hide_and_seek () is called twice and passed the argument of 20 and 10

You might be interested in
Which set of technologies that support knowledge management is characterized by mashups, blogs, social networks, and wikis? a. X
Neporo4naja [7]

Answer: c) Web 2.0

Explanation:

Web 2.0 is the technology that consist applications and websites for the people to interact and sharing information, activities, event and other materials through social media components like blog, social networking sites,wikis, podcast etc.

  • Other options are incorrect because artificial intelligence, ERP(Enterprise resource planning) and XML(Extensible Markup Language) are not the tools that is used by users for interaction and communicating with the help of social media components.
  • Thus, the correct option is option(c).
3 0
3 years ago
2. Voltage is:
jenyasd209 [6]
A. The force that moves electrons
6 0
3 years ago
Two technicians are discussing MAP sensors. Technician A says that the MAP sensor should be replaced if anything comes out of th
anygoal [31]

Answer:

Both are correct.

Explanation:

Both technicians are correct in this scenario. Technician A point of view is correct as well as technician B.

3 0
3 years ago
Which of the following is not a good use of a spreadsheet?
Ivanshal [37]
I’d say business letter
4 0
3 years ago
Which of the following is the MOST important consideration when planning your budget?
nata0808 [166]
<span>Budget for fixed expenses before flexible expenses.</span>
5 0
4 years ago
Read 2 more answers
Other questions:
  • What are some common characteristics of jobs in this career cluster? check all that apply
    10·2 answers
  • The default primary key for an access database is the id field true or falser
    7·1 answer
  • When you “listen” to evaluate an online message, which question should you ask?
    11·1 answer
  • What are chemical manufacturers required to provide to anyone who purchases or uses their chemicals for a work purpose? Select a
    8·2 answers
  • Programmers compile a list of instructions to build their applications. These instructions are typically grouped into units of c
    10·1 answer
  • We are committed to creating and cultivating a graduate and postdoctoral community that values and respects individuals, regardl
    11·1 answer
  • Do you get notified if someone follows you on Spotify like your email or do you just have to find out on your own
    14·1 answer
  • Which of the following is not a method of the history object?
    11·1 answer
  • Decimal numbers is equivalent to binary 110
    5·1 answer
  • Two things every professional PowerPoint presentation should have
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!