Question: Question 2: Where's Waldo (10.0 marks) For the second question of this assignment, you will design and write a program in Haskell that will load
Question 2: "Where's Waldo" (10.0 marks) For the second question of this assignment, you will design and write a program in Haskell that will load two bitmap images, convert them to ASCII art using the code you wrote for question 1, and then determine whether or not the second image appears in the first one and, if it does, provide the co-ordinates. As a clarifying example, the sample_image_to_search.bmp file provided could be represented in ASCII art as follows:

Question 2: "Where's Waldo" (10.0 marks) For the second question of this assignment, you will design and write a program in Haskell that will load two bitmap images, convert them to ASCII art using the code you wrote for question 1, and then determine whether or not the second image appears in the first one and, if it does, provide the co-ordinates. As a clarifying example, the sample_image_to_search.bmp file provided could be represented in ASCII art as follows: EI Were you to also load "sample_image_to_find. bmp" and convert that to ASCII art using the same palette, then if you were to search the former image for the latter image your program should report that the "sample_image_to_find.bmp" was found at (252, 107) in "sample_image_to_search.bmp". If you were to name this function bar (and were still using the name foo for the function you wrote for question 1), you would call your searching function using the following syntax. bar (foo"" True (LoadBitmap "sample image to search.bmp) (foo" True CLoadBitmap "sample_image_to find.bmp n.b, You are expected to use meaningful function names in your submission. Do not use the names foo and bar. Furthermore, as was the case in the previous question, with the exception of the fromIntegral and round functions, you may not use any built-in functions to complete this assignment Question 2: "Where's Waldo" (10.0 marks) For the second question of this assignment, you will design and write a program in Haskell that will load two bitmap images, convert them to ASCII art using the code you wrote for question 1, and then determine whether or not the second image appears in the first one and, if it does, provide the co-ordinates. As a clarifying example, the sample_image_to_search.bmp file provided could be represented in ASCII art as follows: EI Were you to also load "sample_image_to_find. bmp" and convert that to ASCII art using the same palette, then if you were to search the former image for the latter image your program should report that the "sample_image_to_find.bmp" was found at (252, 107) in "sample_image_to_search.bmp". If you were to name this function bar (and were still using the name foo for the function you wrote for question 1), you would call your searching function using the following syntax. bar (foo"" True (LoadBitmap "sample image to search.bmp) (foo" True CLoadBitmap "sample_image_to find.bmp n.b, You are expected to use meaningful function names in your submission. Do not use the names foo and bar. Furthermore, as was the case in the previous question, with the exception of the fromIntegral and round functions, you may not use any built-in functions to complete this assignment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
