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 x3000.
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
((L)/(R), To(p)/(B)ottom) and shall be 84 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 2.
The user interacts with the program using one-character 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 - x\Comb{7}{00}
Green -03E0
Blue -001F
Yellow - x7FED
White - x7FFF
Black - x0000
At least 6 subs must be used.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!