Answer:
A set of instructions that directs a computer's hardware to perform a task is called a program, or software program.
Answer:
which is called a program
Explanation:
Given the following code, what logic would you need to include to print all even values stored within the array:
int[] myArray = {1,2,38,4,54,6,7,8,9,10};
for (int i = 0; i < myArray.length; i++) {
//your code goes here
}
NOTE: Your response should be just the missing logic--not the entire problem set.
The missing logic whigh would allow all the even numbers stored within the array to be printed is if(myArray[i]%2 == 0)
Even numbers are divisible by 2, and hence, will leave no remainder when divided by 2. Using the modulo operator, each iterated value in the array should be checked if it has a remainder of 0, when divided by 2.Hence, if the remainder is 0, then the value is even and the value should be printed.
Learn more : https://brainly.com/question/17330574
Write a program that prompt the user to enter a bank balance. The balance entered by the user is read into a variable named balance. The program then prompts the user to enter the amount to be deposited. The amount entered by the user is read into a variable named deposit. The program that calculates the new balance, which is the present balance plus the deposit. The program then displays the new balance.
Answer:
ertyuiopoijuhgfdsa hiyoufun tresdfghytrefgytredfg
Explanation:
look for the words