Invitation to Computer Science 8th Edition

Published by Cengage Learning
ISBN 10: 1337561916
ISBN 13: 978-1-33756-191-4

Chapter 2 - 2.4 - Conclusion - Practice Problems - Page 85: 1

Answer

a. NUMBER = (771) 921-5281 i$\ \ \ \ \ $Operation$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $ Found 1$\ \ \ \ $Compare (771) 921-5281 to $T_{1}$, (648) 555-1285. No match.$\ \ \ \ \ \ \ $ No 2$\ \ \ \ $Compare (771) 921-5281 to $T_{2}$, (247) 834-6543. No match.$\ \ \ \ \ \ \ $ No 3$\ \ \ \ $Compare (771) 921-5281 to $T_{3}$, (771) 921-5281. Match.$\ \ \ \ $$\ \ \ \ \ \ \ \ $ Yes Output = Adams --- b. NUMBER = (488) 351-1673 i$\ \ \ \ \ $Operation$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ $Found 1$\ \ \ \ $Compare (488) 351-1673 to $T_{1}$, (648) 555-1285. No match.$\ \ \ \ \ \ $ No 2$\ \ \ \ $Compare (488) 351-1673 to $T_{2}$, (247) 834-6543. No match.$\ \ \ \ \ \ $ No 3$\ \ \ \ $Compare (488) 351-1673 to $T_{3}$, (771) 921-5281. No match.$\ \ \ \ \ \ $ No 4$\ \ \ \ $Compare (488) 351-1673 to $T_{4}$, (356) 327-8900. No match.$\ \ \ \ \ \ $ No Output = ‘Sorry, this number is not in the directory’

Work Step by Step

a. NUMBER = (771) 921-5281 i$\ \ \ \ \ $Operation$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $ Found 1$\ \ \ \ $Compare (771) 921-5281 to $T_{1}$, (648) 555-1285. No match.$\ \ \ \ \ \ \ $ No 2$\ \ \ \ $Compare (771) 921-5281 to $T_{2}$, (247) 834-6543. No match.$\ \ \ \ \ \ \ $ No 3$\ \ \ \ $Compare (771) 921-5281 to $T_{3}$, (771) 921-5281. Match.$\ \ \ \ $$\ \ \ \ \ \ \ \ $ Yes Output = Adams --- b. NUMBER = (488) 351-1673 i$\ \ \ \ \ $Operation$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ \ $$\ \ \ $Found 1$\ \ \ \ $Compare (488) 351-1673 to $T_{1}$, (648) 555-1285. No match.$\ \ \ \ \ \ $ No 2$\ \ \ \ $Compare (488) 351-1673 to $T_{2}$, (247) 834-6543. No match.$\ \ \ \ \ \ $ No 3$\ \ \ \ $Compare (488) 351-1673 to $T_{3}$, (771) 921-5281. No match.$\ \ \ \ \ \ $ No 4$\ \ \ \ $Compare (488) 351-1673 to $T_{4}$, (356) 327-8900. No match.$\ \ \ \ \ \ $ No Output = ‘Sorry, this number is not in the directory’
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.