Computer Science Archive: Questions from April 03, 2023
-
​​​​​​​
Fully parenthesize the following \( \lambda \)-expressions: (a) \( \lambda x . x z \lambda y . x y \) (b) \( (\lambda x . x z) \lambda y . w \lambda w . w y z x \) (c) \( \lambda x . x y \lambda x . y2 answers -
​​​​​​​
2. Mark the free variables in the following \( \lambda \)-expressions: (a) \( \lambda x . x z \lambda y . x y \) (b) \( (\lambda x . x z) \lambda y . w \lambda w . w y z x \) (c) \( \lambda x . x y \l2 answers -
Prove the following ​​​​​​​
(c) \( S U C C 2=3 \) Given: \[ \begin{array}{c} 2=\lambda f . \lambda y . f(f y) \\ 3=\lambda f . \lambda y . f(f(f y)) \\ S U C C=\lambda z . \lambda f . \lambda y . f(z f y) \end{array} \]2 answers -
Make an abstract class called Shape. The private attribute is shapeName of type String. It must include constructors (default and parameter), services (getters and setters). It will also have an abstr
Hacer una clase abstracta llamada Shape. El atributo privado es shapeName de tipo String. Debe incluir constructores (default y parameter), los servicios ("getters" y "setters"). Además tendrá un mÃ2 answers -
2. Make a concrete class called Parallelogram. This class will be a class derived from the abstract class called Shape. The private attributes are base and height of type double. You must include cons
2. Hacer una clase concreta llamada Parallelogram. Esta clase será una clase derivada de la clase abstracta llamada Shape. Los atributos privados son base y height de tipo double. Debe incluir constr0 answers -
2 answers
-
Esta actividad tiene un valor de 10 puntos. Tienes 2 intentos para enviar esta actividad como documento adjunto a través del enlace en Assignment. La fecha limite para realizar esta actividad las pue0 answers