0% found this document useful (0 votes)
53 views3 pages

Math and String Programming Exercises

The document outlines three programming exercises related to Math and Strings. The tasks include finding the Unicode of a character, mapping letters to numbers based on telephone keypads, and validating a Social Security number format. Each exercise requires user input and provides sample runs for clarity.

Uploaded by

Bito Chung
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views3 pages

Math and String Programming Exercises

The document outlines three programming exercises related to Math and Strings. The tasks include finding the Unicode of a character, mapping letters to numbers based on telephone keypads, and validating a Social Security number format. Each exercise requires user input and provides sample runs for clarity.

Uploaded by

Bito Chung
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Thực hành 3 – Math & String

1.
2.

3. (Find the Unicode of a character) Write a program that receives a character and displays its
Unicode. Here is a sample run:

4. (Phone key pads) The international standard letter/number mapping found on the telephone is
shown below:
Write a program that prompts the user to enter a letter and displays its corresponding number.
5. (Check SSN) Write a program that prompts the user to enter a Social Security number in the
format DDD-DD-DDDD, where D is a digit. Your program should check whether the input is valid.
Here are sample runs:

6.

You might also like