Write an if statement that assigns 100 to x when y is equal to 0.

Answers

Answer 1
Answer:

Answer:

if(y==0)

{

   x=100;

}

Explanation:

The above written if statement is for assigning 100 to x when the value of y is equal to 0.To check the value of the y I have used equal operator == which returns true when the value on it's left side is equal to the value to it's right else it returns false and for assigning the value to y I have used assignment operator =.

First it will be checked that the value y is equal to 0.If the then it return true means the if statement will execute.Inside if statement 100 is assigned to x.


Related Questions

Allows an administrator to query a dns database and find the host name associated with a specific ip address or
Cloud storage refers to the storage of data on ______.a. your mobile device.b. your desktop computer.c. an external drive.d. a server on the Interne.
NMCI is the name used for a large-scale effort to link Navy and Marine Corps computer systems on bases, boats, and in offices around the world. When completed, this internal WAN will use Internet technology to link soldiers in the field with support personnel on bases, etc. NMCI is an example of a(n):
The italic button is located on the
Which of these is outside the scope of an art director's responsibility?

Which of the following are common problems experienced with software applications? (choose all that apply)faulty microprocessor

missing DLL files

installation issues

configuration issues

applications running slowly

kernel panic

power cords not being plugged in

Answers

The common problems experienced with software applications will be missing DLL files, installation issues, configuration issues, applications running slowly, and kernel panic. Then the correct options are B, C, D, E, and F.

What are the common problems experienced with software applications?

Today's world depends heavily on technology. Technology now controls not just how businesses run but also how quickly many different sectors across the world are developing. The pace of technical development dictates the rate of development and company growth, leaving human progress and economic expansion at the whim of technology.

Some of the common problems are as follows:

  • Missing DLL files
  • Installation issues
  • Configuration issues
  • Applications running slowly
  • Kernel panic

The normal issues experienced with programming applications will be missing DLL documents, establishment issues, arrangement issues, applications running gradually, and part alarms. Then the right choices are B, C, D, E, and F.

More about the common problems with software applications link is given below.

brainly.com/question/29704760

#SPJ12

Answer:

All but the top and bottom on edge 2020

Explanation:

The getValue() method is overridden in two ways. Which one is correct?1.

public class Test {

public static void main(String[] args) {

A a = new A();

System.out.println(a.getValue());

}

class B {

public String getValue() {

return "Any object";

}

class A extends B {

public Object getValue() {

return "A string";

}

2.

public class Test {

public static void main(String[] args) {

A a = new A();

System.out.println(a.getValue());

}

class B {

public Object getValue() {

return "Any object";

}

class A extends B {

public String getValue() {

return "A string";

}

a.I
b.II
c.Both I and II
d.Neither

Answers

Answer:

Hi there KatiesTomato! The answer is: b. II

Explanation:

Java allows us to override a method defined in the main or Parent class by re-defining it in the child class. In the question, the first option gives us code that will throw an error because the String method getValue() in class B is being overridden by a method in class A which returns an Object which is also a String. So the compiler will throw an error that type Object is not compatible with String. Option 2 will compile successfully and return a String because the Object is allowed to be converted to a String.

Which statement is written correctly?

Answers

Answer:

B.

Explanation:

In Javascript, the if should have a condition attached to it with parenthesis and curly braces.

Write a program that asks the user to enter two numbers,obtains the two numbers from the user and prints the sum,product,difference, and quotient of the two numbers

Answers

Answer:

#include<iostream>

using namespace std;

//main function

int main(){

   //initialization

   float a1,a2;

//display the message

cout<<"Enter the first number: ";

   cin>>a1;  //store the value

   cout<<"Enter the second number: ";

   cin>>a2;   //store the value

   //display the calculation result

   cout<<"The sum is: "<<a1+a2<<endl;

   cout<<"The Subtraction is: "<<a1-a2<<endl;

   cout<<"The product is: "<<a1*a2<<endl;

   cout<<"The Quotient is: "<<a1/a2<<endl;

}

Explanation:

Create the main function and declare the two variables of float but we can enter the integer as well.

display the message on the screen and then store the input enter by the user into the variable using the cin instruction.

the same process for second input as well, display the message and store the input.

after that, print the output of the calculation. the operator '+' is used to add the two numbers like a1+a2, it adds the number stored in the variable.

similarly, the subtraction operator is '-', product '*' and quotient operator '/'.

and finally, we get the desired output.

one of the 4 vs of big data that refers to uncertainty due to data inconsistency and incompleteness, ambiguities, latency, deception, and model approximations is . select one: veracity volume validity variety

Answers

one of the 4 vs of big data that refers to uncertainty due to data inconsistency and incompleteness, ambiguities, latency, deception, and model approximations is veracity.

What is veracity?

Conformity with truth or fact : accuracy. : devotion to the truth : truthfulness. 3. /vəˈraes.ə.ti/ the quality of being true, honest, or accurate: Doubts were cast on the veracity of her alibi. Synonyms.  Veracity is the quality of being true or the habit of telling the truth. He was shocked to find his veracity questioned. Veracity refers to the quality of the data that is being analyzed. High veracity data has many records that are valuable to analyze and that contribute in a meaningful way to the overall results. Low veracity data, on the other hand, contains a high percentage of meaningless data. This type of source is the starting point for any historian-researcher. Some written sources are forgeries.

To know more about veracity visit:

brainly.com/question/21093435

#SPJ4

Load the titanic sample dataset from the Seaborn library into Python using a Pandas dataframe, and visualize the dataset. Create a distribution plot (histogram) of survival conditional on age and gender

Answers

Answer:

Following is given the data as required.

The images for histograms for age and gender are also attached below.

I hope it will help you!

Explanation: