Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The assignment will start with your Park ID Number. Convert this number to a binary number. Show the procedure followed to get your result (
The assignment will start with your Park ID Number. Convert this number to a binary number. Show the procedure followed to get your result point
Show how the binary number obtained in will be represented in RAM as an unsigned long, an unsigned int, and unsigned short. If these formats are too small to represent your number, show the digits that will be discarded next and to the left of the digits inside the format. Clearly differentiate the included and noincluded digits point
Write a secure piece of code that will convert the unsigned long obtained in onto an unsigned char. Trace the code with your id number point
Write a secure piece of code that will convert the unsigned int obtained in onto a signed int. Trace the code with your id number point
Show how the negation of the binary number obtained in will be represented in RAM as a signed int using twocomplements format. Show the procedure followed to get your result point
Show how the signed int obtained in will be represented as a signed char if the conversion is forced. Indicate also which number it will represent in the decimal system. Show the procedure followed to get your results point
Show the effect of leftshifting on the unsigned short number obtained in Apply leftshifting five times to this number and in each time show its RAM representation and its decimal value.
Show the effect of rightshifting on the unsigned short number obtained in Apply rightshifting five times to this number and in each time show its RAM representation and its decimal value.
Show how the integer binary number obtained in will be represented in memory if stored in a float variable using the IEEE standard. Show the procedure followed to get your result point
Select any of the mathematical functions in h that have domain restrictions and write a secure piece of code to apply this function to a float variable. Trace what your code will do on the number obtained in and show the final result. point
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