6.7

Assignment 3

home work!

Programming Language BSL

Due Date Thurs 1/19 at 11:59pm

Possible Points 14

Purpose To write more simple functions that also include conditionals.

Graded Exercises

Write enough check-expects for these exercises so that when you hit "run" no black text appears.

Exercise 1 Write a function that given a Number n outputs a circle with radius n overlayed onto a square with sides of length 2n.

Exercise 2 Write a function that is given three Numbers and computes their mean.

Exercise 3 Matt is (always) hungry. He wants to get food but is unsure if he’s willing to go the distance. Help him out by defining a function that, given the distance in feet to a restaurant, will tell him if it’s worth the effort. Specifically, if the restaurant is less than 200 feet away, output "yes". If the restaurant is less than 500 feet but at least 200 feet away, output "maybe". If the restaurant is 500 or more feet away, output "that's disgusting".