Skip to content

If You Don't Mind - Grading #4

@Makillya

Description

@Makillya

This code runs.

Since you've already set 'HOURS' to '7', you can simply add 1 to increment to the next hour. By hard coding '9' you're jumping ahead 2 hours.

Instead of setting strings to 2 separate variables of 'morning' and 'evening' and then setting a 3rd variable, 'day', equal to one of them you can simplify. Eliminate 'morning' and 'evening' entirely and instead, simply set 'day' equal to the desired string when you're declaring it in the if/else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions