14 AnswersNew Answer
Ashley Stemley Kindly show us your attempt and the code coach you are doing!
You must code to meet the others test cases condition because it supposed to have a certain pattern or algorithm. If test cases are all available then the users will just easily print out the output, thats why Or is this answer different what youre looking for?
Ashley Stemley You continue building prior to test code ---To easily solve problems or challenges--- 1. Read and understand the problem's instruction first (The test cases that you can see are your guide and examples so you will have better insights about the problem) 2. Determine the problem 3. Code to solve the problem by designing patterns and algorithms so that whatever the input, your output will be the same as the expected output and Piyush[21 Dec❤️] is right, if you already have the attempt, please send it by copying the link of your code so that we can help you and give hints.
lol, thanks. ill stop worrying
i think i understand now. my one code should satisfy all the parameters. thanks
I PASSED! Thanks for your help!
how do you know what the other test cases conditions are? Do i look at the results page or do i continue building on the prior test case code?
https://sololearn.com/coach/525/?ref=app this is the instruction i get
https://sololearn.com/coach/525/?ref=app this is my code. now what do i do?
I have not yet learned java but i will try to help you. First you will assign a variable of the sum of two salaries. In Python (so that its easy to understnd) it goes like this, Salary1 = value1 Salary2 = value2 Total_Salary = value1 + value2 print(Total_Salary) I dont know how you do it in java though but in case you dont know just review the lessons and try to solve it again.
i understand the concept but dont know how to build on what ive already done. and how am i supposed to know what numbers to use for cases 2-5?
i feel like im missing a screen or something
int sum = salary1 + salary2; System.out.print(sum); #Add this code #I did some research in google so that I can help you Lol Next time you dont have to worry about the hidden test cases, theres nothing we can do about it , just focus on the problem and the available shown test cases and solve it so that it can be true whatever the input like I said earlier. Happy Coding!
Only the hidden onesl but of course those are important too as it let you know if it works everytime, if all cases are correct except one, then something is wrong about your code.