Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Good morning/ evening, Can someone help me this assignment? If the work can be s

ID: 3602751 • Letter: G

Question

Good morning/ evening,

Can someone help me this assignment? If the work can be shown it will be great some can learn from my mistakes.

Thank you in advance!

I. Convert 33825 to hexadecimal and binary; 0xfeed to decimal. IL. (0x81>>3) A 125 111. What it's the power set of {a, 1, #}? V) V.C (128, 125) VI. (u+v)s VII. Define a recursion function to reverse a string. (Hint: e.g. reverse ("abc") is "cba". You can use these functions: head and tail. For example: head ("abc") is "a"; tail ("abc") is "bc") VIII. a1 7, an -4a-1. Guess a close form for an and prove by induction. I. Suppose there are two full bowls of cookies. Bowl #1 has 10 chocolate chips and 30 plain cookies, while bowl #2 has 20 of each. Our friend Fred pics a bowl at random, and then pics a cookie at random. We may assume there is no reason to believe Fred treats one bowl differently from another, likewise for the cookies. The cookies turn out to be the plain one. How probable is it that Fred picked it out of bowl #1? 3 51 [9 10 X. 17 1 L4 2

Explanation / Answer

1. 33825 = 0x8421 in hexadecimal = 1000010000100001 in binary

To convert any number from decimal to another base, use the following method :

To convert 0xfeed to decimal, multiply every digit with 16 power of digit location and then add all the multipliers.

So it will be d=13. Hence 13*100+14*101+14*102+15*103...

3. To obtain the power set, write all possible combinations of the content.

So you move from nothing to the entire set, remember that the sequence of content does not matter, so {1,2} is same as {2,1}

So the power set for {a,1,#} will include

P = {

{},

{a},{1},{#},

{a,1},{a,#},{1,#},

{a,1,#}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote