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
Alina [70]
3 years ago
6

Code in Java:

Computers and Technology
1 answer:
OverLord2011 [107]3 years ago
4 0

Answer:

Explanation:

The following expressions are written in Java and require the rest of the "assummed code" to run correctly, but can be pasted to that code and it has already been tested to be working and be bug free.

1)  boolean areEqual = (a1.getName() == a2.getName());

2) ch = c1.getModel().charAt(2);

3)  public static void whatIsStatus(Lamp myLamp) {

       if (myLamp.status == true) {

           return "ON";

       } else if (myLamp.status == false) {

           return "OFF";

       } else {

           return "ERROR";

       }

   }

You might be interested in
Write a program that converts temperatures in the Celsius scale to temperatures in the Fahrenheit scale. Your program should ask
Aleks [24]

Answer:

#include <iostream>

using namespace std;

int main()

{

   float celsius;

  cout<<"Enter the temperature in Celsius: ";

  cin>>celsius;

 

  float Fahrenheit  = 1.8 * celsius + 32;

  cout<<"The temperature in Fahrenheit  is: "<<Fahrenheit<<endl;

}

Explanation:

first include the library iostream in the c++ programming.

Then, create the main function and declare the variable celsius.

cout is used to print the message on the screen.

cin is used to store the user enter value in the variable.

then, apply the formula for calculating the temperature in Fahrenheit

and store the result in the variable.

Finally, print the result.

6 0
3 years ago
In what way, if any, has community building changed in the age of digital media? People’s community building has not changed in
hichkok12 [17]

Answer:

People are now more willing to share highly personal information with strangers. Match each type of digital health, wellness, and security with examples of potential violations.

5 0
3 years ago
After a CPU decodes an instruction, what is the next step in the execution cycle?
Nat2105 [25]

Answer: E) The CPU executes the instruction by performing ALU operations.

Explanation: The execution cycle is of three stages namely; fetch, decode and execute. These are the functions that the CPU carries out from the time of boot-up up until it's shut down.

At the fetch stage, the computer retrieves program instructions from its memory register, at the decode stage; the decoders interprets the instructions from the instructions register and then the next stage will be the executions, at this stage; the interpreted instructions are then passed to relevant function units of the CPU to carry out the required instructions.

E.g mathematical and logic functions are passed on the ARITHMETIC AND LOGIC UNIT(ALU) to perform.

8 0
3 years ago
A program in which students learn a specific skill for a particular job is called a
Ne4ueva [31]
A certification program.
7 0
3 years ago
Read 2 more answers
Is all binary signaling digital give resistance to error?
AfilCa [17]
Digital signals (usually binary coded) can include extra information that can be used for error detection or even correction. This allows recovery of the original signal, either by requesting retransmission or by directly correcting the error. 

<span>analog signals can't include any extra information needed for this purpose. it is impossible to distinguish an error from the original data.

cited:</span>http://www.answers.com/Q/Which_has_greater_resistance_to_transmission_errors_Binary_signaling_or_Ana...
8 0
3 years ago
Other questions:
  • The most commonly used video formats are the mpeg-____ format, the windows media audio/video format, and the audio visual interl
    12·1 answer
  • If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file?â
    11·1 answer
  • Which of the following statements about the placement of illustrations in documents is true?
    12·1 answer
  • What kind of software program delivers advertising content in a manner that is unexpected and unwanted by the user, and is typic
    14·1 answer
  • The idea that managers tend to communicate more with other managers who share similar beliefs and experiences is represented by
    8·1 answer
  • When creating a document template, you can either start from an existing document or begin from _____.
    15·1 answer
  • When Ethan tries to delete row 7, an error message appears on the screen stating that the record cannot be deleted
    14·1 answer
  • You have two identical print devices that are set up in a work room. Currently, the Windows print server has two printers config
    13·1 answer
  • Once multiple layers are selected which keyboard shortcut merges them
    5·1 answer
  • I just tested how resistant my skin is with a multimeter and I stuck the probe tips pretty hard into my left and right hand. The
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!