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

Please help i will give brainilest

Engineering
2 answers:
Eduardwww [97]3 years ago
8 0

Answer:

I hot u

Explanation:

it makes things function better and more fluently than a manual version of the certain object

Troyanec [42]3 years ago
3 0

Answer:

l m a o

Explanationl

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
How do you remove a manual transmission?
Citrus2011 [14]

Answer:

Step 1

Elevate the front of the vehicle using the floor jack and support the vehicle with two jack stands. Make sure the vehicle is stable.

Step 2

Disengage all electrical components connected to the transmission. Indicate by marking the position of the drive shaft for its reinstallation. From the output shaft, remove the rear U joint. Jam the cloth to keep the liquid from dripping out of the extension housing.

Step 3

Loosen the shift linkages and the speedometer cable from the transmission manually. Place the transmission jack under the transmission, and then take a socket wrench and remove the support nut, the cross-member, and the rear support insulator from the rear engine. Support the engine with a jack stand and use the transmission jack to withdraw the transmission toward the rear of the vehicle.

Explanation:

4 0
4 years ago
suppose we number the bytes in a w-bit word from 0 (less significant) to w/8-1 (most significant). write code for the followign
sammy [17]

Solution:

typedef  unsigned  char  *byte_pointer;

static int  int_of_bit  (byte_pointer x,  int  loc)

{

                  return(x[loc] << loc*8);

}  

static int  replace_byte(unsigned int a,  int loc,  unsigned int  b)

    unsigned int a_loc = int_of_bit((byte_pointer) &a ,  loc);

    unsigned int b_loc = (b  <<  loc*8);

 

     a  -=  a_loc;

      a  += b_loc;

      return a;

}

Explanation:

This takes two ints in hex format, one with 8 bits (0x00000000) and one with 2 bits (0x00) then places the 2 bit hex into the 8 bit at a given location.

EX:  replace_byte(0x00000000, 1, 0xFF) return 0x0000FF00

First thing first, it looks like you have some mixup:

" one with 8 bits (0x00000000) and one with 2 bits (0x00)*- what you mean is nibble not bits. Each hex character (0-9, A-F) represent 4 bits (16 possible combination), and is called a "nibble".

0x0000000 is 4 bytes. 0x00 is 2 bytes.

Next, you say "takes two ints in hex format" - your function takes two ints in any format. You're just choosing tp express them in hexidecimal. C++ doesn't care if you specify numbers in hex, decimal, octal, binary, etc.

8 0
3 years ago
Match the benefit of full synthetic oil with engine conditions: All engines
mart [117]

Answer:

1. All engines  exhibit wear over time ⇒ <em>Synthetic Improves engine protection by resisting oil breakdown.</em>

Synthetic oil does not breakdown so easily which means that it protects the engine more and protects it from wearing.

2. Engines are cold at start-up and not while running ⇒ <em> Synthetic provides maximum protection in extreme hot and cold temperature conditions.</em>

By providing protection for the engine during cold and hot conditions, the engine will not be too cold when the car is started up.

3.  If oil is thicker, engines lose power and efficiency ⇒ <em>Synthetic has greater resistance to oil thickening to maintain engine efficiency.</em>

Part of the characteristics of synthetic oil is that it does not get as thick as regular oil which means that the adverse effects of thick oil are spared on the engine.

7 0
3 years ago
All aspects of the Kirby-Bauer test are standardized to assure reliability. What might be the consequence of pouring the plates
EleoNora [17]

Answer:

it would affect the distance the antiantibodies diffuse from the disk

Explanation:

7 0
2 years ago
Other questions:
  • Two wafer sizes are to be compared: a 156-mm wafer with a processable area = 150mm diameter circle and a 312-mm wafer with a pro
    10·1 answer
  • When a traffic officer directs you proceed through the intersection
    6·1 answer
  • Name three functions of anti-rust engine additive.
    12·1 answer
  • A pump is used to deliver water from a lake to an elevated storage tank. The pipe network consists of 1,800 ft (equivalent lengt
    10·1 answer
  • For a refrigerator, COP&lt;1 a) True b) False
    14·1 answer
  • Barry wants to convert mechanical energy into electric energy. What can he use?
    5·2 answers
  • How do I design a BCD to seven-segment decoder using a single decoder and OR gates only?
    9·1 answer
  • A questiom for the big carb himself no cap
    7·1 answer
  • Two long pipes convey water between two reservoirs whose water surfaces are at different elevations. One pipe has a diameter twi
    13·1 answer
  • How is the purple stem trait variation similar to the tougue-rolling trait variation
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!