Answer:
<em>a. fetch</em>
Explanation:
<em>The device collects a program command from its memory during the run cycle of the fetch.
</em>
It then defines and performs the activities needed for that command. The CPU continuously repeats the cycle of fetching, decoding, and executing a command while the computer is switched on.
An avatar, is the icon or animation that is used to represent a participant in an internet chat. Avatars are usually customizable to make it more 'you.'
The answer & explanation for this question is given in the attachment below.
Answer:
Correct code for the above question which is written in the place of loop in the above question code:
for a,b in contact_emails.items(): # for loop to print the above items one by one.
print(str(b)+" is "+str(a)) # print statement to print the item of the list.
Output:
- The above code is in python language which display the output as the above question demands.
Explanation:
- The above question code is in python language, so the for loop to prints the list is defined in the answer part.
- The for loop syntax defined in the question part is not correct. It never gives the output which the question demands.
- The above list defined in the question part is in the form of key-value pair which comes in the categories of the dictionary concept.
- So to print the above list, any user needs an item function that will display the output in the key-value pair.
- There is also needs two variables in the 'for' loop one is for key and the other is for value.
Answer:
if(goodsSold>500000){
bonus = 10000;
}
Explanation:
A complete Java program that prompts user to enter value for goodsSold is given below:
<em>import java.util.Scanner;</em>
<em>public class num14 {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> System.out.println("Enter goods Sold: ");</em>
<em> int goodsSold = in.nextInt();</em>
<em> int bonus =0;</em>
<em> if(goodsSold>500000){</em>
<em> bonus=10000;</em>
<em> }</em>
<em> System.out.println("You bonus for "+goodsSold+" is "+bonus);</em>
<em> }</em>
<em>}</em>