Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could someone explain this? You may do this assignment in Java or C. I'll be more impressed if you do it in C. Write three

Could someone explain this?

image text in transcribed

You may do this assignment in Java or C. I'll be more impressed if you do it in C. Write three methods or functions; if you use functions in C, make sure each function is in a separate file. M/F 1 should take a character and convert it to upper case using bitwise operators. (We went over a method for this in class.) M/F 2 should take a character and convert it to lower case. Demonstrate the running of M/F 1 and 2 by processing the string "Hello bitWise" one character at a time and printing the result (in other words, your code should build a new String character by character from the old one by using the upper and lower-case functions/methods). This assignment will be easier in C due to the simpler nature of the C character over the Java char. M/F 3 should take an int as a parameter, and return that int times 65, using bitwise operators to accomplish the task. Bonus if you check for overflow. Run this code using 101,-101, and 1,000,000,000, printing the result each time. You must submit all code, and proof that it ran

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

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

What is helping you move forward?

Answered: 1 week ago