Guest User

Untitled

a guest
Sep 16th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.81 KB | None | 0 0
  1.  class Program
  2.     {
  3.         static void Main(string[] args)
  4.         {
  5.             Console.WriteLine("Who is your MILF of the moment?");
  6.             string herName = Console.ReadLine();
  7.  
  8.             Console.WriteLine("Rate dem tits.");
  9.             int boobs = Int32.Parse(Console.ReadLine());
  10.  
  11.             Console.WriteLine("Rate dem hips.");
  12.             int hips = Int32.Parse(Console.ReadLine());
  13.  
  14.             Console.WriteLine("How's that ass?");
  15.             int ass = Int32.Parse(Console.ReadLine());
  16.  
  17.             Console.WriteLine("Rate those thighs.");
  18.             int thighs = Int32.Parse(Console.ReadLine());
  19.  
  20.             MILF milf = new MILF(herName, boobs, hips, ass, thighs);
  21.  
  22.             if (milf.verify())
  23.             {
  24.                 milf.printDetails();
  25.                 Console.ReadLine();
  26.             } else
  27.             {
  28.                 Console.WriteLine("All input between 1 and 10 plz.");
  29.             }
  30.         }
  31.     }
  32.  
  33.     class MILF
  34.     {
  35.         string Name;
  36.         int Tits;
  37.         int Hips;
  38.         int Ass;
  39.         int Thighs;
  40.  
  41.         public MILF(
  42.                 string name,
  43.                 int tits,
  44.                 int hips,
  45.                 int ass,
  46.                 int thighs)
  47.         {
  48.             Name = name;
  49.             Tits = tits;
  50.             Hips = hips;
  51.             Ass = ass;
  52.             Thighs = thighs;
  53.         }
  54.  
  55.         // Separation of functionality. I called this method "verify" and that's literally the one and only thing it does.
  56.         // Check all the variables you want to check and return whether the verify was a success or not. Because that's what you want to know about a verification.
  57.         public bool verify()
  58.         {
  59.             bool checksOut = true;
  60.             if (!((Tits > 0) && (Tits < 11)))
  61.             {
  62.                 checksOut = false;
  63.             }
  64.             if (!((Hips > 0) && (Hips < 11)))
  65.             {
  66.                 checksOut = false;
  67.             }
  68.  
  69.             if (!((Ass > 0) && (Ass < 11)))
  70.             {
  71.                 checksOut = false;
  72.             }
  73.  
  74.             if (!((Thighs > 0) && (Thighs < 11)))
  75.             {
  76.                 checksOut = false;
  77.             }
  78.  
  79.             return checksOut;
  80.         }
  81.  
  82.         // Again, separation of functionality. This method takes care of the task of printing the details. It will never do anything else because that's how I decided to write it.
  83.         public void printDetails()
  84.         {
  85.             Console.WriteLine("Your MILF is: " + Name);
  86.             Console.WriteLine("You scored her ass a: " + Ass + "/10");
  87.             Console.WriteLine("You scored her thighs a: " + Thighs + "/10");
  88.             Console.WriteLine("You scored her tits a: " + Tits + "/10");
  89.             Console.WriteLine("You scored her hips a: " + Hips + "/10");
  90.         }
  91.     }
Advertisement
Add Comment
Please, Sign In to add comment