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
lawyer [7]
4 years ago
9

Suppose that you created an robot that was so advanced it could act independently in very complex situations. It made its own de

cisions and always did exactly what it wanted to do, in accordance with its programming. Would such an robot be capable of free action? Why or why not
Computers and Technology
1 answer:
Mashutka [201]4 years ago
8 0
It should not be capable of free action because there's no telling if it would be friendly for good remarks or mean for rude remarks
You might be interested in
2. Using the Enhanced for Statement, write an application that uses an enhanced for statement to sum the double values passed by
solniwko [45]

Answer:

Here is the program:

public class DoubleValue

{ public static void main(String[] args) { //start of the main function

 double sum = 0.0;  // initialize double type sum by 0.0

//for statement to sum the double values passed by the command-line //arguments

       for (String str : args)        {  

         sum += Double.parseDouble(str);  

//returns double representation of the passed str argument and takes the //sum of these double values         }

       System.out.printf("The sum of the double values passed in from the command line is %.1f\n", sum);  }  }      

//prints the above message with output 0.0                                  

Explanation:

The above program has a static method parseDouble of class Double to convert a string str to a double value and the for statement is used to sum the double values passed by command line arguments. This sum is stored in sum variable and is displayed in the output. The program along with its output is attached.

If you want to get the input from the user you can use the following code. Just use the Scanner class to take input from the user.

import java.util.Scanner;

public class DoubleValue

{ public static void main(String[] args) {

//two string type variables

 String str1;

               String str2;

//scans and reads input from user

Scanner input = new Scanner(System.in);

System.out.println("Enter value of str1: ");

str1 = input.next();

System.out.println("Enter value of str2: ");

str2 = input.next();

double sum = 0.0;

//sum double values and parseDouble function is used to convert string to //double value

sum += Double.parseDouble(str1) + Double.parseDouble(str2);

System.out.printf("The sum of the double values passed in from the command line is %.1f\n", sum); } }  //prints result of the sum

5 0
3 years ago
By default, the hyperlink will display the text in the hyperlink itself, such as the web URL. How can this behavior be modified?
Arte-miy333 [17]

Answer:

Text to display

3 0
3 years ago
What is the difference between chrome and chromium browser?
olga_2 [115]
Have minor differences in features, logos, & licensing
8 0
4 years ago
You are working with a worksheet on which cell B3 is selected. You hold down the Ctrl key and the Shift key and click cell B6. W
Keith_Richards [23]

Answer:

"B3 and B6 will selected"

Explanation:

  • If the worksheet is opened by the user and he is in the cell B3, then the B3 and B6 are selected, If the user clicks the B6 after pressing the ctrl and the shift key.
  • The shift and ctrl are used to select any two cells in the MS-Excel worksheet.
  • The above question asked about which cell is selected when the user in on cell B3 and press the B6 while holding the ctrl and shift key. So the answer is "B3 and B6".
8 0
3 years ago
This is gonna be very long but I have no idea what to do, I'm confused.
kaheart [24]

for such experiment, you do it with care and to acquire and determine to put experience in it

Explanation:

because without you been or using experience the experiment will not correct

8 0
3 years ago
Other questions:
  • Determine the value of base x of (211)x=(152)8
    8·2 answers
  • Consider the binary search tree constructed for the words oenology, phrenology, campanology, ornithology, ichthyology, limnology
    14·1 answer
  • One cost of starting your own business is _____.
    12·1 answer
  • When doing black and white photography, which file format should you use if possible? JPEG TIFF PNG RAW
    11·2 answers
  • If you attempt an edgeunity quiz is your latest attempt the one counted?
    10·1 answer
  • HELP!!! Bad things about Helen Keller. I'm doing a debate and i need to prove that Steve Jobs is better than Helen Keller!!
    14·1 answer
  • What was your favorite animals, game, photo, friends,
    7·2 answers
  • Among the following protocols, terminology or considerations, indicate those that are associated with routing within a single ne
    5·2 answers
  • Is the color grade of black or white higher?
    11·2 answers
  • Hue purchased 50 shares of stock on April 24, 2019. The price skyrocketed, so she decided to sell the stock in April of 2020. Wh
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!