Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Who is your MILF of the moment?");
- string herName = Console.ReadLine();
- Console.WriteLine("Rate dem tits.");
- int boobs = Int32.Parse(Console.ReadLine());
- Console.WriteLine("Rate dem hips.");
- int hips = Int32.Parse(Console.ReadLine());
- Console.WriteLine("How's that ass?");
- int ass = Int32.Parse(Console.ReadLine());
- Console.WriteLine("Rate those thighs.");
- int thighs = Int32.Parse(Console.ReadLine());
- MILF milf = new MILF(herName, boobs, hips, ass, thighs);
- if (milf.verify())
- {
- milf.printDetails();
- Console.ReadLine();
- } else
- {
- Console.WriteLine("All input between 1 and 10 plz.");
- }
- }
- }
- class MILF
- {
- string Name;
- int Tits;
- int Hips;
- int Ass;
- int Thighs;
- public MILF(
- string name,
- int tits,
- int hips,
- int ass,
- int thighs)
- {
- Name = name;
- Tits = tits;
- Hips = hips;
- Ass = ass;
- Thighs = thighs;
- }
- // Separation of functionality. I called this method "verify" and that's literally the one and only thing it does.
- // 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.
- public bool verify()
- {
- bool checksOut = true;
- if (!((Tits > 0) && (Tits < 11)))
- {
- checksOut = false;
- }
- if (!((Hips > 0) && (Hips < 11)))
- {
- checksOut = false;
- }
- if (!((Ass > 0) && (Ass < 11)))
- {
- checksOut = false;
- }
- if (!((Thighs > 0) && (Thighs < 11)))
- {
- checksOut = false;
- }
- return checksOut;
- }
- // 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.
- public void printDetails()
- {
- Console.WriteLine("Your MILF is: " + Name);
- Console.WriteLine("You scored her ass a: " + Ass + "/10");
- Console.WriteLine("You scored her thighs a: " + Thighs + "/10");
- Console.WriteLine("You scored her tits a: " + Tits + "/10");
- Console.WriteLine("You scored her hips a: " + Hips + "/10");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment