Question: Dr.Racket (BSL) Complete the program with all the wishlist requirements ;; Bounce a single ball around the screen. ;; For this problem set you must

;; Bounce a single ball around the screen. ;; For this problem set you must complete the design of a world (@problem 1) (@htdw Ball) Constants: (define WIDTH 605) (define HEIGHT 535) (define BALL-RADIUS 10) (define ;; :: Functions: (@htdf main); (@signature Ball -> Ball). ;; start the game, call with (main B1) ;; (@htdf next-ball) (@signature Ball -> Ball) ;; produce ball at next x,y; checks bounces off (@htdf touch-top?) (@signature Ball -> Boolean) ;; true if ball is going up and edge will hit or pass top (define (bounce-top b) b) (@template-origin Ball) (@template (define (bounce-top b) (... (ball-x b) (ball-y 

Dr.Racket (BSL)

Complete the program with all the wishlist requirements

;; Bounce a single ball around the screen. ;; For this problem set you must complete the design of a world program. ;; The complete program must have the following behaviour: ;; there is a green background, with a single white ball ;; - ;; ;; ;; Note that we are giving you significant help in the starter file. ;; There is a complete data design, some complete helper functions, as ;; well as a some wish list entries. You absolutely MUST - bouncing around inside that box when the ball hits the top/right/bottom/left of the box it bounces in the usual way a ball would bounce off of a wall clicking the mouse replaces the ball with a new ball, at the current mouse position, and with a small random x, y velocity not edit any of the complete design elements we give you complete the wish list entries we give you, and do so in a way that is consistent with the rest of the design we give you must use the helpers we give you as part of your solution ;; ;; ;; We recommend that you begin by first going through the entire file to ;; understand what is already complete and what you need to complete.

Step by Step Solution

3.51 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To complete the program with all the wishlist requirements you need to implement the missing functions and add some additional functions as specified Ill provide you with the complete code including t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!