2. Randomly generate an integer umber in range [100, 999]. (a) Check if this number is even or odd, display message "[number] is an even number" or "[number] is an odd number". For example, if the number is 10, display message “10 is an even number". (b) Check if this number is divisible by 7 and 11. Display message showing result. (c) Check if this number is divisible by 9 or 13. Display message showing result. (d) Check if this number is divisible by 5 or 12, but not both. Display result

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter4: The Selection Structure
Section: Chapter Questions
Problem 2MQ2
icon
Related questions
Question
2. Randomly generate an integer number in range [100, 999].
(a) Check if this number is even or odd, display message “[number] is an even
number" or “[number] is an odd number". For example, if the number is 10,
display message “10 is an even number".
(b) Check if this number is divisible by 7 and 11. Display message showing result.
(c) Check if this number is divisible by 9 or 13. Display message showing result.
(d) Check if this number is divisible by 5 or 12, but not both. Display result
Transcribed Image Text:2. Randomly generate an integer number in range [100, 999]. (a) Check if this number is even or odd, display message “[number] is an even number" or “[number] is an odd number". For example, if the number is 10, display message “10 is an even number". (b) Check if this number is divisible by 7 and 11. Display message showing result. (c) Check if this number is divisible by 9 or 13. Display message showing result. (d) Check if this number is divisible by 5 or 12, but not both. Display result
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT