Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Create a loop (for/while) that draws squares that are 5 pixels wide and 5 pixels tall near the top of the screen, across

image text in transcribedimage text in transcribed

4. Create a loop (for/while) that draws squares that are 5 pixels wide and 5 pixels tall near the top of the screen, across the entire width of the screen. (6 marks) What would you change about your code if we only wanted the squares on the first half of the screen? 5. Create a loop (for/while) that draws circles that are 10 pixels wide and 10 pixels from the top left corner to the bottom right corner of the screen. (6 marks) What would you change about your code if we only wanted the circles to go from the top left corner to the middle of the screen (diagonally)? In-Class Assignment: While/For Loops 1. What is wrong with this code? Explain and fix the code! for (var s = 10; s

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

What types of fees and conditions are prohibited under RESPA?

Answered: 1 week ago