![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 22.11.2021 19:40 AmazingColor
Given the following code, what logic would you need to include to determine how many times the number 2 appears within the array:
int[] myArray = {1,2,3,2,5,6,2,8,2,10};
for (int i = 0; i < myArray. length; i++) {
//your code goes here
}
Sample Output: The number 2 appears 4 times in this array.
NOTE: Your response should be just the missing logic--not the entire problem set.
![ansver](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 00:10
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 15:00
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:50
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
You know the right answer?
Given the following code, what logic would you need to include to determine how many times the numbe...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 05.05.2020 06:48
![question](/tpl/images/cats/mat.png)
Mathematics, 05.05.2020 06:48
![question](/tpl/images/cats/biologiya.png)
Biology, 05.05.2020 06:48
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 05.05.2020 06:48
![question](/tpl/images/cats/en.png)
English, 05.05.2020 06:48
![question](/tpl/images/cats/fizika.png)
Physics, 05.05.2020 06:48
![question](/tpl/images/cats/mat.png)
Mathematics, 05.05.2020 06:48
![question](/tpl/images/cats/mat.png)
Mathematics, 05.05.2020 06:48
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 05.05.2020 06:48
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 05.05.2020 06:48
![question](/tpl/images/cats/mat.png)
Mathematics, 05.05.2020 06:48
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/mat.png)