subject

Java zybookschallengeactivity6.4.2: finding values in an array. set nummatches to the number of elements in uservalues (having num_vals elements) that equal matchvalue. ex: if matchvalue = 2 and uservalues = {2, 2, 1, 2}, then nummatches = 3. (notes)must be used template: import java. util. scanner; public class findmatchvalue {public static void main (string [] args) {final int num_vals = 4; int[] uservalues = new int[num_vals]; int i; int matchvalue; int nummatches = -99; // assign nummatches with 0 before your for loopuservalues[0] = 2; uservalues[1] = 2; uservalues[2] = 1; uservalues[3] = 2; matchvalue = 2; /* your solution goes here */system. out. println("matchvalue: " + matchvalue + ", nummatches: " + nummatches); }}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Determine whether the following careers would require training or college.
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
question
Computers and Technology, 23.06.2019 12:20
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
You know the right answer?
Java zybookschallengeactivity6.4.2: finding values in an array. set nummatches to the number of ele...
Questions
question
Biology, 12.04.2020 03:42
question
Chemistry, 12.04.2020 03:42
question
Mathematics, 12.04.2020 03:42
Questions on the website: 13722359