ANSWER BOTH QUESTIONS FOR 3000 POINTS (5 STARS) ANSWER ONE QUESTION FOR 1500 POI
ID: 3531335 • Letter: A
Question
ANSWER BOTH QUESTIONS FOR 3000 POINTS (5 STARS)
ANSWER ONE QUESTION FOR 1500 POINTS (3 STARS)
(ADD COMMENTS)
Problem #1: (40 pts)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Write an application that translates an alphabetic phone number into
a numeric number. If the phone number contains non-alphabetic characters
leave them unchanged. You are to continue to enter phone numbers until the user decides to exit the application.
Enter a phone number: out2SEA
Numeric number: 6882732
Enter a phone number: 1-800-OUT-2SEA
Numeric number: 1-800-688-2732
letters on the keys:
2 = ABC, 3 = DEF, 4 = GHI, 5 = JKL, 6 = MNO
7 = PRS, 8 = TUV, 9 = WXYZ
Pseudocode
read in characters as a string
convert lower case characters to upper case
use switch statement to convert alpha characters to numeric characters
store output numeric number in a character array -- char phoneNumber[MAXNUMBER]
then print out the phoneNumber array
Problem #2: (40 pts)
Write an application that reads in students
Explanation / Answer
//#2
http://ideone.com/aICRng
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.