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, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
Each row in a database is a set of unique information called a(n) ? a.) table. b.) record. c.) object. d.) field.
Answers: 2
question
Computers and Technology, 25.06.2019 00:30
You are to write a series of steps that anyone could follow to solve the following three problems: 1. even odd a. assume that someone tells you a number (an integer number) b. you hear the number and respond with the word even or odd 2. average a. assume that someone tells you between 3 and 5 numeric values. b. you hear the numbers and respond with the average is some number 3. dog or cat a. explain to a child the differences between a dog and a cat. b. your explanation could be used by a child or anyone to distinguish the difference between a dog and a cat
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
Mathematics, 01.12.2021 21:50
question
Mathematics, 01.12.2021 21:50
question
History, 01.12.2021 21:50
Questions on the website: 13722361