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
ki77a [65]
3 years ago
7

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

Computers and Technology
1 answer:
BARSIC [14]3 years ago
5 0

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.

You might be interested in
What is the service provided by a third party (such as an ISP) that enables you to connect another cloud directly to your Google
Olenka [21]

Answer:

A. Dedicated interconnect

Explanation:

With dedicated interconnect, there is a direct connection between your network and that of Google. It enables you to connect another cloud directly to your Google cloud resources to create hybrid cloud solutions. In other words, Dedicated Interconnect enables hybrid networking. Businesses can now extend their own private cloud into Google's cloud so they can switch control between the two with little latency. This gives them (businesses) control over the amount of data entering into the two clouds.

8 0
4 years ago
Which of the following information sources was not directly affected by the Telecommunications Act of 1996?
VMariaS [17]
Apparently, the answer is newspaper publishing.

Since telecommunication is defined to use wireless and electrical protocols to transmit data.
6 0
3 years ago
PLEASE I NEED HELP PLEASE PLEASE<br> Which function prompts the user to enter information?
Stels [109]

In python the input() function prompts the user to enter information.

5 0
3 years ago
Briefly summarize what vehicle forensics is.
Alenkinab [10]

Answer:

Vehicle forensics is a process that yields a myriad of data potentially helpful to all kinds of investigations, from law enforcement cases, to insurance fraud, to accident reconstruction. Many newer vehicles (generally 2008 and newer) are equipped with an infotainment system.

4 0
3 years ago
Which of these is a necessary component of any computer?
Aleonysh [2.5K]

Answer:

Components:

Components:1.Motherboard:

The motherboard is the core of the system. It really is the PC; everything else is connected to it, and it controls everything in the system. 2.Processor:

2.processor:

The processor is often thought of as the "engine" of the computer. It's also called the CPU (central processing unit).

3.Memory (RAM):

The system memory is often called RAM (for random access memory). This is the primary memory, which holds all the programs and data the processor is using at a given time.

4.Case/chassis:

The case is the frame or chassis that houses the motherboard, power supply, disk drives, adapter cards, and any other physical components in the system.

5.Power supply:

The power supply is what feeds electrical power to every single part in the PC.

6.Floppy drive:

The floppy drive is a simple, inexpensive, low-capacity, removable-media, magnetic storage device.

7.Hard drive:

The hard disk is the primary archival storage

memory for the system.

8.CD-ROM/DVD-ROM:

CD-ROM (compact disc read-only) and DVD-ROM (digital versatile disc read-only) drives are relatively high-capacity, removable media, optical drives.

9.Keyboard:

The keyboard is the primary device on a PC that is used by a human to communicate with and control a system.

10.Mouse

Although many types of pointing devices are on the market today, the first and most popular device for this purpose is the mouse.

11.Video card:

The video card controls the information you see on the monitor.

12.Monitor:

Monitor is output device.

13.Sound card:

It enables the PC to generate complex

sounds.

14.Modem:

Most prebuilt PCs ship with a modem (generally an internal modem).

6 0
2 years ago
Other questions:
  • You have two LANs connected via a router. Network 1 has a DHCP server with a single Ethernet interface. Network 2 does not have
    9·2 answers
  • Write a paper, 2-3 paragraphs that discuss how to defend ideas objectively through effective communication. Include the skills n
    6·1 answer
  • Jill is setting up a presentation and wants to use a built-in equation, such as the area of a triangle. To insert this in her pr
    14·2 answers
  • A wide variety of apps are available to customize devices, which category of app does word processing software falls into?
    10·1 answer
  • The user can set their own computer hostname and username. Which stage of the hardware lifecycle does this scenario belong to?
    6·1 answer
  • Select the correct answer.
    5·1 answer
  • When does the following while-loop stop running?
    10·1 answer
  • What is the output?
    11·1 answer
  • You have a team member on a remote project who is not fluent in English and
    15·1 answer
  • Identify the parts of it, Give at least three web browser that you usually used to visit a website.​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!