-
Notifications
You must be signed in to change notification settings - Fork 0
/
WaterLab.cs
32 lines (27 loc) · 974 Bytes
/
WaterLab.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _3Wednesday
{
class WaterLab
{
static void Main()
{
/*
* Write a program that will:
*
* - Assume that a gallon of water weighs 8.33 pounds
* - Prompt the user to enter a number of gallons
* - Display the total weight of the water in pounds
*
* Test with something simple like 2 to start.
*/
Console.Write("How many gallons of water do you use a day? ");
decimal useOfWater = Convert.ToDecimal (Console.ReadLine());
decimal totalLbs = 8.33m;
Console.WriteLine("The total amount water you use is " + useOfWater * totalLbs + " LBS ");
}//end Main ()
}//end class
}//end namespace