+ 2
Primitive primitive operators
Iām trying to do the test cases but Iām only seeing sample values for test case #1. What am I supposed to use as input values for the rest of the cases?
15 Respostas
+ 4
Ashley Stemley
Kindly show us your attempt and the code coach you are doing!
+ 1
i think i understand now. my one code should satisfy all the parameters. thanks
0
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?
0
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?
0
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.
0
lol, thanks. ill stop worrying
0
I PASSED! Thanks for your help!
- 1
https://sololearn.com/coach/525/?ref=app
this is the instruction i get
- 1
https://sololearn.com/coach/525/?ref=app
this is my code.
now what do i do?
- 1
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.
- 1
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?
- 1
i feel like im missing a screen or something
- 1
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!
- 1
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.
- 1
I still have issues with solving for the other test cases