Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Word (Unlicensed Products ON Layout References Mailings mohamed belken Review View Help Tell me what you want to ESET 220 - Microprocessor Systems Homework #2
Word (Unlicensed Products ON Layout References Mailings mohamed belken Review View Help Tell me what you want to ESET 220 - Microprocessor Systems Homework #2 - Basic C/C++ Programming - Functions and Bitwise operators Background Reading Go to www.cplusplus.com, and open the Tutorials tab. Under there open the C++ Language tab. Review the two sections Basics of C++ and Program Structure. I strongly recommend using Visual C++ to work through some of the examples they give. Review Lecture #3 on Bb. The cplusplus site refers to subroutines as Functions, btw. I will try to be consistent with that terminology. Assigned: February 4, 2020 Due: Sunday, February 9, 2020 by midnight Program #1 - Functions Modify Homework #1, Program #2 to do three separate averages by calling an averaging function named numavg(). Display the average each time. Program #2 - Bitwise operations in Hex Program #2 - Bitwise operations in Hex a) Take two hex numbers - OX9A and OXF2. Perform and display the following bitwise operations and have the result sent to the screen: a. NOT (each number) b. AND c. OR d. XOR b) Create an accurate 2's complement subtraction of Ox77 - Ox5B by a. NOT the OX5B b. Add 1 to it C. Add to 0X77 d. Display the solution c) Repeat part (b) for the subtraction of OX58-0X77. Keep in mind you will need to convert the final answer back to see if it is correct
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started