Question: For this assignment, you will write a program that draws your school s letters on PennSim s graphic display in the appropriate color. The program
For this assignment, you will write a program that draws your schools letters on PennSims graphic
display in the appropriate color. The program user will be able to change the color of the letters.
Program Specification
The program must start at address x
The program will draw ASCWs letters onto the center of the graphics screen. The initial color shall be
the main color for your school Red These letters shall be centered in the screen
LR TopBottom and shall be pixels tall. The width and style is your choice. Background should be
black in color. The PennSim graphics display is the same as described in Program
The user interacts with the program using onecharacter commands. The commands are typed on the
keyboard, but are not printed to the console display. Nothing will be printed to the console during the
execution of this program. The program will wait for a keystroke, perform the corresponding command,
and repeat. If the keystroke does not correspond to a legal command, it will have no effect.
There are five commands:
R Change color to red
G Change color to Green
B Change color to Blue
Y Change color to yellow
Space change color to white
Q quit the program will display Thank you for playing and HALT
The values in Hex:
Red xComb
Green E
Blue F
Yellow xFED
White xFFF
Black x
At least subs must be used.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
