It's good to be a programmer: your salary will grow rapidly. And if this doesn't happen, you can influence the situation with a little help from your hacker friends. Imagine that you have access to the automated payroll system. You need to write an interceptor method that will add $1000 to each salary payment.
You must be signed in to leave a comment
codewoman Frontend Developer
12 September 2022, 21:50
Oh my god, I've been here for 15 minutes, and you know where I was going wrong? instead of typing "per month" I was typing "*fer* month" and then it was just the last step haha and when I changed f = p everything went baadumpiti in my head... and sorry for my english :p but is really funny when you recognize your error in the code, and i wanted share this 😆😆
25 August 2021, 12:51
In the hackSalary method, create a new integer called x which adds 1000 to int a (salary). Then in the same method, print the ("required text but include " + yourNewInteger + "in the argument.") Don't forget correct punctuation :O
31 May 2021, 18:43
In the hackSalary method you should include one line with the output, with the text required, inserting your operation and finishing wit the other text required. Just concatenate these wit symbol '+'
18 March 2021, 07:21
It took 32 tries to realize that it didn't want println, it wanted print lol
11 April 2021, 17:38
Lord...thank you. Extremely fickle.
7 March 2021, 17:34
Couldn't work this out when I thought that it was correct. Had to get help and I'd missed the " : " got to read these questions better, silly mistake again.
16 January 2021, 12:30
Uh noo, I didn't see my mistake for a soooo long time: It was just "...per months."
12 October 2020, 18:01
Add print statement to hackSalary method and inside it concatenate a +1000
21 January 2021, 08:07
how ? i added System.out.println and i also don't get anything
25 September 2020, 04:55
I tried it 17 times even though I nearly had it right the first time. I was wondering what was wrong every time I would change something a little. Then it hit me! I forgot the Colon " : " after the " is " in the string. Your salary is: 8000 dollars per month. I kept putting it like this "Your salary is " Instead of like this "Your salary is: " If you got it wrong just check it over again in detail to make sure you did not miss anything like I did the first few times. Even a missing colon " : " can mess you up on this one.
14 September 2020, 21:06
I repeated the output 17 times, even though my output values were all correct the very first time. What did I do wrong you ask? I forgot to put the period after "month"! Attention to detail means everything, so even though you get the code and your values correct, better triple check it matches 100 % of what is being asked of you. Can't believe I missed it, lol.
15 September 2020, 19:49
Same happened to me, too 😵
25 September 2020, 04:57
kenneth payne XD I also repeated it 17 times and my problem was very similar to yours. I forgot to put a colon after "is" Yes attention to detail is very important. I posted that in my response before I read this one.
1 February 2022, 23:40
me paso! olvide poner el punto final en el texto, realmente tengo que ser mas observadora, tu comentario me hizo darme cuenta, gracias.
3 June 2020, 15:28
My results are 9000 like what they wanted. But it doesn't pass the final check The hackSalary method should increase the input parameter by 1000 and output text to the screen according to the specified template. Any help is appreciated
10 September 2020, 02:48
the 9000 is just an example, make it so that the answer is 8000 since your parameter should only increase by 1000.
17 September 2020, 00:55
when you have a = a + 1000 in your print statement just do "+(a)+ not "+(a+1000)+
24 November 2020, 21:06
this comment alone is a life saver <333