Draw the following code on the grid provided. Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint e.Graphics.DrawRectangle(Pens.Red, e.Graphics.DrawLine(Pens.Blue, e.Graphics.DrawLine(Pens.Blue, Dim intX As Integer - 1 Dim inty As Integer 11, 18, 3, 2) 10, 8, 10, 20) 11, 9, 11, 22) For 1 As Integer 1.5 To 11.5 Step 1.5 If intx> Then Else End If inty 3 1 + 2 * intx inty 1
Draw the following code on the grid provided. Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint e.Graphics.DrawRectangle(Pens.Red, e.Graphics.DrawLine(Pens.Blue, e.Graphics.DrawLine(Pens.Blue, Dim intX As Integer - 1 Dim inty As Integer 11, 18, 3, 2) 10, 8, 10, 20) 11, 9, 11, 22) For 1 As Integer 1.5 To 11.5 Step 1.5 If intx> Then Else End If inty 3 1 + 2 * intx inty 1
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
Related questions
Question

Transcribed Image Text:Draw the following code on the grid provided.
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
11, 18, 3, 2)
e.Graphics.DrawRectangle(Pens.Red,
e.Graphics.DrawLine(Pens.Blue,
e.Graphics.DrawLine(Pens.Blue,
Dim intX As Integer 1
Dim inty As Integer
For i As Integer - 1.5 To 11.5 Step 1.5
If intx> Then
inty
Else
End If
End Sub
Next
e.Graphics.DrawRectangle(Pens.Green,
e.Graphics.FillRectangle(Brushes.Red,
intx -- 1.5
e.Graphics.FillRectangle(Brushes.Green,
e.Graphics.FillRectangle(Brushes.Green,
Example:
a
.
6
4
T
.
"
12
13
14
16
inty i
14
17
19
3* 1 + 2 * intx
20
2
10,
8, 10, 20)
11, 9, 11, 22)
.
1
22
29
24
Figure 1 Result if Done in Excel
10
intY, 1, 3, 2)
intY + 1, i + 1, 1, 1)
8, 14, 3, 2)
11, 11, 3, 2)
.
4

Transcribed Image Text:0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
0 1
2
3
4
5
6
7
8
9
10
11
12 13
14
15
16
17
18
19
20
21
22
23
24
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

Knowledge Booster
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.Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education