Menu

[solved]-Write Method Takeawalk Take Argument Saying Many Spare Minutes Walk Whole Number Print Go Q39030523

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

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 Show transcribed image text 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

Expert Answer


Answer to Write a method takeAwalk which will take an argument saying how many spare minutes you have for your walk (a whole numbe… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *