1. Write a header with an appropriate return type and parameters. 2. Write the body with curly braces. 3. Declare a variable that matches the return type and initialize it with a placeholder value. 4. Return that variable.
Help me solve this problem
Multiple Choice & Some Date Fashion
When writing methods, always write the method skeleton first and make sure it compiles.
1. Write a header with an appropriate return type and parameters.
2. Write the body with curly braces.
3. Declare a variable that matches the return type and initialize it with a placeholder value.
4. Return that variable.
With practice, these
Practice these steps and then solve the DateFashion problem using sequential if statements along with the return statement. The idea is to get more practice with multi-branch logic. Therefore, don't use any of the binary Boolean operators like && or ||. You may use the Boolean not operator (!).
https://codecheck.it/files/1810031754ckr22amvk7fr6jtdrtqgrmqle
Step by step
Solved in 3 steps with 1 images