Java please Extra Credit Coding Problem Problem Write a solution for the followi
ID: 3713986 • Letter: J
Question
Java please
Extra Credit Coding Problem Problem Write a solution for the following problem Given a String containing n integer values, find all two-integer combinations in the candidate values list (the first n-1 values, preceding the semicolon) that sum to produce the nh value (the target value, following the semicolon) Example 1 The provided String: The "candidate" values are:1, 2, 3, and 4 The "target" sum is: The valid combinations are: 1 4 Example 2 The provided String: The "candidate" values are 2, 3, 5, 2,6, 4, and 4 (NOTE the duplicate values) The "target" sum is: The valid combinations are: 2 6 "2,3,5,2,6,4,4;8" 2 6 (Since 2 occurs twice, it generates two solutions) Example 3 The provided String: The "candidate" values are:3, 0, and 5 The "target" sum is: The valid combinations are: 3 5 "3,0,5:8" Notes on Solution 1. The input is in the form of a single String object. That object must: a. b. c. d. Be input by a user through the keyboard Be broken into two parts: the candidates and the target The candidate values must be separated into individual pieces Each individual candidate value must be converted from a String or char to an int value Both the separation into candidates and target and the separation of individual candidate values may be done using methods of class String e. f. Conversion of the resulting String or char value into an int value may be done using a wrapper class method 2. It is necessary to move through the list of candidate values only once, in a single direction.Explanation / Answer
Hi Dear,
Pelase find my code.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.