Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the ASCII code 2 1 9 , print a white block on the screen. Using the up / down keys on the keyboard, the

Using the ASCII code 219, print a white block on the screen. Using the up/down keys on the keyboard, the user can change the color of the block.
Once the 'Enter' key is pressed, the block takes its final color and a new block appears. The whole process repeats itself.
Once the user hits the 'Space' key, a list is printed showing the count of each color as follows:
Green Blocks: 2
White Blocks: 2
Red Blocks: 2
Blue Blocks: 2
Yellow Blocks: 2
The code should provide a minimum of 5 colors for the user to choose from
The process is repeated indefinitely until the 'Space' key is pressed
If the first line is filled with blocks, a new block should be appended in a new line NOTES:
No email/late submissions will be accepted
Cheating will not be tolerated. The use of codes available online is considered cheating
No extension will be made on the project deadline
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Median weekly earnings of men and women by occupation

Answered: 1 week ago

Question

Current market share for Perrier water

Answered: 1 week ago

Question

Contact information for the American Management Association

Answered: 1 week ago