Chat with us, powered by LiveChat Instructions:?? Lab #09 Flowchart Many websites ask for phone numbers. The problem is that there are many different ways to represent a phone number. Examples include 817-555-1234 | Wridemy

Instructions:?? Lab #09 Flowchart Many websites ask for phone numbers. The problem is that there are many different ways to represent a phone number. Examples include 817-555-1234

  

Lab #09 Flowchart
Many websites ask for phone numbers. The problem is that there are many different 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 the 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 C++ version does need to handle that.
4. I recommend passing the digits only string to a procedure which outputs it in the standard format.
Sample Output (inputs in bold)
Please enter a phone number: 817-555-1234
The properly formatted number is (817) 555-1234
Please enter a phone number: (817)515 7259 x23
The properly formatted number is (817) 515-7259
Please enter a phone number: 214-555-999
The phone number must have at least 10 digits
Please enter a phone number: 800**4444xxx333
The properly formatted number is (800) 444-4333

 

Lab #09 C++ 

using the flowchart for Lab #09 as a guide, write a C++ program that also inputs a phone number and displays it in the standard format, (817) 555-1234. Your program may use either C-Strings or the C++ string Class, but should not mix them. Chapter 10 has examples using both kinds of strings. 

Test your program to make sure it works properly, and then upload just the .cpp file. 

    Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

    Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

    Do you need an answer to this or any other questions?

    About Wridemy

    We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

    How It Works

    To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

    Are there Discounts?

    All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

    Hire a tutor today CLICK HERE to make your first order

    Related Tags

    Academic APA Writing College Course Discussion Management English Finance General Graduate History Information Justify Literature MLA