Complete these functions, and implement those two programs in the language of your choice. These programs will
Fantastic news! We've Found the answer you've been seeking!
Question:
- Complete these functions, and implement those two programs in the language of your choice. These programs will be graded. Be sure to properly comment them with your name and purpose of the program as a preamble to the file, what functions are present in the file (refer to the numbers 1-4 below) , document all functions, and observe proper rules for naming of variables and indentation in the language of your choice. You should implement each of these as a function in your program, and call them from a main function in your program.
- A program to implement the toUpper and toLower. To implement these functions, you must use the bitwise AND (&) and OR (|) operators. Using addition and subtraction is not acceptable for this assignment.
- program to take a string representing a binary number, and write out the number in hex.
- program to take an integer and write its value out in hex. You cannot use string formatting, but must mask 4 bits at a time and find the value in a table (array) of hex values.
- Implement a program that converts an ASCII string of characters to an integer value. You may NOT use any standard libraries to convert the string to integer. You may use libraries for tasks like retrieving each number from the string, etc.
Java is the program language that would be good for these functions!
Related Book For
Posted Date: