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]
3 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]3 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
You are part of the team to implement new software at XYZ Inc. The employees at XYZ Inc. trust the results of the old software p
sasho [114]

Answer:

Option (D) i.e., Parallel start up is correct option to the following question.

Explanation:

Parallel startup is also an application or software or a way of using the application of the other Operating System in others just like that the following XYZ inc. has trust on older platform but their system give them cautions for update then they use parallel set up by which they also use old software, as well as they, use the Mac's software in Windows. This strategy provides both the option of usage.

8 0
3 years ago
Which method of deleting files can be used in windows xp and vista?
Makovka662 [10]
The correct answer is C.

4 0
2 years ago
Write a program named Deviations.java that creates an array with the deviations from average of another array. The main() method
Westkost [7]

Answer:

hello your question is incomplete attached is the complete question and solution

answer : The solution is attached below

Explanation:

Below is a program named Derivations.java that creates an array with the deviations from average of another array.

3 0
3 years ago
What is the purpose of the website directory provided by the website host?
Dennis_Churaev [7]

Answer:

mabye A

Explana

.

.

.

6 0
3 years ago
As text is typed in the _____ text box, a drop-down list displays options for completing the action, displaying information on t
pickupchik [31]

Answer:

Excel Help

Explanation:

Press F1 key to open the excel help window

Or you can also click the excel help button to launch the help window.

Type for whatever you are seeking help for and you will notice suggestions as you type something. These suggestions include online and offline results. If there are too many results then try searching offline it will narrow down the results.

After typing the text and hitting enter, the excel help returns several related topics on the searched query. You can browse through these topics and get help from excel.

5 0
3 years ago
Other questions:
  • Help PLEASE (in attachment)
    8·1 answer
  • __________________ ensures that each row is uniquely identified by the primary key, which means that a proper search for an exis
    10·1 answer
  • The hottest part of the Earth is the
    9·2 answers
  • What are the classifications of computer
    9·1 answer
  • Which one is better AMD Ryzen 5 Or Nvidia Gtx 2080 ti
    6·1 answer
  • You are the CEO of a large tech company and have just received an angry email that looks like it came from one of your biggest c
    12·1 answer
  • How is information processed within a<br> motherboard between the hard drive, CPU and RAM,
    12·1 answer
  • The pinky finger on the right hand types _____.
    15·2 answers
  • Everyone within a company needs to be aware of what data can do to improve business processes and how to make it happen. Which c
    13·1 answer
  • in the topology configuration, hosts are connected to each other through a central controller which assumes all responsibility f
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!