Class BabySitting


  • public class BabySitting
    extends ExampleFD
    It is a simple logic puzzle about babysitting.
    Version:
    4.8

    Each weekday, Bonnie takes care of five of the neighbors' children. The children's names are Keith, Libby, Margo, Nora, and Otto; last names are Fell, Grant, Hall, Ivey, and Jule. Each is a different number of years old, from two to six. Can you find each child's full name and age?

    1. One child is named Libby Jule. 2. Keith is one year older than the Ivey child, who is one year older than Nora. 3. The Fell child is three years older than Margo. 4. Otto is twice as many years old as the Hall child.

    Determine: First name - Last name - Age

    Given solution :

    Keith Fell, five years old Libby Jule, six years old Margo Hall, two years old Nora Grant, three years old Otto Ivey, four years old

    • Constructor Detail

      • BabySitting

        public BabySitting()
    • Method Detail

      • model

        public void model()
        Description copied from class: ExampleFD
        It specifies a standard way of modeling the problem.
        Specified by:
        model in class ExampleFD
      • main

        public static void main​(java.lang.String[] args)
        It runs the program solving this puzzle.
        Parameters:
        args - no arguments are read.