Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java help 1. Choose 2 of the following 4 functions and implement those two programs in the language of your choice. Be sure to properly

Java help
image text in transcribed
1. Choose 2 of the following 4 functions and implement those two programs in the language of your choice. 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. 1. A program to implement the toUpper and toLower. To implement these functions, you must use the bitwise AND (\&) and OR (I) operators. Using addition and subtraction is not acceptable for this assignment. 2. Write a program to take a string representing a binary number and write out the number in hex. 3. Write a 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. 4. 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions