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
AysviL [449]
3 years ago
6

How do you make a 3d print

Engineering
1 answer:
yulyashka [42]3 years ago
5 0

Answer:you need a 3d printer

Explanation:

You might be interested in
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
Match the following parts of a crane
trasher [3.6K]
It is auxillary sorry i couldn’t help it happens to the best of us
5 0
3 years ago
What color in the visible spectrum has the longest wavelength?<br> yellow<br> red<br> blue<br> green
trapecia [35]

Answer:

red

Explanation:

6 0
2 years ago
What is reciprocity?
Murrr4er [49]

Answer:

the practice of exchanging things with others for mutual benefit, especially privileges granted by one country or organization to another.

HOPE THIS HELPED!!!!!!!!!!!!! XDDDDDD

7 0
4 years ago
Read 2 more answers
Complete the function ConvertToWeeksAndDays to convert totalDays to weeks and days. Return weeks and days using the ElapsedWeekD
mafiozo [28]

The program is an illustration of functions.

Functions are group of code blocks that perform as one

The ConvertToWeeksAndDays() function in python where comments are used to explain each line is as follows:

#This defines the ConvertToWeeksAndDays function

def ConvertToWeeksAndDays(totalDays):

   #This calculates the number of weeks

   weeks = totalDays//7

   #This calculates the number of days

   days = totalDays %7

   #This prints the number of weeks and days

   print(weeks,"weeks and",days,"days")

Read more about similar programs at:

brainly.com/question/25223400

7 0
3 years ago
Other questions:
  • Consider a fully-clamped circular diaphragm poly-Si with a radius of 250 μm and a thickness of 4 μm. Assume that Young’s modulus
    14·1 answer
  • The boundary layer forms the thin region near a surface where the flow is affected by frictional forces. How does this layer cha
    14·1 answer
  • Steam enters a nozzle at 400°C and 800 kPa with a velocity of 10 m/s, and leaves at 300°C and 200 kPa while losing heat at a rat
    10·2 answers
  • Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per li
    15·1 answer
  • In what way do you think the motorcycles perform<br> work?
    10·1 answer
  • In order to reduce the waiting time further, a traffic light was installed to replace the yield sign. Assuming the departure pro
    5·1 answer
  • A 0.9% solution of NaCl is considered isotonic to mammalian cells. what molar concentration is this?
    10·1 answer
  • The National Electrical Code specifies that receptacles in certain areas of a house must have ground fault circuit interrupter p
    9·1 answer
  • What is the weakest link in the security of an IT infrastructure? What are some of the strategies for reducing the risks?
    11·1 answer
  • Select the correct answer.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!