You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ch 16 ex 10(b). The formula for finding the center coordinates of (struct rectangle) r must be the midpoint formula NOT the average length between the coordinates
#135
Open
MKing8992 opened this issue
Dec 11, 2024
· 1 comment
(b) Compute the center of r, returning it as point value. If either the x or y coordinate of the center isn't an integer, store its truncated value in the point structure
Sorry. Still learning the ins and outs. I don't know if posting this was necessary or out. I have made a pull request for the problem mentioned here.
MKing8992
changed the title
The correct mathematical formula for finding the center coordinates of (struct rectangle) r must be the midpoint formula NOT the average length between the coordinates
Ch 16 ex 10(b). The formula for finding the center coordinates of (struct rectangle) r must be the midpoint formula NOT the average length between the coordinates
Dec 11, 2024
Hello. Excited to contribute! This should be a really easy fix!
Prompt for chapter 16 exercise 10(b):
Current solution:
With the midpoint formula in mind the correct usage is:
The text was updated successfully, but these errors were encountered: