1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
BartSMP [9]
2 years ago
14

I need to write a program that accepts eight int values representing student test scores from the user and then displays each of

the values along with a message that indicates how far it is from the average.
Computers and Technology
1 answer:
belka [17]2 years ago
4 0
Import java.util.Scanner; /*please note that i am writing this program in a way that seems as though it is at your level of experience. I am not using arrays to initialize the integers because from the looks of it, you arent at that level yet.*/public class answerBrainly{       public static Scanner in = new Scanner(System.in);    public static int input1;    public static int input2;    public static int input3;    public static int input4;    public static int input5;    public static int input6;    public static int input7;    public static int input8;    public static void main(String[]args){        System.out.println("Please enter in your first grade: ");        input1=in.nextInt();        System.out.println("Please enter in your second grade: ");        input2=in.nextInt();        System.out.println("Please enter in your third grade: ");        input3=in.nextInt();        System.out.println("Please enter in your fourth grade: ");        input4=in.nextInt();        System.out.println("Please enter in your fifth grade: ");        input5=in.nextInt();        System.out.println("Please enter in your sixth grade: ");        input6=in.nextInt();        System.out.println("Please enter in your seventh grade: ");        input7=in.nextInt();        System.out.println("Please enter in your eighth grade: ");        input8=in.nextInt();        int average = (input1+input2+input3+input4+input5+input6+input7+input8)/8;        System.out.println("Your average is: "+average);        int input1Calc=average-input1;        int input2Calc=average-input2;        int input3Calc=average-input3;        int input4Calc=average-input4;        int input5Calc=average-input5;        int input6Calc=average-input6;        int input7Calc=average-input7;        int input8Calc=average-input8;        System.out.println("Your first grade is "+input1Calc+" points away from the average");        System.out.println("Your second grade is "+input2Calc+" points away from the average");        System.out.println("Your third grade is "+input3Calc+" points away from the average");        System.out.println("Your fourth grade is "+input4Calc+" points away from the average");        System.out.println("Your fifth grade is "+input5Calc+" points away from the average");        System.out.println("Your sixth grade is "+input6Calc+" points away from the average");        System.out.println("Your seventh grade is "+input7Calc+" points away from the average");        System.out.println("Your eighth grade is "+input8Calc+" points away from the average");  }}
You might be interested in
What type of software translates a programmer’s statements to binary form?
Aleks04 [339]
A compiler, which has several parts, translates source code to executable code.
3 0
3 years ago
____________ are the in – built functions that perform a particular pre – defined task when used in a computer program.
saveliy_v [14]

Answer:

System software.

Explanation:

System software are the in-built functions that perform a particular pre-defined task when used in a computer program. An example of a system software is an operating system.

An operating system (OS) is a system software pre-installed on a computing device to manage or control software application, computer hardware and user processes. Some examples of an operating system are QNX, Linux, OpenVMS, MacOS, Microsoft windows, IBM, Solaris, VM etc.

4 0
2 years ago
Write multiple if statements: If carYear is before 1967, print "Probably has few safety features." (without quotes). If after 19
Liono4ka [1.6K]

Answer:

public class Main

{

public static void main(String[] args) {

    int carYear = 1995;

   

    if(carYear < 1967)

        System.out.println("Probably has few safety features.");

    if(carYear > 1971)

        System.out.println("Probably has head rests.");

    if(carYear > 1992)

        System.out.println("Probably has anti-lock brakes.");

    if(carYear > 2002)

        System.out.println("Probably has tire-pressure monitor.");

   

}

}

Explanation:

The code is in Java.

Initialize the carYear

Use if statements to handle year before 1967, after 1971, after 1992 and after 2002.

Print the required message for each if statement

5 0
2 years ago
Which of the following is an example of a currency Number format in Excel?
Elena L [17]

$21.08 is an example of a currency Number format in Excel

<u>Explanation:</u>

For items like currency, one can format numbers in cells in Excel.

To view all possible number formats, click the Dialog Box Launcher attached to Number on the Home tab in the Number group.

In the Format Cells dialog box, in the Category list, click Currency or Accounting.

In the Symbol box, tick the currency symbol.

In the Decimal places box, insert the number of decimal places.

Employed for common financial values and presents the default currency figure with quantities.

Ctrl+Shift+$ is a shortcut to represent currency values.

8 0
3 years ago
A system administrator needs to create a high-performance SQL server. What type of disk configuration will allow the administrat
Studentka2010 [4]

Answer:

Pass-through disk

Explanation:

Pass-through disk configuration will allow the administrator to connect an offline physical disk that is connected to the host machine to a VM to maximize a VM's performance.

VMs access a physical hard disk by way of a "pass-through disk," a special virtual disk that directly accesses the physical disk if it is made exclusively available to the VM.

A pass-through disk must be offline in the parent partition of the Hyper-V server.

4 0
3 years ago
Other questions:
  • What connects two or more LANs together?
    10·2 answers
  • ) The ________ displays a text box and button for users to browse, select, and upload a file. (Points : 3)
    13·1 answer
  • When saving a file, you must provide a valid file name that adheres to specific rules, referred to as _______________.
    5·1 answer
  • no one can succeed in his or her career without relying on others for help or opportunities. It’s best, though,
    13·1 answer
  • Steps in the systems development life cycle​
    15·2 answers
  • Which relation is created with the primary key associated with the relationship or associative entity, plus any non-key attribut
    6·1 answer
  • What does the -pwd switch do? how can you make dsadd bring up a prompt asking for the users password?
    10·1 answer
  • Remember not to use tools that are ________ in any way.
    5·1 answer
  • True of false that the memory of laptop is normally measured in kilobytes
    6·1 answer
  • Criminal investigations are limited to finding data defined in the search ____.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!