Question: Examine the code below. The variable 'age' is initially set to 0 and then set to the age entered into the agelnput's text input box.

Examine the code below. The variable 'age' is initially set to 0 and then set to the age entered into the agelnput's text input box.
What is displayed in the resultLabel's text after the 'submitButton' is clicked assuming the agelnput's text is 21?
initialize app variable age to 0
when submitButton * Click
do
app variable age
16
do set resultLabel grad 's Text grad to C You are old enough to drive. "?
do set resultLabel grad 's Text grad to C You are old enough to vote.
app variable age
25
do set resultLabel grad 's Text grad to C You can rent a car without restrictions.
You are old enough to drive.
You are too young to drive.
You can rent a car without restrictions.
You can run for president.
You are old enough to vote.
 Examine the code below. The variable 'age' is initially set to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!