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
devlian [24]
3 years ago
9

The following code will not compile. Which of the options below would allow the code to compile and run as intended?

Computers and Technology
1 answer:
bixtya [17]3 years ago
6 0

Answer:

Follows are the code to this question:

x=int(input())#use input method with int that takes integer value from user-end  

if (x >= -10 and x<=10):#defining if block that checks x in between -10 to 10

   print("In range")#print message

Output:

6

In range

Explanation:

In this code, the choices were missing that's why the solution to this question can be defined as follows:

In this, x variable using the input method with the int, which takes integer value from the user-end. In the next step, the if block is used, that checks x value lies on between the -10 to 10, to check this condition it used the and logical operator, that run the code when both conditions are true, and at last, it prints the message "In range".

You might be interested in
What is the scope of AS-26
Ivan

Answer:

is held for use in the production or supply of goods and services or for rentals to others etc

4 0
3 years ago
When you right-click a word with a red squiggly line under it, which of the following displays?
katovenus [111]
A spelling menu appears after right clicking 
5 0
3 years ago
Read 2 more answers
In which situation would Accenture apply principles of Responsible Artificial Intelligence (AI)?
kolezko [41]

The concept of responsible AI describes an aspect of automation and machine learning an artificial intelligence which encourages the consciousness in model building and deployment in other to avoid damages or losses.

Responsible Artificial Intelligence ensures the consciousness and carefulness in the collection of data, defining algorithm , model building and other AI architecture which might have adverse or telling effect ok output if not properly monitored.

Accounting and engineering models are some of the cases where principles of responsible AI must be adopted in other to avoid damages or losses.

Learn more :brainly.com/question/25404945

3 0
3 years ago
Fill in the code to complete the following method for checking whether a string is a palindrome. public static boolean isPalindr
Ilia_Sergeevich [38]

Answer:

(s.charAt(0) != s.charAt(s.length()-1))

Explanation:

public class Palindrome

{

public static void main(String[] args) {

   

    System.out.println(isPalindrome("car"));

    System.out.println(isPalindrome("carac"));

 

}

   public static boolean isPalindrome(String s) {

       if (s.length() <= 1)

           return true;

       else if (s.charAt(0) != s.charAt(s.length()-1))

           return false;

       else

           return isPalindrome(s.substring(1, s.length() - 1));

   }

}

You may see the whole code above with two test scenarios.

The part that needs to be filled is the base case that if the character at position 0 is not equal to the character at the last position in the string, that means the string is not a palindrome. (If this condition meets, it checks for the second and the one before the last position, and keeps checking)

4 0
3 years ago
Technicans A says the engine camshaft converts reciprocating motion of the piston into rotary montion for power output. Technici
garri49 [273]

It doesn't say what Technician B thinks, but I can tell you what the camshaft does and then you can decide who is right on your own. The camshaft is little metal rounded triangles above the piston that times when the intake and exhaust valve open and close.

Technician A is very wrong, the camshaft doesn't do that.

6 0
4 years ago
Other questions:
  • Hey im trying to get a refund because i got charged 24$ for the yearly plan and i didnt know i would get charged can i get the y
    11·1 answer
  • Convert 1 pound into newtons
    8·2 answers
  • True or false? risk assessment should cover personnel, as well as technical support such as firewalls, secure operating systems
    13·1 answer
  • What is a programming language?
    11·2 answers
  • What feature of virtualization software allows you to revert to a previous point in time in the event you make an unrecoverable
    9·1 answer
  • Saved
    5·1 answer
  • In which type of modulation is a 1 distinguished from a 0 by shifting the direction in whichthe wave begins?
    14·1 answer
  • Which of the following statements is false? a. As of Java SE 8, any interface containing only one method is known as a functiona
    6·1 answer
  • Which practice enables recovery of accidental deletions in data records?
    11·1 answer
  • Exam Instructions
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!