subject

Write an application named DailyTemps that continuously prompts a user for a series of daily high temperatures until the user enters a sentinel value of 999. Valid temperatures range from -20 through 130 Fahrenheit. When the user enters a valid temperature, add it to a total; when the user enters an invalid temperature, display the error message: [Valid temperatures range from -20 to 130. Please reenter temperature]
Before the program ends, display the number of temperatures entered and the average temperature.

using System;
using static System. Console;
class DailyTemps
{
static void Main()
{
// Write your main here.
}
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 23.06.2019 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe what
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior
Answers: 1
You know the right answer?
Write an application named DailyTemps that continuously prompts a user for a series of daily high te...
Questions
question
English, 11.10.2020 09:01
question
Mathematics, 11.10.2020 09:01
question
Mathematics, 11.10.2020 09:01
question
Health, 11.10.2020 09:01
question
English, 11.10.2020 09:01
Questions on the website: 13722359