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
s344n2d4d5 [400]
4 years ago
10

Consider the following code: x = 17 y = 5 print (x % y) What is output?

Computers and Technology
1 answer:
Ierofanga [76]4 years ago
7 0

Answer:

The output to given python code is "2".

Explanation:

The description of the python program as follows:

  • In the given code, two variable is defined that is, x and y in which contain assign value that is 17 and 5.
  • In this code, variable x modules variable y that is (x%y). In python or any other programming language, modules (%) will give a remainder that is "2".
  • To print calculated value we use a print function, that prints its value.
You might be interested in
Write a program that will use user input. The program should be called PrintNumberToWordie which prints "ONE", "TWO",..., "FIVE"
andrezito [222]

Answer:

import java.util.Scanner;

public class PrintNumberToWordie {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter a number");

       int num = in.nextInt();

       if(num == 1){

           System.out.println("ONE");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else if (num == 2){

           System.out.println("TWO");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else if (num == 3){

           System.out.println("THREE");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else if (num == 4){

           System.out.println("FOUR");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else if (num == 5){

           System.out.println("FIVE");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else if (num == 6){

           System.out.println("SIX");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else if (num == 7){

           System.out.println("SEVEN");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else if (num == 8){

           System.out.println("EIGHT");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else if (num == 9){

           System.out.println("NINE");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else if (num == 10){

           System.out.println("TEN");

           if(num%2==0)

               System.out.println("Divisible by 2");

       }

       else{

           System.out.println("No Match");

       }

 }

}

Explanation:

  • Using Java programming language
  • Import Scanner class
  • Prompt user to enter a number, receive and store in a variable
  • Use if and else if statements to check the value of the number and output the corresponding spelling
  • Use and inner if statement to check divisibility by two using the modulo operator
5 0
3 years ago
You are on vacation with your family and have been nominated to be the family photographer. You have a 13.1-megapixel camera. Wh
Alex

Answer:

Jpeg

Explanation:

7 0
3 years ago
Read 2 more answers
The search text that you type is called your _____.
Dvinal [7]
It's call your question I Bielive but I'm not sure what your 
6 0
4 years ago
¿Cuál es la función de un engranaje?
Oksana_A [137]

Answer:

Question:What is the function of a gear?

<u>spanish </u>

La función básica del engranaje es transmitir el movimiento giratorio, así como la potencia de un eje a otro. El engranaje o rueda dentada es una pieza giratoria de la máquina que tiene dientes cortados. Aquí hay algunos tipos de engranajes: Tipos de engranajes. Respuesta corta: ejes paralelos / engranaje recto, engranaje helicoidal, cremallera, engranaje interno.

Espero que haya sido útil. ¡Gracias!

<u>English</u>

The basic function of gear is to transmit rotary motion as well as power from one shaft to another. gear or cogwheel is a rotating machine part having cut teeth. Here are some types of gears: Types of gears. Short answer: Parallel Axes / Spur Gear, Helical Gear, Gear Rack, Internal Gear.

Hope that was helpful.Thank you!!!

6 0
4 years ago
Meghan signs into zoom to attend a video call for her online class. what kind of cloud service is she using?
Doss [256]

Meghan signs into zoom to attend a video call for her online class. She is using a SaaS cloud service.

What is cloud service?

A variety of services that are provided to businesses and customers on demand over the internet are referred to as "cloud services." With no internal infrastructure or hardware required, these services are intended to offer quick, economical access to resources and applications.

What is the main purpose of cloud services?

Access to computing resources and IT services should be simple and scalable, whether the cloud is private or public. The hardware and software elements necessary for the efficient use of a cloud computing architecture are included in cloud infrastructure.

What is a SaaS cloud service?

Using the software as a service (SaaS) paradigm, a cloud provider hosts programs and makes them accessible to customers online. The program will be hosted by a third-party cloud provider under this arrangement, which an independent software vendor (ISV) may agree to. Or the cloud provider may double as the software vendor for major organizations like Microsoft.

Learn more about cloud service: brainly.com/question/11014710

#SPJ4

5 0
1 year ago
Other questions:
  • Write a function named sortie that takes three integer parameters by reference and rearranges them in ascending order--the first
    6·1 answer
  • Fill in the function shopSmart(orders,shops) in shopSmart.py, which takes an orderList (like the kind passed in to FruitShop.get
    6·1 answer
  • Moore's Law states that the processing power of the latest computer chips doubles about every eighteen months. Assuming the grap
    6·1 answer
  • websites in which a question appears at the top with boxes underneath that help answer the question are called?
    10·1 answer
  • Draw a logic circuit for the function F = (A + B)(B + C)(A + C), using NOR gates only. ​
    9·1 answer
  • Which parts of the forebrain are sometimes described as the “executive center” and can be likened to the central processing unit
    9·1 answer
  • Write a Twitter class that sets the Twitter user first (who is to be followed) and lets the client add up to 5 followers, which
    10·1 answer
  • When using the Simple Query Wizard, Kirsten wanted to transfer all of her available data to a new table. She should click
    14·1 answer
  • Create ER Models &amp; Normalization for the following scenarios:
    5·1 answer
  • The design of a blog refers to:
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!