Question

You can post a question, answer, or general comment or observation to get your discussion point...

You can post a question, answer, or general comment or observation to get your discussion point for this and every lesson. Or, you can respond to the lesson question, below.

Write an if-statement using Java syntax to represent a daily life situation. Example:

if (temperature > 90) {
   goToMovie();
}
else if (temperature > 40) {
   goHiking();
}
else {
   lightFireplace();
   readBook();
}
0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

The if else statement depicts that the person will go to movie if the temperature is greater than 90 or for hiking if the temperature is greater than 40 otherwise the user will go to lightfire place and read a book there.

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
You can post a question, answer, or general comment or observation to get your discussion point...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Step 1: Post on the discussion forum State a situation from some area of your life or interests Approximate the mean an...

    Step 1: Post on the discussion forum State a situation from some area of your life or interests Approximate the mean and standard deviation of a variable in that situation Give a sample size, Ask a probability question for the mean of those n being over/under a certain amount For example, I fill my cats’ water bowls every day. I’ll estimate that each cat drinks an average of 8.5 ounces of water every day, with a standard deviation of 2...

  • When replying to this discussion below, you must make a MEANINGFUL comment. Maybe this will help:...

    When replying to this discussion below, you must make a MEANINGFUL comment. Maybe this will help: when you read your peers' post, pretend that you are in a classroom and you just heard him or her speak. Your reply must be meaningful enough that in a face to face class, you would raise your hand, wait to be called upon and comment or ask a follow-up question to their answer. I think the "the bird" nonverbal gesture still has its...

  • The answer needs to be in a format that can be posted to a discussion board....

    The answer needs to be in a format that can be posted to a discussion board. I cant upload pictures of problems done out on paper Write a confidence interval problem using one of the options below. For whichever option you choose, gather the appropriate data and post your problem (without a solution) in the discussion topic. Allow time for your classmates to post their solutions, and then respond to your own post with the solution for others to check...

  • This week Discussion please must be in the document Initial Post: Remind your classmates of your real-world situation presented in the Unit 7 Discussion including the graph that you drew to model this...

    This week Discussion please must be in the document Initial Post: Remind your classmates of your real-world situation presented in the Unit 7 Discussion including the graph that you drew to model this situation. 1) Describe in the context of your situation and how you can modify your graph into a spanning tree. 2) Draw a spanning tree from your initial graph. 3) Add appropriate weights to each of your edges for the context of your situation. Unit 7 Discussion...

  • During our academic life we all have been exposed to many mathematical operations. Some in higher...

    During our academic life we all have been exposed to many mathematical operations. Some in higher degree than others, but every one of us can at least recall some computation they need to do in their daily lives. For example, calculating the average of your grades; or the area of your backyard; or how long will it take you to get home if you are traveling at 50 miles per hour. All these computations can be expressed in Java code....

  • Thus discussion question with two answers questions of my friends can you write your discussion and...

    Thus discussion question with two answers questions of my friends can you write your discussion and opinions by the same way they did? Notice that under the article title it reads "An Exchange." This is an exchange between the two authors, so part is written by Orr and part by Meilaender. What is Orr's argument or position? Meilaender's? Which perspective is more compelling to you? Why? After reading the article clearly both doctors had a point of view and strong...

  • For your initial post, consider a time in your life when you had to look at...

    For your initial post, consider a time in your life when you had to look at something a little closer to make sense of it. This moment might focus on a document (like the grocery list example from the previous screen), a longer piece of writing, a piece of art, a billboard, and soon.] When you've come up with the moment, write two fully developed paragraphs (5-8 sentences in length) explaining it. In the first paragraph, use rich description and...

  • To get the most out of life, to think like an economist, you have to be know what you're giving up in order to get some...

    To get the most out of life, to think like an economist, you have to be know what you're giving up in order to get something else. So, opportunity cost is the value of what you get expressed as the amount of what you give up the opportunity cost of "X" is the amount of "Y" forgone by the choice of "X"). Comment on the five examples below; either ask a question about any of the 5 examples, explain any...

  • Please I need help with that , thank you very much Discussion Question Chapter 10: Product...

    Please I need help with that , thank you very much Discussion Question Chapter 10: Product Strategy THE PRODUCTS ITS ABOUT THE COMPANY NIKE (SHOES) Instructions Write a post for the Discussion Forum on this topic, addressing the questions below. You may use either a written paragraph or bullet-point format. Part 1 should be 2–3 paragraphs in length or an equivalent amount of content in bullet-point form. Responses to your classmates’ posts should be 1–2 paragraphs or several bullet points...

  • QUESTION 1 How can you implement iteration (such as checking if there are any even elements...

    QUESTION 1 How can you implement iteration (such as checking if there are any even elements in a linked list) in a purely functional language, when there's no loop variable concept? O Recursion O Declaring type signatures O Writing out clear, concise comments Find a dragon to help you QUESTION 2 Explain what is happening below. Why are these results looking like this? Describe why it is happening in your own words. >(-10.2 10) 0.1999999999999993 >(-1.2.1) 0.19999999999999996 >(-1.41) 0.3999999999999999 >(-2.2...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT