List[Null, Null, Null, Null, Null, Null, Null, Notebook[List[Cell[CellGroupData[List[Cell["Exercise 3", "Title"], Cell[CellGroupData[List[Cell["Applying Hierarchical Modification", "Section"], Cell[TextData[List["Today you are going on a lunch date! To help you, several classes are created below. \n\nThe ", StyleBox["first", Rule[FontSlant, "Italic"]], " class is ", StyleBox["DayName", Rule[FontFamily, "Courier"]], ", contains the parameter ", StyleBox["nameOfDay", Rule[FontFamily, "Courier"]], ", a certain day written as a ", StyleBox["String", Rule[FontFamily, "Courier"]], ". \nThe ", StyleBox["second", Rule[FontSlant, "Italic"]], " class, ", StyleBox["LunchAppointment", Rule[FontFamily, "Courier"]], ", contains the variables ", StyleBox["lunchTime", Rule[FontFamily, "Courier"]], " (what time you are going to lunch) and ", StyleBox["lunchDate", Rule[FontFamily, "Courier"]], " (who you are going on the lunch date with). \nAnd at last the class, ", StyleBox["Date", Rule[FontFamily, "Courier"]], ", with parameters ", StyleBox["dayName", Rule[FontFamily, "Courier"]], " (where you can set the variable in the class ", StyleBox["DayName", Rule[FontFamily, "Courier"]], ", for fun it is now Funday", ") as well as d", StyleBox["ate", Rule[FontFamily, "Courier"]], ", ", StyleBox["month", Rule[FontFamily, "Courier"]], " and ", StyleBox["year", Rule[FontFamily, "Courier"]], ".\n"]], "Text"], Cell["class DayName\n  parameter String nameOfDay;\nend DayName;", "ModelicaInput"], Cell["", "Text"], Cell["class LunchAppointment\n  parameter Integer lunchTime;\n  parameter String lunchDate;\nend LunchAppointment;", "ModelicaInput"], Cell["", "Text"], Cell["class Date\n  DayName dayName(nameOfDay = \"Funday\");\n  parameter Integer date;\n  parameter String month;\n  parameter Integer year;\nend Date;", "ModelicaInput"], Cell[TextData[List["\nWhat you are going to do now is create a class, ", StyleBox["Today", Rule[FontFamily, "Courier"]], ", in which you can modify the values in the class ", StyleBox["Date", Rule[FontFamily, "Courier"]], " as well as in the class ", StyleBox["LunchAppointment", Rule[FontFamily, "Courier"]], ". First, write the class using ", StyleBox["nested notation", Rule[FontSlant, "Italic"]], "."]], "Text"], Cell["", "ModelicaInput"], Cell[TextData[List["\nNow write the class, ", StyleBox["Tomorrow", Rule[FontFamily, "Courier"]], ", going with another date, using ", StyleBox["dot notation", Rule[FontSlant, "Italic"]], "."]], "Text"], Cell["", "ModelicaInput"], Cell[CellGroupData[List[Cell["Answer", "Subsection"], Cell["class Today\n  Date date(dayName(nameOfDay = \"Wednesday\"),\n  \t\t\tdate = 2,\n  \t\t\tmonth = \"October\",\n\t\t\tyear = 2002);\n  LunchAppointment lunchApp(lunchTime = 12,\n\t\t\t\t\t\t\tlunchDate = \"Frederick\");\nend Today;", "ModelicaInput"], Cell["", "Text"], Cell["class Tomorrow\n  Date date(dayName.nameOfDay = \"Thursday\",\n\t   date = 3,\n\t   month = \"October\",\n\t   year = 2002);\n  LunchAppointment lunchApp(lunchTime = 12,\n  \t\t   lunchDate = \"Steven\"); \nend Tomorrow;", "ModelicaInput"]], Closed]]], Open]]], Open]]], Rule[FrontEndVersion, "4.1 for Microsoft Windows"], Rule[ScreenRectangle, List[List[0, 1280], List[0, 951]]], Rule[WindowSize, List[876, 924]], Rule[WindowMargins, List[List[6, Automatic], List[Automatic, 2]]], Rule[StyleDefinitions, "MathModelica.nb"]], Null, Null, Null, Null, Null]