Answer:
The answer to the following question is the option "d".
Explanation:
In computer science, a machine instruction includes many bytes in memory that defines to processor to perform a machine operation. In machine instruction, the processor scans the main memory. It scans after another process and performs machine operation for each machine instruction. when a process constantly checks that if a condition is true. So this technique is known as busy waiting.
1: Application
2: Presentation
3:Session
4: Transport
5:Network
6: Data link
7: Physical
Application is a Interface Layer and responsible Layer
<span />
Answer:
the first option is obviously the correct answer
Answer:
import java.util.Scanner;
public class num2 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int count =0;
int total = 0;
System.out.println("Enter the numbers");
int num = in.nextInt();
while(num!=-1){
total = total+num;
count++;
System.out.println("Enter the next number");
num = in.nextInt();
}
//Compute the average
double average = (double) total/count;
//Outputs
System.out.println("Total count of numbers entered "+(count));
System.out.println("Sum of the numbers "+total);
System.out.printf("Average is %.2f ",average);
}
}
Explanation:
- Using java programming language
- Import scanner class to receive user input
- declare variables count and total and initialize to zero
- Prompt user to enter numbers
- Use a while statement with the condition while(num!=-1)
- Within the while body keep prompting user to enter a number, increase count and update total
- when -1 is entered the loop breaks and average is calculated
- Use printf() method to print average to 2 decimal places.
Daguerre inserted Chemically treated a silver plate. Instead of leaving it exposed by light, he removed and heated it. An image developed called a ____latent________image. He could develop but this image was not last.