Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming Assignment 5 CSCi 251-Spring 2018 The international standard letterumber mapping found on the telephone is as fol ows: 1 23 7?8?9 For program 5,

image text in transcribedimage text in transcribedimage text in transcribed

Programming Assignment 5 CSCi 251-Spring 2018 The international standard letterumber mapping found on the telephone is as fol ows: 1 23 7?8?9 For program 5, you will use the number pad above to convert phone numbers using letters to actual phone numbers. For example, 1-800-OLE-MISS is actually 1-800-653-6477. Unfortunately, not al phone numbers using letters follow the xxx-xxxx format. For example, 1-800-No-Virus is va id (1-800-668-4787), but does not fol low the standard. Your input should allaw for both of these examples (HINT: check to see if the character a letter or number. Anything else ignore) nout phoneNumbe Str-String Output phoneNumberNum translated to numbers BUT stil astring-String Should be formatted as a 1-800 number-1-800-xxx-xxxx 1. Name your file PhoneNumber.m file. Include header comments (at the beginning of your Matlab fe) 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 Assignments. Due % n keeping with the Honor Code of the University of Mississippi, 1have neither % pen nor received assistance from anyone other than the instructor. % Put a program description here 2. 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- thismuch is given! Also, consider using a second variable such as phoneNumberNum, which, in the end, will be the number equivalent of phoneNumberStr- 1-800-xxxxxxx 4. In tia ze this variable to 1-800. Therefore, 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

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

Explain how program objectives may be developed.

Answered: 1 week ago

Question

3. Yesim is really supportive when other students are upset.

Answered: 1 week ago

Question

1. Organize and support your main points

Answered: 1 week ago

Question

3. Move smoothly from point to point

Answered: 1 week ago

Question

5. Develop a strong introduction, a crucial part of all speeches

Answered: 1 week ago