Skip to content

module-1 solutions added#46

Open
kornel-filep wants to merge 1 commit intoIdea-Pool:masterfrom
kornel-filep:master
Open

module-1 solutions added#46
kornel-filep wants to merge 1 commit intoIdea-Pool:masterfrom
kornel-filep:master

Conversation

@kornel-filep
Copy link

No description provided.


// ...AND THIS COMMENT LINE!
return gradeOfStudent;
return (score > 100 ? 0 : score >= 90 ? 5 : score >= 80 ? 4 : score >= 70 ? 3 : score >= 60 ? 2 : score < 0 ? 0 : 1);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I know this looks kinda horrible, but in the webinar ppt it said that try to use 1 expression to solve the classification. So here is my try.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also check how Math.ceil(), Math.min() and Math.max() are working,

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

Successfully merging this pull request may close these issues.

2 participants