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
Ede4ka [16]
2 years ago
9

4.2.5 codehs text messages answer

Computers and Technology
1 answer:
N76 [4]2 years ago
4 0

Answer:

public class TextMessage

{

   private String message;

   private String sender;

   private String receiver;

   

   public TextMessage(String from, String to, String theMessage)

   {

       sender = from;

       receiver = to;

       message = theMessage;

   }

   

   public String toString()

   {

       return sender + " texted " + receiver + ": " + message;

   }

}

You might be interested in
The role of a computer-based instructional system is to deliver messages to learners. Those messages originated from a human tut
zalisa [80]

Answer:

True.

Explanation:

A computer system is digital device which comprises of a hardware and a software components. The hardware is the physical parts of the system while the software is the written instructions that controls the hardware.

The computer is a part of the information system which also includes the procedure and user. It is used to communicate between users in a network with ease. The computer based instructional system is an information systems used in educational facilities. They help teachers pass across information to the students and provides a platform for student to share their resources and seek solutions where necessary.

3 0
4 years ago
Difference between softcopy and hardcopy​
Rashid [163]

A hard copy is the digital file, stored in a device and was printed out. A soft copy is the electronic version NOT PRINTED. It is showcased digitally (through a phone, computer, flash drive etc)

3 0
3 years ago
Read 2 more answers
The class shown below called is called CSVReader. Use this class exactly as it is written (specifically don’t add any instance v
Vesna [10]

Answer:

import java.io.File;

import java.io.FileNotFoundException;

import java.util.ArrayList;

import java.util.Scanner;

public class CSVReader {

  ArrayList fields;

  public CSVReader() {

      fields = new ArrayList();

  }

  public void readFile(String filename) throws FileNotFoundException {

      File inputFile = new File(filename);

      String word;

      String line;

      int index = 0;

      int ind2 = 0;

      int valPrice = 0, valSqft = 0, valSum = 0;

      Scanner in = new Scanner(inputFile);

      while (in.hasNextLine()) {

          line = in.nextLine();

          Scanner lineScanner = new Scanner(line);

          lineScanner.useDelimiter(",");

          fields.add(new ArrayList());

          while (lineScanner.hasNext()) {

              word = lineScanner.next();

              if (index != 0) {

                  if (ind2 == 2) {

                      System.out.print(", " + word);

                  } else if (ind2 == 8) {

                      System.out.printf(" $" + Integer.valueOf(word) / 1000);

                      if (Integer.valueOf(word) % 1000 > 0) {

                          System.out.printf(",%.2f", (float) Integer.valueOf(word) % 1000);

                      } else {

                          System.out.print(",000.00");

                      }

                      valPrice = Integer.valueOf(word);

                      valSum += Integer.valueOf(word);

                  } else if (ind2 == 9) {

                      System.out.print(" SF " + word);

                      valSqft = Integer.valueOf(word);

                  } else if (ind2 == 11) {

                      System.out.print(" beds " + word);

                      System.out.printf(" baths price/sf: $ %.2f\n", (float) valPrice / valSqft);

                  } else if (ind2 > 0) {

                      System.out.print(" " + word);

                  } else if (ind2 == 0) {

                      System.out.print(word);

                  }

              }

              ((ArrayList) fields.get(index)).add(word);

              ind2++;

          }

          lineScanner.close();

          index++;

          ind2 = 0;

          valPrice = 0;

          valSqft = 0;

      }

      System.out.printf(

              "There is a total of " + (numberOfRows() - 1) + " homes on the market with an average price of $"+(valSum / (numberOfRows() - 1))/1000+",%.2f",

              (float) (valSum / (numberOfRows() - 1))%1000);

      in.close();

  }

  public int numberOfRows() {

      return fields.size();

  }

  public int numberOfFields(int row) {

      if (row < 0) {

          return 0;

      }

      if (row >= fields.size()) {

          return 0;

      }

      return ((ArrayList) fields.get(row)).size();

  }

  String field(int row, int column) {

      if (row >= 0 && row < fields.size()) {

          if (column >= 0 && column < fields.size()) {

              return (String) ((ArrayList) fields.get(row)).get(column);

          } else

              return "";

      } else

          return "";

  }

  public static void main(String[] args) throws FileNotFoundException {

      CSVReader test = new CSVReader();

      test.readFile("R.csv");

  }

}

Explanation:

3 0
3 years ago
The total magnification of a specimen viewed under a compound light microscope is determined by:
zhenek [66]
The total magnification of a specimen viewed under a compound light microscope is determined by <span>multiplying the power of the objective lens times the power of the ocular lens.the eyepiece alone is 10x this one is the right answer hope it helps</span>
8 0
4 years ago
Read 2 more answers
Nolan has just created a linked cell to another cell in a separate worksheet in his current Excel 2016 workbook.
kipiarov [429]

Answer: dependent

Explanation:

A Cells containing formulas which refer to other cells are known as dependents.

These are cells that depend on values in the selected cell.

A dependents cell can either contain a formula or a constant value.

(Ctrl + ] ) Is used as a shortcut when selecting dependents cells in an active cell.

Another option is to make use of you (Tools > Formula Auditing > Trace Precedents).

4 0
3 years ago
Read 2 more answers
Other questions:
  • Can you please answer the questions computer subject
    12·1 answer
  • What was the benefit of a caloytpe over a daguerreotype
    6·2 answers
  • A(n) __________ is a device or software that is designed to block unauthorized access while allowing authorized communications.
    13·1 answer
  • 6) Sometimes it is difficult to read a piece of code and understand what the code will do. For this reason, you may want to add
    9·1 answer
  • Which line of code will print I like to code on the screen? print("I like to code") print(I like to code) print("I LIKE TO CODE"
    5·2 answers
  • What type of Microsoft Server serves as an email server?
    7·2 answers
  • All the crtl keys on the keyboard
    8·2 answers
  • Irma bought a gaming computer at Bestbuy 3 years ago and it’s been on ever since. Her computer is staring to feel unstable and a
    10·1 answer
  • One of the difficult things about working in game design is that while there are many different roles, most of them only match o
    15·1 answer
  • What is a common misconception about Agile and DevOps?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!