Hiring a chef

Report a typo

Imagine that you are an HR manager at a restaurant and you need to hire a chef. To do that, you need to collect some preliminary data about the candidates.

You have a special form for the candidates that includes 3 fields: first name, years of experience and cuisine preference.

Your program should read all the words (or numbers) from the three lines and output "The form for first name is completed. We will contact you if we need a chef who cooks cuisine preference dishes and has years of experience years of experience."

Pay attention to the output format, you need to match the spacing.

Sample Input 1:

Eugene
fusion
8

Sample Output 1:

The form for Eugene is completed. We will contact you if we need a chef who cooks fusion dishes and has 8 years of experience.
Write a program in Java 17
import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// start coding here

sc.close();
}
}
___

Create a free account to access the full topic