In this assignment, the number of pixels along X/Y matches the width/height given right? So we don't have to do width divided by number of pixels X when calculating coordinates.
Please write your code for the general case here. i.e., your program should be able to work such that if width/height changes, the image plane will change accordingly (and print out a corresponding image).
In this assignment, the number of pixels along X/Y matches the width/height given right? So we don't have to do width divided by number of pixels X when calculating coordinates.