Primitive primitive operators | Sololearn: Learn to code for FREE!

+1

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?

12/5/2020 3:36:15 AM

Ashley Stemley

14 Answers

New Answer

+5

Ashley Stemley Kindly show us your attempt and the code coach you are doing!

+1

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?

+1

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.

+1

lol, thanks. ill stop worrying

+1

i think i understand now. my one code should satisfy all the parameters. thanks

+1

I PASSED! Thanks for your help!

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

https://sololearn.com/coach/525/?ref=app this is the instruction i get

0

https://sololearn.com/coach/525/?ref=app this is my code. now what do i do?

0

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.

0

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?

0

i feel like im missing a screen or something

0

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!

0

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.