Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Introduction: The international standard letterumber mapping found on the telephone is as follows: 123 GHI JKL MNO 4 5 6 ABC YDEF PORSY TW 8

image text in transcribed
image text in transcribed
Introduction: The international standard letterumber mapping found on the telephone is as follows: 123 GHI JKL MNO 4 5 6 ABC YDEF PORSY TW 8 For program 5, you will use the number pad above to convert phone numbers using letters to actual phone numbers. using letters follow the xx-xoox format. For example, 1-800-No-Virus is valid (1-800-668-4787), but does not follow the standard. Your input should allow for both of these examples (HINT: check to see if the character is a letter or number. Anything else ignore). For example, 1-800-OLE-MISS is actually 1-800-653-6477. Unfortunately, not all phone numbers Kenver tiaput to lowcasePuppercase 12 '-122 or 51 phoneNumberStr-String Output: phoneNumberNum translated to numbers BUT still a string-String Should be formatted as a 1-800 number -1-800-x00x-x000x ame your file PhoneNumber.m file. Include header comments (at the beginning of your Matlab file) formatted as shown below, using your name and student ID, etc. instead. Your electronic submission of the program file will represent your endorsement of the Honor Code Statement. % CSCI 251, Section X %Jane Doe % Student ID 12345678 % Programming Assignment 5, Due % In keeping with the Honor Code of the University of Mississippi, I have neither % given nor received assistance from anyone other than the instructor % Put a program description here Before each significant step, provide a comment explaining the step (do not comment every line of code). The input is a String (convert to lowercase) and you MUST use a for-loop to step through. Consider naming your variable something like phoneNumberStr. NOTE: you will NOT enter 1-800 this much is given! Also, consider using a second variable such as phoneNumberNum, which, in the end, will be the number equivalent of phoneNumberStr-1-800-xx00000x 2. 3. 4. ,you already have this prefix set up for your output

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_2

Step: 3

blur-text-image_3

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

How does a horizontal spread exploit time-decay of options?

Answered: 1 week ago

Question

=+ What graphics could stop the viewer?

Answered: 1 week ago