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
Slav-nsk [51]
3 years ago
12

What is the output of the following code X = 06 y = 0 print (x ** y)

Computers and Technology
1 answer:
Margarita [4]3 years ago
7 0

Answer:

x=6 and y=0

Explanation

You might be interested in
Define a function print total inches, with parameters num_feet and num_inches, that prints the total number of inches. Note: The
GenaCL600 [577]

Answer:

   <em>public static void printTotalInches(double num_feet, double num_inches){</em>

<em>        double inches = 12*num_feet;</em>

<em>        System.out.println("Total value in feets is: "+(inches+num_inches));</em>

<em>    }</em>

This function is written in Java Programming Language. Find a complete program with a call to the function in the explanation section

<em>Explanation:</em>

<em>public class ANot {</em>

<em>    public static void main(String[] args) {</em>

<em>//Calling the function and passing the arguments</em>

<em>    printTotalInches(5,8);</em>

<em>    }</em>

<em>    public static void printTotalInches(double num_feet, double num_inches){</em>

<em>        double inches = 12*num_feet;</em>

<em>        System.out.println("Total value in feets is: "+(inches+num_inches));</em>

<em>    }</em>

<em>}</em>

6 0
3 years ago
An object reference is required for the nonstatic field method or property True or False
Marizza181 [45]
I believe its false.
6 0
3 years ago
How to find the largest number in an array java?
melomori [17]

Answer:

<em>One of the ways is to sort the array, then print the last element of the sorted array.</em>

<em>In Java, you can make use of the following code</em>

import java.util.Scanner;

public class Assignment{

public static void main(String [] args)

{

int n;

Scanner input = new Scanner(System.in);

System.out.print("Array Length: ");

n = input.nextInt();

int [] myarray = new int[n];

System.out.print("Input Array: ");

for(int i=0;i<n;i++)

{

           myarray[i]=input.nextInt();

}

int temp;  

for (int i = 0; i < n; i++)  

       {  

           for (int j = i + 1; j < n; j++)  

           {  

               if (myarray[i] > myarray[j])  

               {  

                   temp = myarray[i];  

                   myarray[i] = myarray[j];  

                   myarray[j] = temp;  

               }  

           }  

       }  

           System.out.println(myarray[n - 1]);

       }

}

Explanation:

This line declares n as length of array

int n;

Scanner input = new Scanner(System.in);

This line prompts user length of array

System.out.print("Array Length: ");

This line gets the user input

n = input.nextInt();

An empty array pf length arrowed

int [] myarray = new int[n];

This line prompts user array elements

System.out.print("Input Array: ");

The following iteration gets array element from user

<em>for(int i=0;i<n;i++)</em>

<em>{</em>

<em>            myarray[i]=input.nextInt();</em>

<em>}</em>

This line declares a temporary variable temp

int temp;

<em>This iterations iterates through the elements of rge array</em>

<em>for (int i = 0; i < n; i++)   </em>

<em>        {  </em>

<em>            for (int j = i + 1; j < n; j++)   </em>

<em>            {  </em>

The following if condition checks for the larger of two variables and swap their position

<em>                if (myarray[i] > myarray[j])   </em>

<em>                {  </em>

<em>                    temp = myarray[i];  </em>

<em>                    myarray[i] = myarray[j];  </em>

<em>                    myarray[j] = temp;  </em>

<em>                }  </em>

           }  

       }  

This line prints the largest number of the array

           System.out.println(myarray[n - 1]);

5 0
3 years ago
In many cases, a ribbon organizes buttons and options in Select one: a. menus. b. sections. c. toolbars. d. groups.
katrin2010 [14]

Answer:

The answer is Groups

Explanation:

A ribbon organizes buttons and a program’s options into a series of groups or tabs at the top of the window. Typical ribbon tabs are composed of groups that are labeled as closely related commands. Dividing commands into groups in most Microsoft Office application helps users structure users structure the commands into related sets.

5 0
4 years ago
Read 2 more answers
What do rocket scientists mean when they say, "forces come in pairs?"
zhenek [66]
According to Newton's third law, for every action force there is an equal (in size) and opposite (in direction) reaction force.
6 0
3 years ago
Other questions:
  • Mary needs to choose the _____ menu in order to place the text in a desirable fashion around the image
    12·2 answers
  • Write a program that takes a three digit number (input) and prints its ones, tens and hundreds digits on separate lines
    14·1 answer
  • Llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    7·1 answer
  • What file name would allow you to easily find and edit your document later in Word Online?
    14·2 answers
  • What type of multimedia are live news feeds? Live news feeds are examples of ________ multimedia. 20 POINTS PLZ HELP
    5·2 answers
  • Hydraulic pressure is the same throughout the inside of a set of brake lines. What determines the amount of resulting mechanical
    7·1 answer
  • In which step of web design is storyboarding helpful?
    10·1 answer
  • Question # 4
    5·1 answer
  • Plz help me to learn python and thx
    7·1 answer
  • Explain in detail what it means to synchronize computers and mobile devices and include at least two strategies for keeping your
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!