## exam ws16-17 topic 3a

Moderatoren: pmueller, SE - Design and Construction

typ
Windoof-User
Beiträge: 32
Registriert: 5. Nov 2016 19:06

### exam ws16-17 topic 3a

Hi,
I got the following solution for the old exam task:

Code: Alles auswählen

  lazy val linLin: Linearization[LinResult] =
Lin("DoubleCheeseSalamiPizza") ===
Lin("DoubleCheeseSalamiPizza", >>(Lin("Cheese"), >>(Lin("Salami"), Lin("MargheritaPizza")))) ===
Lin("DoubleCheeseSalamiPizza", >>(Lin("Cheese", Lin("Pizza")), >>(Lin("Salami"), Lin("MargheritaPizza")))) ===
Lin("DoubleCheeseSalamiPizza", >>(Lin("Cheese", LinResult("Pizza", "AnyRef", "Any")), >>(Lin("Salami"), Lin("MargheritaPizza")))) ===
Lin("DoubleCheeseSalamiPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), >>(Lin("Salami"), Lin("MargheritaPizza")))) ===
Lin("DoubleCheeseSalamiPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), >>(Lin("Salami", LinResult("Pizza")), Lin("MargheritaPizza")))) ===
Lin("DoubleCheeseSalamiPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), >>(LinResult("Salami", "Pizza", "AnyRef", "Any"), Lin("MargheritaPizza")))) ===
Lin("DoubleCheeseSalamiPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), >>(LinResult("Salami", "Pizza", "AnyRef", "Any"), Lin("MargheritaPizza", >>(Lin("Cheese"), Lin("BasePizza")))))) ===
Lin("DoubleCheeseSalamiPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), >>(LinResult("Salami", "Pizza", "AnyRef", "Any"), Lin("MargheritaPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), Lin("BasePizza")))))) ===
Lin("DoubleCheeseSalamiPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), >>(LinResult("Salami", "Pizza", "AnyRef", "Any"), Lin("MargheritaPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), LinResult("BasePizza", "Pizza", "AnyRef", "Any")))))) ===
Lin("DoubleCheeseSalamiPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), >>(LinResult("Salami", "Pizza", "AnyRef", "Any"), LinResult("MargheritaPizza", "Cheese", "BasePizza", "Pizza", "AnyRef", "Any")))) ===
Lin("DoubleCheeseSalamiPizza", >>(LinResult("Cheese", "Pizza", "AnyRef", "Any"), LinResult("Salami", "MargheritaPizza", "Cheese", "BasePizza", "Pizza", "AnyRef", "Any"))) ===
Lin("DoubleCheeseSalamiPizza", LinResult("Salami", "MargheritaPizza", "Cheese", "BasePizza", "Pizza", "AnyRef", "Any")) ===
LinResult("DoubleCheeseSalamiPizza", "Salami", "MargheritaPizza", "Cheese", "BasePizza", "Pizza", "AnyRef", "Any")

Would this solution get all points?

typ
Windoof-User
Beiträge: 32
Registriert: 5. Nov 2016 19:06

### Re: exam ws16-17 topic 3a

*it's the mid-term exam of ws16-17

theChaoS
Windoof-User
Beiträge: 27
Registriert: 22. Apr 2012 03:39

### Re: exam ws16-17 topic 3a

Also is it necessary to write down all steps? I am asking since the mid-term exam was made for 45 min and this task took us like 15 min just to write down everything properly.

emod02
Neuling
Beiträge: 9
Registriert: 27. Apr 2018 19:35

### Re: exam ws16-17 topic 3a

Hi,

I have the same result for this task.

Greets