- 3

I have did the solution for this code but it is showing the test case 5 is wrong and that test case is a hidden one

Your robot can recognize your emotions marked with number that represents each of them: 1 - You are happy! 2 - You are sad! 3 - You are angry! 4 - You are surprised! Write a program that takes the emotion number as input and outputs the corresponding message in given format. If the input is an emotion that the program doesn’t know, it should output: "Unknown emotion.".

9th Aug 2022, 8:12 PM
Sai Eshwar
Sai Eshwar - avatar
9 Respuestas
+ 4
Posting the same question multiple times will just piss off people.
9th Aug 2022, 8:13 PM
Bonsai
Bonsai - avatar
+ 2
Please post your code attempt, so we can see where you make mistake and help you. Reason why most people don't help you is because this kind of post look like you ask for someone to do your homework. If you don't try and fail, you wont ever learn. And you post same question multiply times, so we dont know did you get already answer. If this is sololearn challange, also tag course name, and challange name or number, so we can check this challange to get more info about it.
9th Aug 2022, 9:05 PM
PanicS
PanicS - avatar
+ 2
Sai Eshwar First be patient. Duplicate post will not get your answer solved any quicker. It will make people want to ignore you. We need more info from you. So that we can better understand the issue. So What language is the code in? What lesson number or practice is it? Please provide a copy of your attempt so that we can see where you may have went wrong.
9th Aug 2022, 9:39 PM
Chris Coder
Chris Coder - avatar
+ 1
On line 25 you have an extra space between "are surprised" System.out.print("You are surprised!"); // Bad System.out.print("You are surprised!"); // Good Remove the extra space and it should solve the issue.
10th Aug 2022, 8:43 AM
Chris Coder
Chris Coder - avatar
0
Yes but I am not getting the answer as sovled after trying multiple timed
9th Aug 2022, 8:17 PM
Sai Eshwar
Sai Eshwar - avatar
10th Aug 2022, 3:13 AM
Sai Eshwar
Sai Eshwar - avatar
0
This above one is my code which I have did and for this one it is showing the error for test case 5
10th Aug 2022, 3:14 AM
Sai Eshwar
Sai Eshwar - avatar
0
And it is a java language
10th Aug 2022, 3:14 AM
Sai Eshwar
Sai Eshwar - avatar
- 2
Yea get a paper and a pencil and a python reference manual from early 2000s and figure out python without spamming here.
9th Aug 2022, 8:46 PM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar