Question: So, my program is supposed to ask the user to enter the number of row and column where the shape will be and from those
So, my program is supposed to ask the user to enter the number of row and column where the shape will be and from those points, it should be able to compute that shape's area (number of grids). I have finish coding for other shapes like circle, square and rectangle but I don't know where to start with cross.
I already have the logic like I have to find the area of the 4 small rectangles, add them up and subtract it from the area of the big rectangle. But not sure, how to code it out.

14 0, 14 1, 14 2, 14 14 3, 14 4, 14 5, 14 6, 14 7, 14 13 0, 13 1, 13 2, 13 15 3, 13 4, 13 5, 13 7, 13 8, 13 9, 13 0, 13 11, 13 12, 13 13/13 14, 13 15, 13 16, 13 12 D, 12 1, 12 2, 12 3, 12 16 4, 12 5, 12 6, 12 7, 12 8, 12 9, 12 0, 12 11, 12 12. 12 13, 12 14, 12 15, 12 18, 12 11 0, 11 1, 11 2, 11 3, 11 4, 11 17 5, 11 6, 11 7, 11 8, 11 9, 11 10, 11 12 11 12, 11 13, 11 14, 11 15, 11 16, 11 10 0, 10 1, 10 2, 10 3, 10 4, 10 5, 10 6, 10 7, 10 8, 10 18 9, 10 10, 10 11, 10 12, 10 13, 10 14, 10 15, 10 16, 10 + 9 0,9 1, S 2,9 3,9 4,9 5,9 6,9 7,9 8,9 9,9 10, 9 19 11, 9 12,9 13, 9 14, 9 15, 9 16, 9 8 0,8 1, 8 2,8 3,8 4, 8 5,8 68 7,8 8,8 9,8 10, 8 11, 8 12, 8 13, 8 14, 8 15, 8 20 16, 8 7 0, 7 1, 7 2,7 3, 7 4, 7 5,7 6, 7 7,7 8,7 9, 7 10, 7 11, 7 12, 7 13, 7 14, 7 15, 7 16, 7 21 6 0,6 1,6 2,6 3,6 4,6 5,6 6,6 7,6 8,6 10, 6 11, 6 12, 6 13, 6 14, 6 15, 6 16,6 22 5 0,5 1,5 2,5 3, 5 4,5 5,5 6,5 7,5 8,5 9,5 10, 5 11, 5 12, 5 13, 5 14, 5 15,5 16, 5 23 0,4 1,4 24 3, 4 4,4 5,4 6,4 7,4 8,4 9,4 10, 4 11, 4 12, 4 13, 4 14, 4 15, 4 16 Sheet1 Sheet2 Sheet3 Sheet4 + 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
