Skip to content

Remove Case 06 or Case 03 because they are similar. #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SteffenLm opened this issue Jan 18, 2023 · 1 comment
Open

Remove Case 06 or Case 03 because they are similar. #61

SteffenLm opened this issue Jan 18, 2023 · 1 comment
Assignees

Comments

@SteffenLm
Copy link
Contributor

Needs to be discussed ;)

@JSiggelkow
Copy link

JSiggelkow commented Mar 4, 2024

My Opinion

In my opinion, the requirements for Cases03 and Cases06 are exactly the same. Only the type of task and the rough framework of the requirements change. The tasks do not offer any added value or any further challenge in which you have to use new aspects of Java.

Suggestion:

You could replace one of the two tasks with a task in which you have to use the ternary operator. This would show a new way of handling cases.

Task:

Develop a simple Java program that asks the user for a year and then checks whether this year is a leap year or not. Use the ternary operator for the check.

A leap year is defined as a year that is divisible by 4. Unless the year is divisible by 100, then it must also be divisible by 400 to be a leap year.

The program should perform the following steps:

  1. Ask the user for a year.
  2. Check whether the year entered is a leap year or not.
  3. Output the result, whether it is a leap year or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants