Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Describe the disciplinary action process.

Answered: 1 week ago