Could somebody help me out with question #1c from last years AP Computer Science AB Test? I would describe it, but it would be easier just to go to it at:
http://cbweb2s.collegeboard.org/ap/p...psci_ab_01.pdf
Thanks
Printable View
Could somebody help me out with question #1c from last years AP Computer Science AB Test? I would describe it, but it would be easier just to go to it at:
http://cbweb2s.collegeboard.org/ap/p...psci_ab_01.pdf
Thanks
I am also going to take the AP CS test on Thursday and am willing to explain the Enlarge function. But first I need to know what it is that you don't understand. Do you want an actual sourcecode answer (I'd have to make it up for you) or do you need to understand the basic concept?
All they're doing is just imitating what an extremely simple graphic editor would do.
If I knew the basic concept, I could manage to make the source code from there.
Do you understand how they're stretching the 'pixels' (numbers) in the array? It works just like a simple image manipulator. You have to interpolate for pixels that don't really exist. This will stretch the picture to fit a different size. The Enlarge function is using 'lossy' expansion - meaning that you're loosing pixels towards the right of the picture. Does that help at all?
im also taking the test this week
good luck :)
It does, Thanks for the help!