Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication6
  8. {
  9. class discount
  10. {
  11. static void Main(string[] args)
  12. {
  13.  
  14.  
  15.  
  16. double emailusage;
  17.  
  18. const double emaildata = 0.02731;
  19.  
  20. int month = 30;
  21.  
  22. int gig = 1024;
  23.  
  24. Console.WriteLine("In a typical day, how often do you do these activities while");
  25. Console.WriteLine("you're not connected to any wifi?");
  26. Console.WriteLine();
  27. Console.WriteLine("Emails:");
  28. Console.WriteLine("0 5 25 50 100 250+");
  29. Console.WriteLine("How many emails [without attachments] do you send/receive? ");
  30.  
  31. emailusage = double.Parse(Console.ReadLine());
  32.  
  33. emailusage = (emailusage * emaildata * month / gig);
  34.  
  35. Console.WriteLine(emailusage);
  36.  
  37.  
  38.  
  39.  
  40. }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement