Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Compute the discounted price.
- using System;
- namespace prac_2
- {
- class discount
- {
- static void Main()
- {
- double emailusage;
- const double emaildata = 0.02731;
- int month = 30;
- int gig = 1024;
- Console.WriteLine("In a typical day, how often do you do these activities while");
- Console.WriteLine("you're not connected to any wifi?");
- Console.WriteLine();
- Console.WriteLine("Emails:");
- Console.WriteLine("0 5 25 50 100 250+");
- Console.WriteLine("How many emails [without attachments] do you send/receive? ");
- emailusage = double.Parse(Console.ReadLine());
- emailusage = (emailusage * emaildata * month / gig);
- Console.WriteLine(emailusage);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement