Question: Need help with RAPTOR program Many websites ask for phone numbers. The problem is that there are many ways to represent a phone number. Examples

Need help with RAPTOR program
 Need help with RAPTOR program Many websites ask for phone numbers.
The problem is that there are many ways to represent a phone

Many websites ask for phone numbers. The problem is that there are many ways to represent a phone number. Examples include 817-555-1234, 817 555 1234 (c), and (817) 555-1234 x23. Write a Raptor program which inputs a string containing a phone number in any format and outputs it in a standard format. For this assignment, the standard format is (817) 555.1234. Your Raptor program should: 1. Input a string including the number 2. Copy only the digits from the input string into another string 3. Issue an error message if the input string does not contain at least 10 digits 4. If the input string contains more than 10 digits, include only the first 10 digits in the formatted number 5. Output the phone number in standard format Notes: 1. In Raptor, a string is just an array of characters. 2, Lesson #9 has an example of working with strings in Raptor. 3. When only digits are input, Raptor assumes it is an integer instead of a string. Your flowchart does not need to properly handle an input like 8175551234, but your Ct+ version does need to handle that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!