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.
Answer:
Assuming you mean the HTML5 head tag, then this may work for you:
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>My Very Awesome Website</title>
<link href="./css/main.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<h1>Hey look</h1>
<p>This is my awesome website!</p>
<h3>Note</h3>
<p>This website is supposed to be 100% awesome!</p>
</body>
</html>
Answer: White noise is the merging of the audible signal of different frequencies varying from high to low into a single unit. The number of frequencies combined in white noise more than 20,000. It helps in masking the other noise in the environment.
In accordance with the signal, white noise acts as a statistical mode which merges all the signal into one with same intensity which results in the power spectral density being persistent.
E.g.- Any business process of company that requires attention and speedy working such as creating report, presentation can get affected by the white noise in positive or negative manner depending on the person.It might lead to increment or decrement in the cognitive performance of employees.
White noise can be remove by several software present in the market, removing it by the "Noise removal" option from the Effects menu in operating system, etc.