-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProblem1.java
More file actions
30 lines (26 loc) · 1.01 KB
/
Problem1.java
File metadata and controls
30 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Problem 1
*
* Your school has provided you with a laptop computer!
* However, they insist on putting a laptop sticker with their logo on your new computer.
* That sticker might be very large, and it can’t be rotated! Will it fit, with one centimeter to spare on all sides?
*
* Input
* The single line of input contains four integers: wc, hc, ws and hs where (1 <= wc,hc,ws,hs<=1000):
* wc is the width of your new laptop computer,
* hc is the height of your new laptop computer,
* ws is the width of the laptop sticker, and
* hs is the height of the laptop sticker. All measurements are in centimeters.
*
* Output
* Output a boolean, which is:
* True if the laptop sticker will fit on your new laptop computer, without rotating, but with one centimeter space on all sides
* False if the laptop sticker won’t fit.
*
*/
public class Problem1 {
public static boolean stickerCheck(int wc, int hc, int ws, int hs) {
boolean stickerFit = false;
return stickerFit;
}
}