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.
gfdsgcvbcvxbxcvxcdzgdfhggfdjghfb ccvghfjghjgh
Answer:
return.
Explanation:
When a "return" statement is executed then the given expression or variable in the function is evaluated and the result will be returned by the function when the function is called.With the help of return statement, we can terminate the execution a method/function and then give control to the calling function.
Example:
#include <bits/stdc++.h>
using namespace std;
long long sq( int s )
{
/* here "return" will first execute the expression and then
return the value to the calling function i.e. sq() in the main
function.
*/
return( s * (long long)s );
}
int main()
{
long long y;
int x = INT_MAX;
// sq() will return a value and that value is store in the variable "y"
y = sq( x );
cout<<y<<endl;
return 0;
}
To be honest I'm not sure but I'd say B,C
Answer:
XLR inputs and preamps with adjustable trim, EQ, aux buses, pan pots, and faders are the requisite features of every audio mixer, while higher-end large-format consoles may have an additional dynamics section as well.
Explanation: