gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
The minimum wage in Chefland is 1111 dollars per hour. Given that Chef earns XX dollars…
- User
The minimum wage in Chefland is 1111 dollars per hour.
Given that Chef earns XX dollars per hour, find whether his income is strictly above the minimum wage. Input Format
The first and only line contains an integer XX, denoting the income of Chef per hour.Output Format
Output on a new line, YES, if Chef's income is strictly above the minimum wage. Otherwise, output NO.
You may print each character of the string in uppercase or lowercase (for example, the strings YES, yEs, yes, and yeS will all be treated as identical). Constraints
1≤X≤201≤X≤20Sample 1: Input Output
20
YES
Explanation:
Chef's income is 2020 dollars per hour, which is strictly higher than the minimum wage. Sample 2: Input Output
11
NO write code in java
- Assistant
import java.util.Scanner;
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in);
int chefIncome = scanner.nextInt(); if (chefIncome > 1111) { System.out.println("YES"); } else { System.out.println("NO"); } }}