C Programming
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
ANSWER ALL QUESTIONS
- 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
- 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
- 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.
Related Questions
. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java
CS 340 Milestone One Guidelines and Rubric
Overview: For this assignment, you will implement the fundamental operations of create, read, update,
. 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
Retail Transaction Programming Project
Project Requirements:
Develop a program to emulate a purchase transaction at a retail store. This
. The following program contains five errors. Identify the errors and fix them
7COM1028
Secure Systems Programming
Referral Coursework: Secure
. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer
CS 340 Final Project Guidelines and Rubric
Overview The final project will encompass developing a web service using a software stack and impleme