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
natali 33 [55]
3 years ago
7

Write a method takeAwalk which will take an argument saying how many spare minutes you have for your walk (a whole number), and

will print out where you will go using System.out.println. If you have at least 60 minutes for your walk, you will go to the store: print "Store". Otherwise, if you have at least 10 minutes, you will walk around the block: print "Block". Otherwise, print "Nowhere". The method does not return any value. 1
Computers and Technology
1 answer:
lianna [129]3 years ago
8 0

Answer:

public class walk {

       //create the function

public static void takeAwalk(int spare_Minute) {

 //check the condition and print if match

 if(spare_Minute>=60) {

  System.out.println("Store");

 }else if(spare_Minute>=10) {

  System.out.println("Block");

 }else {

  System.out.println("Nowhere");

 }

public static void main(String[] args) {  

 //call the function

 takeAwalk(60);

}

}

Explanation:

Create the class and define the function takeAwalk which takes one parameter of integer type and the function return type is void. It means the function does not return any value.

In the function, take the continuous if-else statement.

syntax:

if(condition){

  statement;

}else if(condition){

   statement;

}else{

  statement;

}

it takes the condition, if the condition is true then execute the statement otherwise program move to the else if() part. if this is also false then the program moves to the else part.

create the main function for testing the program and call the function.

suppose the value pass is 60.

then, program control moves to the function definition and start executing.

if-else statement checks the condition, 60 >= 60 condition match and the program print the message "Store".

You might be interested in
Why is this app here to help but wont let me see answers to my questions?
UkoKoshka [18]

Answer:

maybe you need to reload the page and press the little bell on the right side and u should get a notification when somebody answers your question and if that doesnt help go to your profile and press the tab (on this tab if that makes since) it should say sumin like questions you asked and u should press the ones u need the answers to

Explanation:

lmk if this helped

5 0
3 years ago
Read 2 more answers
Explain any two stress management techniques.
FinnZ [79.3K]

Answer:

1) Meditate : Create a little space in your room where you can meditate (e.g. light candles and incense, play calming music). Reaching a meditative state takes practice but there are some great tips for beginners online. Meditation can help ease anxiety and improve concentration.

2) Watch something funny. Laughter really is the best medicine. It relieves physical tension, reduces stress and increases immunity…so watch your fave comedy and laugh your way to tranquility.

<u><em>Hope this helps.....</em></u>

<u><em>Pls mark this answer as brainliest :)</em></u>

<h2>                                         </h2><h2>                               <u><em>STAY COOL </em></u> </h2>
6 0
3 years ago
HELP 100 points
natima [27]

Answer:

i do not know what to do there.

Explanation:

there's no pictures

5 0
2 years ago
A data analyst adds descriptive headers to columns of data in a spreadsheet. How does this improve the spreadsheet?.
Marrrta [24]

The way that adding descriptive headers to columns of data in a spreadsheet improve the spreadsheet is that; It adds context to the data.

  • Usually in spreadsheets in Microsoft Excel, we could just naturally use letters like A, B or C or even numbers like 1, 2, or 3 as title headers for columns. However, sometimes it becomes necessary to use descriptive headers. This is because the person reading it may not be able to easily comprehend the details or numbers in that particular column.

  • Thus, in order to add more context to the data in the column of the spreadsheet and improve understanding of context using descriptive headers is very useful.

Read more on excel spreadsheets at; brainly.com/question/25863198

7 0
2 years ago
Heather writes an essay for language arts and receives a poor grade. To figure out why she gets a poor grade, Heather looks at t
Kazeer [188]

Answer:

Glows and grows strat

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • OSHA has authority over the employers of
    5·2 answers
  • Does the following program represent an algorithm in the strict sense? Why or why not? Count=0 while count (count ! =5): count =
    13·1 answer
  • A mobile base station (BS) in an urban environment has a power measurement of 15 µW at 175 m. If the propagation follows an inve
    9·1 answer
  • You have a small company and want to keep your cost low, but it is important your employees share data. which network would prov
    13·1 answer
  • 28. Which major NIMS Component describes recommended organizational structures for incident management at the operational and in
    10·1 answer
  • Writa function to read content from "Zone. txt" and write it into another file "zone1. txt" by reversing each line if the line s
    15·1 answer
  • Audiovisual technology is not important in a world that is interactive
    7·1 answer
  • What is a web server?​
    11·1 answer
  • What are the academic benefits of practicing netiquette? Check all that apply.
    7·1 answer
  • Your friends are having difficulties with their computer setups. Can you suggest a way to help each friend?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!