Skip to content
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

create a calculate for employees #1284

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vShmandiuk
Copy link

No description provided.

Copy link

@MateuszRostek MateuszRostek left a comment

Choose a reason for hiding this comment

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

Good job, approved! See minor advice.

Comment on lines +34 to +36
int hours = Integer.parseInt(parts[HOUR_INDEX]);
int rate = Integer.parseInt(parts[RATE_INDEX]);
earned += hours * rate;

Choose a reason for hiding this comment

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

Suggested change
int hours = Integer.parseInt(parts[HOUR_INDEX]);
int rate = Integer.parseInt(parts[RATE_INDEX]);
earned += hours * rate;
earned += Integer.parseInt(parts[HOUR_INDEX]) * Integer.parseInt(parts[RATE_INDEX]);

Copy link
Author

Choose a reason for hiding this comment

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

I must remove 34,35,36 lines?

Copy link
Author

Choose a reason for hiding this comment

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

i do just one like this arned += Integer.parseInt(parts[HOUR_INDEX]) * Integer.parseInt(parts[RATE_INDEX]); ?

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