4.2.5 codehs text messages answer

Answers

Answer 1

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;

   }

}


Related Questions

A computer game allows a player to repeat a level until they run out of lives. Which two of the following loops would work correctly?

Answers

Answer:

c.

Explanation:

because this is the right syntax for the following loops

How to get response from post request angular.

Answers

Answer:

I am trying to get full response from a POST request. I have read how to get full response for a get request mentioned at the official site of angular. Angular http

What it says is to add { observe: 'response' }. But it would work for a get request and not for post request. post request accepts 2-3 arguments, so I cannot send this as the 4th argument. Please have a look at my code and let me know what I am doing wrong.

Explanation:

const httpOptions: { headers; observe; } = {

 headers: new HttpHeaders({

   'Content-Type':  'application/json'

 }),

 observe: 'response'

};

return this.http.post('http://localhost:3000/api/Users/login', data, httpOptions) ..

Consider the following instance variables and method from a class: private String descriptor; public String makeSentence(int quant, boolean sign) { String s = "Object is "; if (!sign) { s += "not "; } for (int i = 0; i < quant; i++) { s += "very "; } return s + descriptor; } Suppose an object of this class is initialized so the value of descriptor is "regular". What would be returned by the call makeSentence(3, false) made on this object?

Answers

The call makeSentence(3, false) will return

"Object is not very very very regular"

The program fragment is:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

private String descriptor;

public String makeSentence(int quant, boolean sign) {

   String s = "Object is ";

   if (! sign) {

       s += "not ";

    }

   for (int i = 0; i < quant; i++) {

       s += "very ";

   }

   return s + descriptor;

}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

descriptor is an instance field of the class. When makeSentence(3, false) is called, it does the following;

Initializes a local variable s with "Object is "

s now contains "Object is "

Since sign== false, the if block executes

s now contains "Object is not "

The for loop will execute 3 times to append "very " to s

s now contains "Object is not very very very "

Finally the return statement returns a concatenation of the contents of descriptor (descriptor=="regular") and s

s now contains "Object is not very very very regular"

Learn more about programs here: https://brainly.com/question/19625875

the correct banner marking for a commingled document

Answers

Answer:

The correct banner marking for a commingled document is Headers and footers are mandatory and must be identical All sections or portions must be marked or portion marked CUI markings and Limited Dissemination Control markings appear after all classified marking in both Banner Lines and Portion Markings

Hope this helps :D

Please Mark Brainliest :D

helpppppppppppppppppppppppppppppppppppppppppppppppppppp

Answers

Answer:

I would say B.

Explanation:

It seems the most logical. :)

we are unable to process your request at this time. if you continue to receive this error, please contact cardholder services by calling the number on the back of your card.

Answers

Answer:

is this a sim chip card replacement card for Electronics ?

Explanation:

does anyone know how to make a astronaut hop while using loop?

Answers

Answer:

In Java

Explanation:

package application;

import java.util.Scanner;

import entities.Astronaut;

public class Main {

public static void main(String[] args) {

 Scanner sc = new Scanner(System.in);

 

 System.out.print("How is the astronaut's energy in a scale of 0 to 100? ");

 int energy = sc.nextInt();

 

 Astronaut fakeArmstrong = new Astronaut();

 

 while (energy > 0) {

  fakeArmstrong.hop();

  energy--;

 }

 

 System.out.println("The astronaut is tired eh? Let him rest you psychopato");

 sc.close();

}

}

----------------------------------------------------------------------------------------------

package entities;

public class Astronaut {

private int bodyEnergy;

 

public Astronaut() {

 

}

 

 

public int getBodyEnergy() {

 return bodyEnergy;

}

public void hop() {  

 System.out.println("up and down!");    

}

}

How to remove link color and underline in html.

Answers

Answer:

To remove the underline from all hyperlinks on a page, follow these steps:

Open the page that you want to modify.

Click the Codetab.

Put the following HTML code before the <BODY> tag: <STYLE>A {text-decoration: none;} </STYLE>

Click the Designtab. Your hyperlinks no longer contain underlines.

How to square a number in java.

Answers

Answer:

num**2

Explanation:

To square a number in Java, you just take the number and use two asterisks (**) to denote an exponent, and then connect a 2 to it.

For example, if your number is 5:

5**2 in Java means 5^2, which is 25.

Just like how 5**3 in Java means 5^3.

Hope this helps.

What are web protocols.

Answers

Answer:

Web protocols are a set of standards used to exchange information. It ensures that code can be modular and portable.

Answer:

