008-003-002
Method Call Chain: Recipe Steps
Easy
Problem Description
Method Call Chain: Recipe Steps
Learning Objective: Call other methods from method
Create program displaying cooking steps. Call multiple step methods from cook method to display recipe.
Input
Line 1: Dish name (string)
Output
Making [dish]
1. Prepare ingredients
2. Start cooking
3. Plate up
Complete!
Test Cases
※ Output examples follow programming industry standards
Input:
Curry
Expected Output:
Making Curry 1. Prepare ingredients 2. Start cooking 3. Plate up Complete!
Input:
Pasta
Expected Output:
Making Pasta 1. Prepare ingredients 2. Start cooking 3. Plate up Complete!
Input:
A
Expected Output:
Making A 1. Prepare ingredients 2. Start cooking 3. Plate up Complete!
❌ Some tests failed
Your Solution
Current Mode:● My Code
99
1
2
3
4
5
6
7
8
9
10
›
⌄
⌄
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here
sc.close();
}
}
0 B / 5 MB
You have 9 free executions remaining
