+ 1

Incorrect expected output on project

In the Intermediate JavaScript course, this exercise has the incorrect expected output (Store Manager with Arrays in Intermediate JavaScript Course). I asked the AI and it verified my code is correct. Can someone verify my solution is correct and if it is how do I share feedback with the SoloLearn team? https://sololearn.com/compiler-playground/ciJ3cfa27XKU/?ref=app From test case Test Case #1 Input 9 Your Output [ 107.8991, 16.568, 21.8, 1118.3400000000001 ] Expected Output [ 107.99, 24.2, 29, 1035 ]

1st Jan 2024, 6:35 AM
Matthew
2 Respuestas
+ 2
Your code appears to be correctly calculating the new prices after applying the specified percentage increase. If the output doesn't match the expected result, double-check the exercise instructions and the provided test cases to ensure your interpretation aligns with the requirements. If you still believe your solution is correct, consider reaching out to SoloLearn support for further assistance via info@sololearn.com
1st Jan 2024, 6:48 AM
卂ㄚㄩ丂卄
卂ㄚㄩ丂卄 - avatar
0
Matthew Problem is with your solution. You are calculating percentage and multiplying with each value of the given array which is wrong. Read the instructions again, you just have to add input in each value of the given array, you don't need to calculate percentage then add.
1st Jan 2024, 8:52 AM
A͢J
A͢J - avatar