6.7

Week 5 Set a

home work!

Programming Language BSL

Due Date Mon at 9pm (Week 5)

Purpose To use a list-based data representation of information in a real-world setting, namely, the conversation history of your chat client

Finger Exercises

Exercise 1 Design the function assemble. It consumes a list of strings and produces an image. The latter shows all the strings in order, rendered as texts of size 22 in "blue".

Exercise 2 From HtDP, 145.

Graded Exercises

Exercise 3 Problem 3 of Week 3 Set c requested the design of a chat client that represented the history of conversations—chat messages received from the server—as images. Before proceeding, fix your solution in response to our feedback.

It is time to bring your 1970’s chat client in sync with 2010’s design principles. As mentioned, the choice of representing information as images (or worse, fixed-size structure types) almost always violates the principle of separating the application logic from the user interface.HtDP refers to this principle as the Model-View-Controller or MVC design pattern. Luckily, we now have lists, which support an appropriate means for representing a sequence of messages, that is, the history of a conversation.

Update your chat client to utilize a list-based data representation.

Running the code in your definitions window may not open a big-bang window.