Advertisement
Guest User

Diogenes C#

a guest
Nov 12th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. using System;
  2.  
  3. namespace WannaBeSeven
  4.  
  5. {
  6. class MainClass
  7. {
  8. public static void Main(string[] args) // IF YOU ARE TO REWRITE FROM MY SOURCE, ALL ORIGINAL CREDITORS MUST GO INTO THE CREDITS!
  9. {
  10.  
  11. double num01;
  12. double num02;
  13. double num03;
  14. double num04;
  15. double num05;
  16. double num06;
  17. string CD = null;
  18. string P = null;
  19. string answer;
  20.  
  21.  
  22.  
  23. Console.Write("Diogenes's Calculator 1.0\n\nCredits: Diogenes of Sinope (#57714)\n DezNutz(#54689)");
  24. Console.WriteLine();
  25. Console.WriteLine();
  26.  
  27.  
  28. Console.Write("Hello! Would you like Charity Donation or Propaganda Calculator? (CD or P): ");
  29. answer = Console.ReadLine();
  30. if (answer == "CD") {
  31. Console.WriteLine();
  32. Console.Write("Howmuch influence does the target have?: ");
  33. num01 = Convert.ToDouble(Console.ReadLine());
  34. Console.Write("Howmuch is the cost of Charity Donatins? (Gold): ");
  35. num02 = Convert.ToDouble(Console.ReadLine());
  36. Console.Write("What % of influence does Charity Donation give (Made if value does change)?: ");
  37. num03 = Convert.ToDouble(Console.ReadLine());
  38. Console.Write(num02 + num03);
  39. Console.ReadKey();
  40.  
  41.  
  42.  
  43. answer = Console.ReadLine();
  44. } else if(answer == "P") {
  45. Console.Write("Howmuch influence does the target have?: ");
  46. num04 = Convert.ToDouble(Console.ReadLine());
  47. Console.Write("Howmuch influence do you want the target to have?: ");
  48. num05 = Convert.ToDouble(Console.ReadLine());
  49. Console.Write("What % of influence does Propaganda take off (Made if value does change)?: ");
  50. num06 = Convert.ToDouble(Console.ReadLine());
  51. Console.Write(num04 + num05);
  52. Console.ReadKey();
  53.  
  54. } else {
  55. Console.WriteLine("Looks like you didn't type in CD or P. Buh Bye!");
  56. Console.ReadKey();
  57. }
  58.  
  59.  
  60.  
  61. }
  62. }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement