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
Kitty [74]
3 years ago
8

Write a computer program that determines how many grades are between 0 and 19.

Computers and Technology
1 answer:
True [87]3 years ago
7 0

Answer:

public class nnn {

   public static void main(String[] args) {

       int [] examScores = {31, 70, 92, 5, 47, 88, 81, 73, 51, 76, 80, 90, 55, 23, 43,98,36,87,22,61, 19,69,26,82,89,99, 71,59,49,64};

       int zeroTo19 = 0;

       int nineteenTo39 = 0;

       int fortyTo59 = 0;

       int sixtyTo79 = 0;

       int eightyTo100 = 0;

       for(int i =0; i<examScores.length; i++){

           if(examScores[i]<=19){

               zeroTo19++;

           }

           else if(examScores[i]>19&&examScores[i]<=39){

               nineteenTo39++;

           }

           else if(examScores[i]>39&&examScores[i]<=59){

               fortyTo59++;

           }

           else if(examScores[i]>59&&examScores[i]<=79){

               sixtyTo79++;

           }

           else {

               eightyTo100++;

           }

       }

       System.out.println("0 - 19 is "+zeroTo19);

       System.out.println("20 - 39 is "+nineteenTo39);

       System.out.println("40 - 59 is "+fortyTo59);

       System.out.println("60 - 79 is "+sixtyTo79);

       System.out.println("80 - 100 is "+eightyTo100);

   }

}

Explanation:

  • This has been solved with Java
  • Create an array of the exam scores
  • Create new variables for each of the score range
  • Use multiple if statements as u loop through the array to determine the range of scores
  • Finally outside the loop print them variables out
You might be interested in
Microsoft Advertising includes robust research and reporting tools to help you identify potential areas for campaign improvement
stich3 [128]

Answer:

C. Optimization​

Explanation:

Optimization entails improving your ads campaign making use of the available tools.

Optimization mostly makes ad to target the right audience and engage the right people.

6 0
3 years ago
ASAP!!!! HELP, DON'T GUESS!!! Which options can be adjusted in the Print settings? (1) the font formatting, the sizes of images,
andrew-mc [135]

4. Everything else has to be adjusted before you enter print settings.

8 0
3 years ago
Read 2 more answers
Prompt the user to enter five numbers, being five people's weights. Store the numbers in an array of doubles. Output the array's
Tpy6a [65]
Fddjdidueueyyehdbxhdhdhd
4 0
3 years ago
3. In order to use Pinterest effectively, you must have
AlexFokin [52]
The answer is choice d
4 0
4 years ago
Read 2 more answers
Addictions may ______ friends and family
Airida [17]
C because alienation with addictions may block out friends and family.
6 0
3 years ago
Read 2 more answers
Other questions:
  • Jim has listed stages of the product life cycle in his presentation which slide element can you use to make the items in the lis
    14·1 answer
  • What is virtual memory?
    11·1 answer
  • Which layer enables the receving node to send an acknowledgement?
    11·1 answer
  • Which option in Outlook allows a user to look at multiple calendars in a side-by-side fashion?
    14·2 answers
  • What is the value of the average variable after the following code is executed? var sum = 0; var prices = [14, 10, 9, 12, 11, 14
    14·1 answer
  • Write a program name Dollars that calculates and displays the conversion of an entered number of dollars into currency denominat
    11·1 answer
  • Which of the following relate to the term Technology?
    8·2 answers
  • The
    12·2 answers
  • A search for reliable information is a search for what?
    14·1 answer
  • Often, a single source does not contain the data needed to draw a conclusion. It may be necessary to combine data from a variety
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!