11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Assignment 24B:1. Write a short program which uses subroutines. It doesn't have to do anything useful,just print some silly things. In it put three subroutines:Call one of them twice from the main program.Call one of them from another of the subroutines.Call one of them from an IF statement.2. Enter the JUMPING J program and run it. Then make these changes:Change the subroutine so it prints your own initial.Change the color of your initial to blue.Change the jumping to sliding (so the J moves horizontally instead of vertically).Change the starting point to the lower right hand corner instead of the middle of thescreen.Change the distance the slide goes to eight steps instead of six.Change the size of each step from one to two.Change the sliding so it slides uphill. UseX=X+D:Y=Y-DChange the program so the letter changes color from red (color 2) through all thecolors to yellow (color 7) as it jumps.3. Write a program which writes your three initials on the screen, each one a differentcolor. Then make them jump up and down one at a time!139

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!