Primitive primitive operators | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

5th Dec 2020, 3:36 AM
Ashley Stemley
15 Answers
+ 4
Ashley Stemley Kindly show us your attempt and the code coach you are doing!
5th Dec 2020, 5:16 AM
Piyush
Piyush - avatar
+ 1
i think i understand now. my one code should satisfy all the parameters. thanks
5th Dec 2020, 6:05 AM
Ashley Stemley
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?
5th Dec 2020, 4:16 AM
noteve
noteve - avatar
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?
5th Dec 2020, 5:16 AM
Ashley Stemley
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.
5th Dec 2020, 5:19 AM
noteve
noteve - avatar
0
lol, thanks. ill stop worrying
5th Dec 2020, 5:57 AM
Ashley Stemley
0
I PASSED! Thanks for your help!
5th Dec 2020, 6:07 AM
Ashley Stemley
- 1
https://sololearn.com/coach/525/?ref=app this is the instruction i get
5th Dec 2020, 5:42 AM
Ashley Stemley
- 1
https://sololearn.com/coach/525/?ref=app this is my code. now what do i do?
5th Dec 2020, 5:43 AM
Ashley Stemley
- 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.
5th Dec 2020, 5:47 AM
noteve
noteve - avatar
- 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?
5th Dec 2020, 5:51 AM
Ashley Stemley
- 1
i feel like im missing a screen or something
5th Dec 2020, 5:51 AM
Ashley Stemley
- 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!
5th Dec 2020, 5:52 AM
noteve
noteve - avatar
- 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.
5th Dec 2020, 6:01 AM
noteve
noteve - avatar
- 1
I still have issues with solving for the other test cases
3rd Mar 2022, 6:22 PM
Davidsl03
Davidsl03 - avatar