Find highest, lowest, and average temperature of the month
Not what you're looking for?
need help writing a program in C# with the output
Please enter the average temperature for week 1 of the month: 11
Please enter the average temperature for week 2 of the month: 22
Please enter the average temperature for week 3 of the month: 33
Please enter the average temperature for week 4 of the month: 44
The lowest temperature for the month was : 11 degrees.
The highest temperature for the month was : 44 degrees.
The average temperature for the month was: 27.5 degrees
Purchase this Solution
Solution Summary
Easy to understand, self-explanatory code to find highest, lowest, and average temperature of the month. A simple C# code that asks users to enter average temperate for each week of the month. It then finds the lowest, highest, and average temperature values and display the result on the console. It uses Math.min and Math.max methods.
Solution Preview
using System.IO;
using System;
class Program
{
static void Main()
{
//get temperature from user
Console.WriteLine("Please enter the average temperature for week 1 of the month:");
int week1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Please enter the average temperature for ...
Purchase this Solution
Free BrainMass Quizzes
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Basic Networking Questions
This quiz consists of some basic networking questions.