Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use python to write it Problem Jl: Telemarketer or not? Problem Deseription Here at the Concerned Citizens of Commerce (COCL we have noted that

please use python to write it image text in transcribed
Problem Jl: Telemarketer or not? Problem Deseription Here at the Concerned Citizens of Commerce (COCL we have noted that telemarketers like to use seven-digit phone numbers where the last four digits have three properties. Looking just at the last four digits, these properties are the first of these four digits is an 8 or 9 the last digit is an 8 or9 e the second and third digits are the same. For example, if the last four digits of the telephone number are 8229, 8338, or 9008, these are telemarketer numbers. Write a program to decide if a telephone number is a telemarketer number or not, based on the last four digits. If the number is not a telemarketer number, we should ans wer the phone, and otherwise, we should ignore it. Input Specification The input will be 4 lines where each line contains exacdy one digit in the range from 0 to 9 Output Specification Output either ignore if the number matches the pattem for a telemarketer number; otherwise, output answer Sample Input Output for Sample Input 1 ignore Explanation of Output for Sample Input1 The first digit is 9, the last digit is 8, and the second and third digit are both 6, so this is a telemar- keter number. Sample Input 2 Version franaise sont aprs la version anglaise

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is human nature?

Answered: 1 week ago