Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write in c# and use while loop Instructions DailyTemps.cs + 1 using System; 2 using static System.Console; 3 class DailyTemps 4{ 5 static void Main()
Write in c# and use while loop
Instructions DailyTemps.cs + 1 using System; 2 using static System.Console; 3 class DailyTemps 4{ 5 static void Main() 6 { 7 // Write your main here. 8 } 9} 10 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 Before the program ends, display the number of temperatures entered and the average temperatureStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started