Question: Programming Tasks (Java) We are using CodeJudge, which automatically gives points of the tests (I've uploaded the expected results below). Language: Java Exercise Three siblings

We are using CodeJudge, which automatically gives points of the tests (I've uploaded the expected results below). Language: Java Exercise Three siblings Anderson, Linda, and Orian, just got their Christmas presents. Anderson gets jealous if both Linda and Orian has more presents than her. Linda gets jealous if Anderson has more presents than her. Orian gets jealous if Anderson or Linda (or both) has more presents than him. Given the number of presents each of the three siblings has, give an algorithm that returns the names of the siblings that gets jealous, or NONE if none of the siblings gets jealous. Program Make a program that: from standard input reads the number of presents each of the three siblings has, computes which of them that gets jealous, write the result to standard output Input format: Line 1: 3 space separated integers: A, L, and o, which are the number of presents that Anderson, Linda, and Orian has, respectively. Output format: One line for each sibling that gets jealous. If there is more than one name, they have to be in alphabetical order. If none of the sibling gets jealous output NONE. Test01 Input (stdin) 4.56 Output Your Output 1 Anna 2 Expected Output Anna Test02 Input (stdin) 813 Output Your Output 1 Laura 2 Oscar 3 Expected Output Laura Oscar Test03 Input (stdin) 778 Output Error: expected NONE but was EOF Your Output Expected Output NONE 1 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
