(5/5)

# Write a program to convert a letter to a number for cell phones using a function. The program asks the user to enter a letter then use a function to convert the letter into a number

INSTRUCTIONS TO CANDIDATES
1. Write a program to convert a letter to a number for cell phones using a function. The program asks the user to enter a letter then use a function to convert the letter into a number based on the figure shown in the next page. Asking the user, reading the letter, and displaying the digit is done in function main. Only the conversion is done in the function.

For Example: the user enters the letter b, then the program calls a function (you defined) and pass the letter b to the function, which converts the letter to a digit based on the above figure and returns the digit 2 to be displayed to the user.

Sample Output:

Enter a letter: b

Digit: 2

1. Write a program for checking whether a number is prime or not. The program asks the user to enter a number N then pass it to a function. The function returns 1 if N is prime, 0 otherwise. Asking the user, reading number N, and displaying whether N is prime or not is done in function main. Checking whether N is prime or not is done in a function you defined.

Sample Output:

Enter a number: 17

17 is prime

1. Write a program to read two 2D matrices in main then call a function (you defined) to find the multiplication of the two matrices and returns it back to main to be displayed.
(5/5)

## Related Questions

##### . Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

##### . The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

##### . Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

##### . SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

##### . Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Hire Me

Hire Me