Quiz

Introduction:
Q1. You are given an three image files (orig.png, message.png and empty.png). orig.png is original and message.png is a copy of the original but containing a message. write a function getHiddenMessage(orig,hidden,empty) that finds the hidden message in the hidden image by comparing it with original and then writes the hidden message to the empty file. Hint: The message is contained in pixels that are different.

Q2. You are given another file textMessage.png. This contains a text message instead of graphical message. The message is coded in the difference of red, green and blue values. The sum of the difference (between pixels of the textMessage.png and orig.png) of the three colors(red, green and blue) gives the code of the character hidden in the pixel.
Use getRed(pixel), getGreen(pixel), getBlue(pixel), from both images. Write a function getTextMessage(orig, hidden) that calculates the difference between the two red, green and blue and then sum all the differences. Then uses chr(value) function to extract the character. And finally returns the whole text message as a string.

Is this question part of your Assignment?

We can help

Our aim is to help you get A+ grades on your Coursework.

We handle assignments in a multiplicity of subject areas including Admission Essays, General Essays, Case Studies, Coursework, Dissertations, Editing, Research Papers, and Research proposals

Header Button Label: Get Started NowGet Started Header Button Label: View writing samplesView writing samples