The standard network protocol of the Internet, TCP/IP, stands for Transmission Control Protocol/Internet Protocol. The Internet Protocol part of the standard refers to the addressing of data message packets. Additional protocols that operate within the TCP/IP framework include UDP, HTTP and FTP. Each has different functions and purposes that ultimately work together to provide assorted capabilities through what's currently known as the World Wide Web.

Explanation:     i hope this helps

The type of software used in soa architecture is often referred to as what?.

Answers

Answer:

software-as-a-service

Explanation:

DES is a commonly used symmetric encryption algorithm, developed in the mid-1990s by the American government in conjunction with IBM, and is the recommended encryption algorithm for highly sensitive data. True False

Answers

Answer:

False

Explanation:

The DES encryption standard is believed to be weakened by the American government by containing shortened key lengths and 'S-boxes' of unknown origin.

True or False: You can insert a part into an assembly by dragging the part file from Windows Explorer into the Onshape window and dropping it in your assembly.

Answers

The Onshape software is a Computer - Aided - Design (CAD) apllication which is used to create various engineering components and simulation.

The program has several functionality which is extremely useful and similar to other CAD software packages such as SOLIDWORKS and AUTOCAD.

There are several ways of adding a required component to an assembly, which also includes dragging a supported file from explorer into the application window.

Hence, the Statememt is True.

Learn more : https://brainly.com/question/25702248

what is the most common size for footings for an 8 inch foundation​

Answers

Answer:

#4 rods at 12 inches o.c.

Explanation:

If you used D*n as the criterion in a Short Text field called FirstName, what would appear in that field in the query results

Answers

When querying a list or table, the use of wildcard symbols maybe used to optimize the search result. The words D*n will return First names which starts with D and ends with n.

The (*) denotes that the search returns any values or alphabets inbetween D and n.

Names such as Dean, Don, Drezn and other rated names would be included in the returned query.

Therefore, the returned query would include names starting with the letter D and ends with the letter n.

Learn more : https://brainly.com/question/25586700

What is the quickest option for adding internet images to a PowerPoint presentation?

*it's b. use the online pictures option....

Answers

Answer:

b. Use the Online Pictures option to perform a search of web-based images to insert.

Explanation:is correct. post protected

Assume the int variables i ,lo , hi , and result have been declared and that lo and hi have been initialized.
Assume further that result has been initialized to the value 0.
Write a for loop that adds the integers from lo up through hi (inclusive), and stores the result in result.
Do not declare any additional variables --
use only i,lo,hi.
------------------------
import java.util.Scanner;
public class forloop_add{
public static void main(String args[]) {
int i,lo=1,hi=3,result=0;
Scanner scanner =new Scanner(System.in);
System.out.println("Enter the lower limit:");
lo=scanner.nextInt();
System.out.println("Enter the upper limit:");
hi=scanner.nextInt();
///{
//write your code here
//start
//end
///}
System.out.println("Result:"+result);
}
}

Answers

Answer:

I don't get this question, what is the point of initializing lo and hi if you're gonna read an input of both later, which is gonna override?

Explanation:

How to set encapsulation angular component.

Answers

Answer: anyone know?

Explanation:

Do you think should give credit to people who invented viral dances?

Answers

Answer:

michal jackson i think who credit to people invented viral dances.

Answer:

Yes

Explanation:

Well, they added some taste to life.

The _____ database structure is more flexible and stores data as well as instructions to manipulate the data.

Answers

Answer:

Databace

Explanation:

When it comes to game mechanics, what is the most universal mechanic that is present in virtually every computer game that you can think of?

quests and goals
movement
catch-up
turns

Answers

I have no Clow but I wanted to answer because you cute

Explanation:

none

shang chi Critique (6-8 sentences)

Answers

Explanation:

.......................

When a mobile user connects to a main office using a standard Internet connection, a ____ provides the mobile user with a secure connection to the company network server.

Answers

A virtual private network (VPN) is an encrypted connection using a standard Internet connection to connect a device to a network.

A virtual private network (VPN) is used to connect a private network to a public network. It enables users have access to the private network thereby enabling them to send and receive data across public networks.

A virtual private network (VPN) is an encrypted connection using a standard Internet connection to connect a device to a network.

Find out more at: https://brainly.com/question/25234505

HELP ME PLZ

A computer system has 16 GB of RAM and 8 MB of cache which is faster than
RAM
Explain why the computer system does not have 16 GB of cache.

Answers

Answer:

inorder to be close to the processor..the cache memory should be much smaller than the main memory...to increase processing speed.

What core components are involved with all games?

Player actions, humor, rewards, coins

Player goals and actions, rules, challenges

Challenges, riddles, mind-benders, tasks

Injury, re-birth, rules, questions

Answers

Answer:

B.) Player goals and actions, rules, challenges

Explanation:

