subject

In this module, you have been working with individual characters and sets of characters within strings. For this assignment, you will be creating an application that lets the user enter a 10-character telephone number in the format XXX-. Many companies use telephone numbers like 800-FLOWERS, so the number is easier for their customers to remember. On a phone, the alphabetic letters are mapped to the numbers on the keypad in the following fashion (1 & 0 have no corresponding letters):
Letter Number on Phone
A, B, C 2
D, E, F 3
G, H, I 4
J, K, L 5
M, N, O 6
P, Q, R, S 7
T, U, V 8
W, X, Y, Z 9
Your program should meet the following objectives:
The application should display the telephone number without any alphabetic characters that appeared in the original translation to their numeric equivalent. For example, if the user enters 800-FLOWERS, the application should display 800-3569377.
Make a working version of this program in C#.
Software is Visual Studio 2019 C# Windows Forms App ( A project Template Creating a. NET Windows Forms).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
What do the principles of notice, choice, onward transfer, and access closely apply to? a. privacyb. identificationc. retentiond. classification
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
Computer security/cybersecurity1) each of the following code fragments contains a number of security vulnerabilities. for each fragment, identify these security vulnerabilities and, for each vulnerability, discuss at least one way that it could be improved. note that in your discussion of how each vulnerability could be improved, you do not need to re-write a new version of the program in c; simply discuss your solution, either in pseudocode or in 1-2 sentences.a) /* file descriptor leak */#include #include int main(int argc, char *argv[]){ char *filepath = argv[0]; char *shellpath = argv[1]; file *passwords; passwords = fopen(filepath, "r"); /* read the password and do something with it */ /* . . */ /* fork and execute alternative shell */ execl(shellpath, "shell", null); }b)#include /* assume the following function is written for an electronic storefront. the user will enter the id of the item to be ordered, as well as the quantity of units that they would like to purchase. the program will then lookup the price for the price for the item using a predefined function, and return the total cost of the order.*/int gettotalcost(){ char itemid[9]; int price, unitsordered, cost; printf(" enter the 9-digit id of the item to be ordered: "); scanf("%s", & itemid); /* lookup the price according to the itemid */ price = getpricebyid(itemid); printf(" enter the quantity of units to be ordered: "); scanf("%d", & unitsordered); cost = price * unitsordered; return cost; }c)#include /* the following function is intended to return a user's full name by concatenating the user's first and last name into a single string and then returning that string. */char *getfullname(char *firstname, char *lastname, int max_len){ char fullname[max_len]; strcpy(fullname, firstname); strcat(fullname, " "); strcat(fullname, lastname); return fullname; }d)#include /* the following code snippet runs through the list of cli arguments entered and displays them to the console. */int main(int argc, char *argv[]){ int i; printf("you've entered the following arguments: "); for(i = 0; i < argc; i++){ print(argv[i]); printf("\n"); } /* */}
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
Is the process of organizing data to reduce redundancy. a. normalization b. primary keying c. specifying relationships d. duplication
Answers: 1
You know the right answer?
In this module, you have been working with individual characters and sets of characters within strin...
Questions
question
Biology, 12.10.2020 15:01
question
Mathematics, 12.10.2020 15:01
Questions on the website: 13722360