1. Use the following selection structure to answer the next three questions: If intNumber<= 100 Then intNumber = intNumber * 2 Elself intNumber> 500 Then intNumber = intNumber * 3 Else intNumber = intNumber End If 1. Assume intNumber initially contains 500. What value intNumber will contain after the above selection structure is executed?

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter4: The Selection Structure
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question
1. Use the following selection structure to answer the next three questions:
If intNumber<= 100 Then
intNumber = intNumber * 2
Elself
intNumber> 500 Then
intNumber = intNumber * 3
Else
intNumber = intNumber
End If
1. Assume intNumber initially contains 500. What value intNumber will contain
after the above selection structure is executed?
Answer
Transcribed Image Text:1. Use the following selection structure to answer the next three questions: If intNumber<= 100 Then intNumber = intNumber * 2 Elself intNumber> 500 Then intNumber = intNumber * 3 Else intNumber = intNumber End If 1. Assume intNumber initially contains 500. What value intNumber will contain after the above selection structure is executed? Answer
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Mathematical functions
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
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage