Skip to content

Mohammed A#15

Open
mohammedalfakih-dev wants to merge 4 commits intoHackYourAssignment:mainfrom
mohammedalfakih-dev:main
Open

Mohammed A#15
mohammedalfakih-dev wants to merge 4 commits intoHackYourAssignment:mainfrom
mohammedalfakih-dev:main

Conversation

@mohammedalfakih-dev
Copy link

No description provided.

@github-actions
Copy link

📝 HackYourFuture auto grade

Assignment Score: 0 / 100 ✅

Status: ✅ Passed
Minimum score to pass: 0
🧪 The auto grade is experimental and still being improved

Test Details

@remarcmij remarcmij self-assigned this Jan 29, 2026
Copy link

@remarcmij remarcmij left a comment

Choose a reason for hiding this comment

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

Hi @mohammedalfakih-dev, thanks for your PR. Task-4 needs your attention.

return normalizedTitle.includes(normalizedSearch);


}

Choose a reason for hiding this comment

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

            Make your code nice to read, 
not only for the computer, but for humans too: pay 
                                attention to proper indentation.

year: Number(third)
};
} else {
// DMY format: Day-Month-Year

Choose a reason for hiding this comment

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

That's what you hope for, but you leave it untested.


export function convertSecondsToMinutes(seconds) {
return seconds / 60;
} No newline at end of file

Choose a reason for hiding this comment

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

👍

generateWeatherReport("Amsterdam", 5, 20);
generateWeatherReport("London", 8, 15);
generateWeatherReport("New York", -2, 25);
generateWeatherReport("Tokyo", 12, 10); No newline at end of file

Choose a reason for hiding this comment

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

You did not meet this requirement from the assignment:

The refactored code should produce the same output as the original

Your code:

Weather Report for Amsterdam:
Temperature: 5C (41.0F)
Wind Speed: 20 km/h
Wind Chill: 1.1C

Weather Report for London:
Temperature: 8C (46.4F)
Wind Speed: 15 km/h
Wind Chill: 5.4C

Weather Report for New York:
Temperature: -2C (28.4F)
Wind Speed: 25 km/h
Wind Chill: -8.5C

Weather Report for Tokyo:
Temperature: 12C (53.6F)
Wind Speed: 10 km/h
Wind Chill: 11.0C

Original code:

Weather Report for Amsterdam
Temperature: 22°C
Temperature: 71.6°F
Temperature: 295.15K
Status: Warm
---
Weather Report for Berlin
Temperature: 15°C
Temperature: 59°F
Temperature: 288.15K
Status: Mild
---
Weather Report for Copenhagen
Temperature: -5°C
Temperature: 23°F
Temperature: 268.15K
Status: Freezing
---
Wind chill in Amsterdam: 22.71°C
Wind chill in Berlin: 13.69°C
Wind chill in Copenhagen: -12.34°C

@remarcmij remarcmij added the Reviewed This assignment has been reivewed by a mentor and a feedback has been provided label Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed This assignment has been reivewed by a mentor and a feedback has been provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants