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

Sandi wants to check the average grades in her classroom. Which loop or algorithm should she use?

Computers and Technology
1 answer:
tatyana61 [14]3 years ago
8 0

Answer:

D

Explanation:

Maximum-minimum algorithm will help Sandi check the average grades in her classroom.

Have a great day

You might be interested in
Turn-outs are features of roadways that are to be employed by
JulsSmile [24]
<span>They are made for vehicles that are slow moving or should travel at a low speed so as not to endanger the lives of other drivers on the road, they are signs that prevent bottlenecks with slow vehicles, which for one reason or another, they cannot travel at a higher speed than others cars in the road, this mostly is noticed in cargo trucks carrying heavy cargo during a long journey.</span>
3 0
3 years ago
1. Write a telephone lookup program. Read a data set of 1, 000 names and telephone numbers from a file that contains the numbers
Fed [463]

Answer:

Kindly note that, you're to replace "at" with shift 2 as the brainly text editor can't take the symbol

Explanation:

PhoneLookup.java

import java.io.FileReader;

import java.io.IOException;

import java.util.Scanner;

public class PhoneLookup

{

  public static void main(String[] args) throws IOException

  {

     Scanner in = new Scanner(System.in);

     System.out.println("Enter the name of the phonebook file: ");

     String fileName = in.nextLine();

     LookupTable table = new LookupTable();

     FileReader reader = new FileReader(fileName);

     table.read(new Scanner(reader));

   

     boolean more = true;

     while (more)

     {

        System.out.println("Lookup N)ame, P)hone number, Q)uit?");

        String cmd = in.nextLine();

       

        if (cmd.equalsIgnoreCase("Q"))

           more = false;

        else if (cmd.equalsIgnoreCase("N"))

        {

           System.out.println("Enter name:");

           String n = in.nextLine();

           System.out.println("Phone number: " + table.lookup(n));

        }

        else if (cmd.equalsIgnoreCase("P"))

        {

           System.out.println("Enter phone number:");

           String n = in.nextLine();

           System.out.println("Name: " + table.reverseLookup(n));

        }

     }

  }

}

LookupTable.java

import java.util.ArrayList;

import java.util.Collections;

import java.util.Scanner;

/**

  A table for lookups and reverse lookups

*/

public class LookupTable

{

  private ArrayList<Item> people;

  /**

     Constructs a LookupTable object.

  */

  public LookupTable()

  {

      people = new ArrayList<Item>();

  }

  /**

     Reads key/value pairs.

     "at"param in the scanner for reading the input

  */

  public void read(Scanner in)

  {

     while(in.hasNext()){

         String name = in.nextLine();

         String number = in.nextLine();

         people.add(new Item(name, number));

     }

  }

  /**

     Looks up an item in the table.

     "at"param k the key to find

     "at"return the value with the given key, or null if no

     such item was found.

  */

  public String lookup(String k)

  {

     String output = null;

     for(Item item: people){

         if(k.equals(item.getName())){

             output = item.getNumber();

         }

     }

     return output;

  }

  /**

     Looks up an item in the table.

     "at"param v the value to find

     "at"return the key with the given value, or null if no

     such item was found.

  */

  public String reverseLookup(String v)

  {

      String output = null;

         for(Item item: people){

             if(v.equals(item.getNumber())){

                 output = item.getName();

             }

         }

         return output;

  }

}

Item.java

public class Item {

  private String name, number;

 

  public Item(String aName, String aNumber){

      name = aName;

      number = aNumber;

  }

 

  public String getName(){

      return name;

  }

 

  public String getNumber(){

      return number;

  }

}

input.txt

Abbott, Amy

408-924-1669

Abeyta, Ric

408-924-2185

Abrams, Arthur

408-924-6120

Abriam-Yago, Kathy

408-924-3159

Accardo, Dan

408-924-2236

Acevedo, Elvira

408-924-5200

Acevedo, Gloria

408-924-6556

Achtenhagen, Stephen

408-924-3522

Kindly check the attached output image below.

3 0
3 years ago
Makes it possible to treat dates as other numbers
Vera_Pavlovna [14]
What do you mean?  <span>Makes it possible to treat dates as other numbers</span> 
8 0
3 years ago
.A Database is the set of programs that runs on a server? (true/false)
Crazy boy [7]

Answer: True

Explanation:A database is known as the collection of the data and function which can be accessed and managed in organized manner.A database requires the server to provide the services to the application and programs that is known as the database servers.

Database server is provided to the database from the database management system.It is the service for the client-server model of the database.The task undertaken by the server is analyzing , storing manipulation, running etc.Thus, the statement is true.

5 0
3 years ago
Think of all your favorite movies or games. Is their digital animation present? How do you think that it affected the movie or g
Lyrx [107]

Answer:

yea there is a digital animation bc its animated, it changed the appearance, it wouldnt be there, it would look cool

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • What is the purpose of the Chart feature in Word?
    10·2 answers
  • A cell reference with only one dollar sign before either the column or the row is called an absolute reference.
    10·1 answer
  • The Springfork Amateur Golf Club has a tournament every weekend. The club president
    7·1 answer
  • Selet the correct answer.
    11·2 answers
  • Write a python program stored in file extra_credit.py that takes three different inputs from the user where : First Input: The p
    7·1 answer
  • In C++ :
    6·1 answer
  • Is monitor is a television​
    7·1 answer
  • A ___________ variable is used to add up a set of values. fill in the blank
    8·1 answer
  • Complete the sentence.
    10·1 answer
  • Hillary’s family is thinking of relocating to a different city to save money. They set up a budget comparing the cost of living
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!