Lab Assignment 4-Conditional, Loop and Object using ActionScript 3 First, create two variables, as an integer and 'num1' as a Number. Assign 'num1 = 10.5'. Next, create a for loop that use the '' variable that start at 10, decreasing by one, and stop when '1> 0'. Inside the for loop, there are TWO statements. Write the first statement that trace out the '' on every loop. Make a second statement inside the for loop using if condition. The if will trigger when 'i==5' and inside the if statement, a calculation where num1 is multiply by π (hint used Math class), and then trace out the 'num1' inside the if statement. Afterward, close the for loop. Then below the for loon create a Custom Obiect name 'myObiect' Set up the obiect with two

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
Make sure you got the output the same as below.
Quput Panel:
Countdown: 10
Countdown: 9
Countdown: 8
Countdown: 7
Countdown: 6
Countdown: 5
32.98672286269283
Countdown: 4
Countdown: 3
Countdown: 2
Countdown: 1
myObject.result = 32.98672286269283
mxObiect.count = 0
Transcribed Image Text:Make sure you got the output the same as below. Quput Panel: Countdown: 10 Countdown: 9 Countdown: 8 Countdown: 7 Countdown: 6 Countdown: 5 32.98672286269283 Countdown: 4 Countdown: 3 Countdown: 2 Countdown: 1 myObject.result = 32.98672286269283 mxObiect.count = 0
Lab Assignment 4 - Conditional, Loop and Object using ActionScript 3
First, create two variables, " as an integer and 'num1' as a Number. Assign 'num1 = 10.5'. Next,
create a for loop that use the 'i' variable that start at 10, decreasing by one, and stop when 'i> 0'.
Inside the for loop, there are TWO statements. Write the first statement that trace out the on
every loop.
Make a second statement inside the for loop using if condition. The if will trigger when 'i==5' and
inside the if statement, a calculation where num1 is multiply by (hint used Math class), and then
trace out the 'num1' inside the if statement. Afterward, close the for loop.
Then, below the for loop, create a Custom Object name 'myObject'. Set up the object with two
properties that are assigned with -> {counti, result:num1}.
Afterward, create another for loop that will go through your custom object and trace out the object
variable name, the properties name and the property's value (refer the Output panel below).
Make sure you got the output the same as below.
Transcribed Image Text:Lab Assignment 4 - Conditional, Loop and Object using ActionScript 3 First, create two variables, " as an integer and 'num1' as a Number. Assign 'num1 = 10.5'. Next, create a for loop that use the 'i' variable that start at 10, decreasing by one, and stop when 'i> 0'. Inside the for loop, there are TWO statements. Write the first statement that trace out the on every loop. Make a second statement inside the for loop using if condition. The if will trigger when 'i==5' and inside the if statement, a calculation where num1 is multiply by (hint used Math class), and then trace out the 'num1' inside the if statement. Afterward, close the for loop. Then, below the for loop, create a Custom Object name 'myObject'. Set up the object with two properties that are assigned with -> {counti, result:num1}. Afterward, create another for loop that will go through your custom object and trace out the object variable name, the properties name and the property's value (refer the Output panel below). Make sure you got the output the same as below.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Basics of loop
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