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
Masteriza [31]
1 year ago
7

Write an outdoor temperature monitoring application that allows a user to keep entering daily high temperature readings (in Fahr

enheit) until the user enters 888.
If the temperature entered is less than -20 or more than 120, display an appropriate message and do not use the temperature.
Computers and Technology
1 answer:
DedPeter [7]1 year ago
4 0

An outdoor temperature monitoring application  is given below:

package pack10;

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println("Enter daily high temperature readings (in Fahrenheit) ");

int input;

int numDays=0;

int highTemp=-999;

int lowTemp=999;

double average=0;

while(true) {

System.out.print("Enter temperature : ");

input = sc.nextInt();

if(input==555) {

break;

}

if(input<-20 || input>120) {

System.out.println("Error!!! Please enter temperatur in range -20 to 120 exclusive");

}else {

numDays++;

if(input>highTemp) {

highTemp = input;

}

if(input<lowTemp) {

lowTemp = input;

}

average += input;

}

}

System.out.println("Number of days the temperature entered : "+numDays);

System.out.println("The minimum temperature is : "+lowTemp);

System.out.println("The maximum temperature is : "+highTemp);

average/=numDays;

System.out.println("The average of the temperature is : "+average);

}

}

<h3>What is a program?</h3>

A computer program is a set of instructions written in a programming language that a computer can execute. Software includes computer programs as well as documentation and other intangible components. Source code refers to a computer program in its human-readable form.

The outdoor temperature monitoring application that allows a user to keep entering daily high temperature readings is illustrated above.

Read more about programming here:

brainly.com/question/23275071

#SPJ1`

You might be interested in
Need help with my cs110​
lord [1]
Yes so the it’s C 283 cause I think yes can
7 0
3 years ago
Why are GUI operating system more popular than CUI operating system these days?​
julsineya [31]

Answer

GUI operating system are more popular than CUI operating system because the GUI operating system is easy to use and understand because commands are graphically presented.They support extra devices and multimedia system.They support network and internet fully.They are multiuser,multitasking operating system.eg windows.

Explanation:

Hope it helps you

8 0
3 years ago
Select the best answer that completes the following sentences. Wireless technology changed the workday to
Minchanka [31]

Answer: around the clock availability

Explanation: i got 100

6 0
3 years ago
Read 2 more answers
Which of the following is an HTTP response status type?
andrey2020 [161]

Answer: All of the above

Explanation:

200 OK, 301 permanently moved and 400 bad request all are the Hyper text transfer protocol (HTTP) response status type. The HTTP response status types basically indicated the complete request in the HTTP.

All these given types are the responses and request that are involved in the HTTP status type.

200 OK is one of the request which basically depends upon the HTTP status type success.

301 permanently moved is the response in the URL which are used for permanently change the resources of request.

And 400 bad request is not properly understand by server due to the invalid syntax in the HTTP.

6 0
4 years ago
A(n) ____is a network of organizations and activities needed to obtain materials and other resources, produce final products, an
Oliga [24]

Answer:

c. supply chain

Explanation:

A supply chain in commerce, is a network of organizations and activities needed to obtain materials and other resources, produce final products, and get those products to their final users.

8 0
4 years ago
Other questions:
  • ________ are often organize commonly used commands into a set of tabs.
    5·1 answer
  • You are the project manger for Xylophone Phonics. It produces children's software programs that teach basic reading and math ski
    11·1 answer
  • What is the answer to this question on the thing I'm doing in apex
    6·1 answer
  • In a nondatabase, file-oriented environment, data is often partitioned into several disjointed systems with each system having i
    11·1 answer
  • Which of the following keys open the spelling and Grammer dialog box
    6·1 answer
  • Which tabs are expandable and collapsible? This would be in word 2010
    6·1 answer
  • Create a method to search an un-ordered array of integers for a value, if the value is found return the index of its position in
    10·1 answer
  • What are the three control statements in Qbasic?​
    10·1 answer
  • Note oj cyber security​
    6·1 answer
  • List the four types of hardware​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!