After F5 is clicked, the code e.Graphics.DrawRectangle(Pens.Red, 11, 18, 3, 2) creates in the windows form a (choices for this blank: (a) vertical; (b) horizontal) rectangle whose dimensions are: height= pixels and width= In the For-Next Loop, the 1st iteration for variable i draws a red rectangle whose upper left corner is located at Y= and X- For the following pixel color question, the choices are: Red: Green Blue: White: Mixed Colors. Please write the color name in the blanks. The pixel color at location (10,9) is The pixel color at location (11,11) is The pixel color at location (11,14) is The pixel color at location (11,20) is The pixel color at location (12,11) is The pixel color at location (13,13) is The pixel color at location (13,13) is The pixel color at location (14,11) is The total number of red-colored pixels is Number of iterations done for the code above is The final value of intX when debugging ends is

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
After F5 is clicked, the code e.Graphics.DrawRectangle(Pens.Red, 11, 18, 3, 2) creates in the windows form a
(choices for this blank: (a) vertical; (b) horizontal} rectangle whose dimensions are: height=
pixels and width=
In the For-Next Loop, the 1st iteration for variable i draws a red rectangle whose upper left corner is located at
Y=
and X=
For the following pixel color question, the choices are: Red: Green: Blue: White: Mixed Colors. Please write the
color name in the blanks.
The pixel color at location (10,9) is
The pixel color at location (11,11) is
The pixel color at location (11,14) is
The pixel color at location (11,20) is
The pixel color at location (12,11) is
The pixel color at location (13,13) is
The pixel color at location (13,13) is
The pixel color at location (14,11) is
The total number of red-colored pixels is
Number of iterations done for the code above is
The final value of intX when debugging ends is
Transcribed Image Text:After F5 is clicked, the code e.Graphics.DrawRectangle(Pens.Red, 11, 18, 3, 2) creates in the windows form a (choices for this blank: (a) vertical; (b) horizontal} rectangle whose dimensions are: height= pixels and width= In the For-Next Loop, the 1st iteration for variable i draws a red rectangle whose upper left corner is located at Y= and X= For the following pixel color question, the choices are: Red: Green: Blue: White: Mixed Colors. Please write the color name in the blanks. The pixel color at location (10,9) is The pixel color at location (11,11) is The pixel color at location (11,14) is The pixel color at location (11,20) is The pixel color at location (12,11) is The pixel color at location (13,13) is The pixel color at location (13,13) is The pixel color at location (14,11) is The total number of red-colored pixels is Number of iterations done for the code above is The final value of intX when debugging ends is
Given the codes below, provide the answers asked for.
e.Graphics.DrawRectangle(Pens.Red,
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
11, 18, 3, 2)
e.Graphics.DrawLine (Pens.Blue, 10, 8, 10, 20)
e.Graphics.DrawLine (Pens.Blue, 11, 9, 11, 22)
Dim intX As Integer = 1
Dim inty As Integer
For i As Integer = 1.5 To 11.5 Step 1.5.
If intX >= 0 Then
End Sub
inty 3* i + 2 * intX
Else
inty = i
End If
Next
e.Graphics.DrawRectangle(Pens.Green, inty, i, 3, 2)
e.Graphics.FillRectangle (Brushes.Red, intY + 1, i + 1, 1, 1)
intX = 1.5
e.Graphics.FillRectangle(Brushes.Green, 8, 14, 3, 2)
e.Graphics.FillRectangle(Brushes.Green, 11, 11, 3, 2)
Transcribed Image Text:Given the codes below, provide the answers asked for. e.Graphics.DrawRectangle(Pens.Red, Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint 11, 18, 3, 2) e.Graphics.DrawLine (Pens.Blue, 10, 8, 10, 20) e.Graphics.DrawLine (Pens.Blue, 11, 9, 11, 22) Dim intX As Integer = 1 Dim inty As Integer For i As Integer = 1.5 To 11.5 Step 1.5. If intX >= 0 Then End Sub inty 3* i + 2 * intX Else inty = i End If Next e.Graphics.DrawRectangle(Pens.Green, inty, i, 3, 2) e.Graphics.FillRectangle (Brushes.Red, intY + 1, i + 1, 1, 1) intX = 1.5 e.Graphics.FillRectangle(Brushes.Green, 8, 14, 3, 2) e.Graphics.FillRectangle(Brushes.Green, 11, 11, 3, 2)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Methods of StringBuilder class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education