Which option is used to apply formatting to multiple objects on a single slide while still maintaining the ability to manage these objects independently if desired?

it was B. Grouping feature edg21

Answers

Answer:

b. Grouping feature

Explanation:post protected

A technology ____ begins with the birth of a new technology and ends when that technology reaches its limits and dies as it is replaced by a newer, substantially better technology.

Answers

Answer:

A technology __cycle __ begins with the birth of a new technology and ends when that technology reaches its limits and dies as it is replaced by a newer, substantially better technology.

Explanation:

Hope its help

You have two identical print devices that are set up in a work room. Currently, the Windows print server has two printers configured-one for each print device. Some of your users have one printer configured on their computer and other users have the other printer configured. You have found that users are often waiting for their print job to start because another print job is running on the same print device while the other print device sits idle. You want to maximize usage of both printers and avoid having users wait. What should you configure

Answers

Since you want to maximize the usage of both identical print devices (printers) and avoid having users wait, you should configure: printer pooling.

A printer can be defined as an electronic output device that is typically designed and developed to be used for printing paper documents containing textual information and images.

In this scenario, you want the two (2) identical print devices (printers) to print concurrently, so as to prevent users from waiting for their print job to start while the other print device sits idle.

Hence, you should configure printer pooling on both print devices (printers) because this feature would allow the two (2) identical print devices (printers) to share the same name and function as a single printer.

In conclusion, load balancing of print jobs can be achieved by configuring printer pooling on two or more printers.

Read more: https://brainly.com/question/17100575

A customer reached out via Twitter Direct Message to your company, looking for support with a complex issue. A co-worker was already helping that user but is away on vacation. Which Hootsuite feature would be best to respond with?

Answers

The Hootsuite platform provides tools that enable a person to manage his social media activities in one spot. The Hootsuite feature that would be best to respond with given the above scenario is;

Hootsuite inbox

Using the Hootsuite inbox, a user can access the private and public conversations between a former user and a client.

You can see the post that prompted the customer to speak with the organization's representative.

After reading through the conversations, you can reply the client and take any step that is required of you.

Learn more here:

https://brainly.com/question/15321261

THE BONUS QUESTION PART FOUR:

what is the most popular game that's lived for soo long

Answers

Answer:

Senet

Explanation:

Other Questions
what is a signed affidavit verifying self employment 6. Location Study the populationdensity map on page 412. Whereare the largest concentrations ofpeople in the region? Why arethey concentrated there?(30 points) Beaches are monitored to protect public health. Waterborne pathogens can cause illnesses. Which of the following ways can pathogens enter coastal waters? Leaking sewer pipes and untreated wastewater Precipitation through the water cycle The changing of low tide to high tide Through the interactions of marine organisms and plants niomie bakes 24 cookies in 10 minutes. at this rate how many cookies can she bake in 30 minutes What does imagerize mean? and is it a word? What sets christianity apart from other religions. why are baseballs harder to pick up tennis balls? which expression means the same as subtract from 7 and then multipy by 4 Kevin hiked 4 miles in 135 minutes. Which equation can be used to find how many hours it took Kevin to hike the 4 miles? _____1. Katunggali ng Espanya sa panunuklas ng A. Espanya malalayong lupain_____2. Siya ang nagtibay ng Kasunduan ng Tordesillas. B.Europa para sa kolonisasyon._____3.Ang nangunguna sa kalakalan, kaya nakontrol C. HaringManuel ang sistema ng kalakalan D. Kasunduan ngTordesillas_____4. Nanguna sa kalakalan noong ika-15 dantaon siglo E.Kolonisasyon____ 5. Ito ang pananakop ng isang bansa sa ibang lupain F. Portugal URGENTLY NEED HELP!!!!!!the stretch of a spring and the force it exerts are inversely proportional. Select one: O True O False In what type of organism is cell differentiationnecessary?A. prokaryotesB. kingdom archaebacteriaC. single-celled organismsD. multi-cellular organisms CORRECT ANSWER+EXPLANATION=BRAINLIESTSimplify: (question in the pic) Why is the Milky Way considered a galaxy I need help with one paragraph. (About the image) Citizens wishing to recall a governor must collect valid signatures equal to ________of the votes cast in the previous gubernatorial election. Why we use two different methods for detection of cogulase enzyme ? Or what other reason or what basic different between them? ASAP which of the following values of 'x' is the equation 4(x-2)-3x= x +2 true?A. -1B. All Real NumbersC. The equation has no solutionD. 3E. 2 A nurse is conducting a discussion group with parents of children who have genitourinary disorders. As part of the discussion, the nurse reviews the major functions of the kidneys. The nurse determines that the teaching was successful based on which statement by the group How much does a cloud weigh in pounds?