Question: write java program..algotitem and solve problems Exercise#4: Zineb would like to add a window on the wall in her room. Since you are taking CSBPI

 write java program..algotitem and solve problems Exercise#4: Zineb would like to

write java program..algotitem and solve problems

Exercise#4: Zineb would like to add a window on the wall in her room. Since you are taking CSBPI 19, her father asked you to figure out the largest window she can have on her wall. To have a window on the wall, there must be a minimum distance between the wall perimeter and the window perimeter for the wall to hold the window; otherwise, the entire structure collapses. So given the width and height of a rectangular wall and the window-border gap (minimum distance required between the perimeter of the wall and the perimeter of the window), determine the area of the largest rectangular window that can be installed on the wall. If it is not possible to install a window, output 0 (zero). Sample InputSample Output 40 25 5 30 20 12 30 20 50 999 888 7 450 0 860890

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!