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
garik1379 [7]
3 years ago
10

A product (that has not been yet invented) that involves lighting up when something happens?

Engineering
1 answer:
Zigmanuir [339]3 years ago
5 0

Answer:

Maybe when there is a fire there can be fire drones that can take it out. and it can also resuce people who are stuck there.

Explanation:

You might be interested in
Why the water levels in the various pizometerce tubes are different? ​
Nitella [24]

Answer:

They are different due to the size and water levels like a lake say it’s at 70% full but the next day it’s so hot now its at 66% full it’s cause the water levels are changing due to the diffent climates and regions

Explanation:

Uphill you may get less water down hill you may get more water

3 0
4 years ago
Please add comments to your program to explain it. Thank you!
Step2247 [10]

Answer / Explanation:

(1) We should first understand that the input filename are passed in as the first command arguments at command line, respectively.

To do this, we import the data file:

So we have,

import java.io.*;

/**

*  Makes a copy of a file.  The original file and the name of the

*  copy must be given as command-line arguments.  In addition, the

*  first command-line argument can be "-f"; if present, the program

*  will overwrite an existing file; if not, the program will report

*  an error and end if the output file already exists.  The number

*  of bytes that are copied is reported.

*/

public class CopyFile {

  public static void main(String[] args) {

     String sourceName;   // Name of the source file,  

                          //    as specified on the command line.

     String copyName;     // Name of the copy,  

                          //    as specified on the command line.

     InputStream source;  // Stream for reading from the source file.

     OutputStream copy;   // Stream for writing the copy.

     boolean force;  // This is set to true if the "-f" option

                     //    is specified on the command line.

     int byteCount;  // Number of bytes copied from the source file.

     

     /* Get file names from the command line and check for the  

        presence of the -f option.

(2)   If the command line is not one

        of the two possible legal forms, print an error message and  

        end this program. */

   

     if (args.length == 3 && args[0].equalsIgnoreCase("-f")) {

        sourceName = args[1];

        copyName = args[2];

        force = true;

     }

     else if (args.length == 2) {

        sourceName = args[0];

        copyName = args[1];

        force = false;

     }

     else {

        System.out.println(

                "Usage:  java CopyFile <source-file> <copy-name>");

        System.out.println(

                "    or  java CopyFile -f <source-file> <copy-name>");

        return;

     }

     

     /* Create the input stream.  If an error occurs, end the program. */

     

     try {

        source = new FileInputStream(sourceName);

     }

     catch (FileNotFoundException e) {

        System.out.println("Can't find file \"" + sourceName + "\".");

        return;

     }    

     /* If the output file already exists and the -f option was not

        specified, print an error message and end the program. */

   

     File file = new File(copyName);

     if (file.exists() && force == false) {

         System.out.println(

              "Output file exists.  Use the -f option to replace it.");

         return;  

    }      

     /* Create the output stream.  If an error occurs, end the program. */

     try {

        copy = new FileOutputStream(copyName);

     }

     catch (IOException e) {

        System.out.println("Can't open output file \"" + copyName + "\".");

        return;

     }

     

   (3)   /* Copy one byte at a time from the input stream to the output

        stream, ending when the read() method returns -1 (which is  

        the signal that the end of the stream has been reached).  If any  

        error occurs, print an error message.  Also print a message if  

        the file has been copied successfully.  */  

     byteCount = 0;

     

     try {

        while (true) {

           int data = source.read();

           if (data < 0)

              break;

           copy.write(data);

           byteCount++;

        }

        source.close();

        copy.close();

        System.out.println("Successfully copied " + byteCount + " bytes.");

     }

     catch (Exception e) {

        System.out.println("Error occurred while copying.  "

                                  + byteCount + " bytes copied.");

        System.out.println("Error: " + e);

     }    

  }  // end main()  

} // end class CopyFile

8 0
4 years ago
What Do Solar Engineers Do?
konstantin123 [22]
Plan, design, and implement solar energy projects
7 0
3 years ago
I dont undertand this coding problem (Java):
chubhunter [2.5K]

Check The Attachment.

Download java
6 0
4 years ago
The tolerance for a geometric can be easily identified by reading the _________.
baherus [9]

Answer:

C

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • The sliders A and B are connected by a light rigid bar of length l = 20 in. and move with negligible friction in the slots, both
    14·1 answer
  • Design a linkage with the following requirements:
    11·1 answer
  • for an electromotive force to be induced across a vertical loop from the field of an infinite length line of fixed current in th
    6·1 answer
  • 3 If, for a particular junction, the acceptor concentration is 1017/cm3 and the donor concentration is 1016/cm3 , find the junct
    6·1 answer
  • Sharon is designing a house in an area that receives a lot of rainfall all year. Which material should she use to stick the wood
    12·1 answer
  • What are some common ways of converting fuel to useful energy? Check all that apply.
    9·2 answers
  • A police officer in a patrol car parked in a 70 km/h speed zone observes a passing automobile traveling at a slow, constant spee
    6·1 answer
  • Write a script (Program 2) to perform t he following matrix operations. Use output commands to clearly output each problem with
    15·1 answer
  • What is canaland its type ​
    10·1 answer
  • 8. What is the purpose of the 300 Log?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!