Problem 3: Create a program that takes 11 digits as input and checks whether what network does it belong. Note that the first 2 digits must start 09 and followed by a 2 key-digits. Network Key-digits Smart 13, 14, 20, 21, 28, 29, 30 TNT 09, 09, 10, 11, 12, 18, 19 Sun 22, 23, 32, 33 Globe 15, 16, 17, 25, 26, 27 03, 04, 05, 06, 07 01, 02, 24 TM Red Dito 91, 92, 93, 94, 95, 96, 97, 98 Sample Output Enter a mobile number: 0906 333 9104 The network of the mobile number is TM

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 4PE
icon
Related questions
Question
100%

Create a Python program to solve this problem.

Problem 3:
Create a program that takes 11 digits as input and checks whether what network does it
belong. Note that the first 2 digits must start 09 and followed by a 2 key-digits.
Network
Key-digits
Smart
13, 14, 20, 21, 28, 29, 30
TNT
09, 09, 10, 11, 12, 18, 19
Sun
22, 23, 32, 33
Globe
15, 16, 17, 25, 26, 27
03, 04, 05, 06, 07
01, 02, 24
TM
Red
Dito
91, 92, 93, 94, 95, 96, 97, 98
Sample Output
Enter a mobile number: 0906 333 9104
The network of the mobile number is TM
Transcribed Image Text:Problem 3: Create a program that takes 11 digits as input and checks whether what network does it belong. Note that the first 2 digits must start 09 and followed by a 2 key-digits. Network Key-digits Smart 13, 14, 20, 21, 28, 29, 30 TNT 09, 09, 10, 11, 12, 18, 19 Sun 22, 23, 32, 33 Globe 15, 16, 17, 25, 26, 27 03, 04, 05, 06, 07 01, 02, 24 TM Red Dito 91, 92, 93, 94, 95, 96, 97, 98 Sample Output Enter a mobile number: 0906 333 9104 The network of the mobile number is TM
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT