(a) Rewrite the following using if else statement:
int x;
String s=(x%3=0)? “Divisible by 3" : "Not divisible by 3";
System.out.println(s);​

Answers

Answer 1

Answer:

int x;

String s;

if ((x%3) == 0) {

   s = "Divisible by 3";

} else {

  s = "Not divisible by 3";

}

System.out.println(s);​

Explanation:

A : B ? C generally translates to if (A) { B } else { C }.

Note the == to compare to 0. The single = in the original expression is a mistake.


Related Questions

What is a possible explanation for the issue described below? A user reports that ever since she or he began creating animations, graphics, and video clips for the company’s Web site on her or his computer, the computer has begun running slower, especially when performing the graphics functions. The computer needs an increase in VRAM. The computer needs an increase in SRAM. The computer needs an increase in SIMM. The computer needs an increase in RIMM.

Answers

VRAM because VRAM is used for graphic intensive workloads

Answer:

The computer needs an increase in VRAM

It is A

What is generation of computer ?​

Answers

I HOPE THIS INFORMATION WILL HELP YOU A LOT......

Generation in computer terminology is a change in technology a computer is/was being used. Initially, the generation term was used to distinguish between varying hardware technologies. Nowadays, generation includes both hardware and software, which together make up an entire computer system.

Hope this answer helps you..!!

..

..

Plz select it as the BRAINLIEST..!!

what is a computer in daily life​

Answers

Answer:

The use of computers on a regular basis in our life is very important. Technically in daily life computer is used to convert raw facts and data into meaningful information and knowledge. Computer science is explored and challenged by humans daily. The computer is like an electronic magical device for our life.

Explanation:

The IT manager has tasked you with installing new physical machines. These computer systems are barebone systems that simply establish a remote connection to the data center to run the user's virtualized desktop. Which type of deployment model is being used

Answers

The type of deployment model that is used is referred to as Thin client.

A thin client is also referred to as lean client. It is a model that runs on the resources that are stored on a central server rather than in the resources if the computer.

A thin client is useful for shared services, and desktop virtualization. The work carried out by the server include storage of data, performing if calculation, launching software programs etc.

On conclusion, since the information given in the question explains that there's a remote connection to the data center to run the user's virtualized desktop, then the deployment model is a thin client.

Read related question on:

https://brainly.com/question/13934016

explain the term creating in word processing​

Answers

Answer:

Explanation:

Word processing describes creating or editing a document using a word processor such as Microsoft word, etc For example, a student could create a book report in a word processor application.

Which is not true about climatic normals?

Multiple choice question.

A)
They can differ from daily weather conditions.

B)
They are gathered at one location.

C)
They are averaged over a 30-year period.

D)
They describe average conditions.

Answers

Answer:

I think c is correct answer

Explanation:

hope it's help yu

Write a program that takes the account's present value, monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function thatreturns the future value of the account, after the specified number of months. The program should print the account's future value.

Answers

Answer:

Assuming this is going to de made with python:

def main():

   currentValue = float(input("Current value of account: "))

   monthlyInterestRate = float(input("Monthly interest rate: "))

   monthsToWait = int(input("Amount of months the money will be left in the account: "))

   monthlyInterestRateToPercent = monthlyInterestRate / 100

   futureValue = float(round((currentValue + currentValue * monthlyInterestRateToPercent * monthsToWait), 2))

   print("The future value of this account will be " + str(futureValue))

main()

Explanation:

Hope this helped. Also, if this is incorrect please tell me what needs to be added so I can add it for future viewers. Have a good day :)

Richard needs to copy information from another slide presentation that uses a different design template. To ensure that the information he is copying looks right, which option should he choose?

Answers

Answer:

Yes, you can copy the slides over into a presentation with master slide. Then, right-click each slide, and choose to apply an appropriate template from the master slide

(from vik7336: Hi, I'm not sure about my answer for your question. So I hope this might help)

pasagot po please need lang po

Answers

me I can not see it oooo re write it

When you evaluate the use of digital media, how has it affected the newspaper business? The rise of digital media has caused newspaper subscriptions to decline significantly because people are finding their news online. The rise of digital media has had no measurable effect on newspaper subscriptions. The rise of digital media has caused newspaper subscriptions to increase because it has inspired people to care more about news. The rise of digital media has caused newspaper subscriptions to fluctuate depending on the time of year.

Answers

Answer:

The rise of digital media has caused newspaper subscriptions to decline significantly because people are finding their news online.

It is A

Answer:

The rise of digital media has caused newspaper subscriptions to decline significantly because people are finding their news online.

Cuál es la dirección de la última fila y columna de excel

Answers

Answer:

XFD 1,048,576.

Explanation:

Excel es un programa de Microsoft por el cual se generan bases de datos y planillas de cálculo, que permiten al usuario desarrollar registros contables referidos a sus distintas actividades comerciales, laborales o de otra índole, así como también realizar cálculos matemáticos y operaciones lógicas a través de distintas fórmulas. En la actualidad, el programa tiene un máximo de 16.384 columnas y 1.049.576 filas, con lo cual la ultima fila y columna de una hoja de cálculo será XFD 1.048.576.

Which are characteristics of a video with a higher
bit rate? Choose all that apply.
fewer frames per second
more frames per second
lower quality
higher quality
larger file size
smaller file size

Answers

Answer:

D and E.

Explanation:

Once the CPU has fetched the data requested, what are the next steps in the process?

A
execute, articulate

B
perform, execute

C
decode, analyze

D
decode, execute

MULTIPLE CHOICE

Answers

Answer:

D. decode execute

Explanation:

someone help me my browser is updated I don't know what to do someone help me please I'm trying to watch Crunchyroll.​

Answers

Answer: use chrome or firefox the browser app your using is one that they dont support

Explanation:

Answer:

get chrome and safari they help a lot

Explanation:

how can robots help us with online learning? 3 reasons please thank u :)​

Answers

Answer:

The use of robots increases the practicality of online education, such that the difference between in person attendance and online learning is minimized

In elementary school, robots can help deliver teaching materials in a class like setting, to students  who are unable to attend classes due to their current situation

In high school, simulators can give driving (and flying) lessons to would be drivers, without the exposure of the students to risk

Robots in higher education, such as medicine, can be used to carry out operational procedures with students where, there are no subjects to perform the surgical procedure on

The use of simulators makes possible training in disaster and crisis management

Explanation:

In needs analysis: Group of answer choices the costs of different physical network design alternatives are assessed the rate of growth of network traffic is not an issue a baseline of current operations is not important the geographic scope is not an important consideration the goal is to understand what users and applications the network will support

Answers

Answer:

the goal is to understand what users and applications the network will support.

Explanation:

A traditional network design approach is said to follow the structured systems of analysis as well design process that is similar to that which is used in building such applications. The main goal of the application developers is understand and study the needs of the users and also the application which the network will support.

Your company is a small start-up that has leased office space in a building shared by other businesses. All businesses share a common network infrastructure. A single switch connects all devices in the building to the router that provides internet access. You would like to make sure that your computers are isolated from computers used by other companies. Which feature should you request to have implemented

Answers

Answer:

VLAN

Explanation:

In this specific scenario, you should request that a VLAN is implemented at the location. This is a feature that allows you to connect a group of computers to the same network but at the same time make sure that your computers are separate from other groups of computers in the network. This acts as an entire LAN network with specific protection for each group of connected devices. This allows you to pick and choose which groups get allowed access and which ones are isolated from your network.

a program in matchine language is called​

Answers

Answer:

mcq

Explanation:

machine code is a computer program written in a machine code

write full information about first computer virus ?​

Answers

Answer:

A computer virus is a man made program just like other program.it is a harmful program developed intentionally to distrub the normal functioning of a computer.It can destroy data,information and other useful programs of the computer.As the result you will not get data,information and other useful progarams to use.when it destroy operating system software of a computer.

Answer:

The "Creeper system," the first computer virus, was an experimental self-replicating virus released in 1971. It was filling up the hard disk to the point that a computer could no longer function. BBN technology in the United States produced this virus. When the Creeper virus infects a computer, it causes it to output a file. It will then cease to function while it searches for another TENEX system. It creates a connection with the machine in question, and so on. Its last payload or impact when it's finished with a system is to display its message.

OAmalOHopeO

When you evaluate the use of digital media, how has it affected the newspaper business? The rise of digital media has caused newspaper subscriptions to decline significantly because people are finding their news online. The rise of digital media has had no measurable effect on newspaper subscriptions. The rise of digital media has caused newspaper subscriptions to increase because it has inspired people to care more about news. The rise of digital media has caused newspaper subscriptions to fluctuate depending on the time of year.

Answers

Answer:

The rise of digital media has caused newspaper subscriptions to decline significantly because people are finding their news online.

It is A

My serious question that needs answering pronto!!!
How do I turn my computer??? I keep on telling it very clearly to turn on and it doesn't budge. I'm pretty sure I pressed all the buttons and none of them worked. There is a button that is litten up in the corner but I'm afraid that if I press it, my computer will go in self-destruct mode. PLEASE HELP!!!

Answers

Answer:

It depends on what the button looks like but sometimes you need to press it. If it is an actual computer press the power on button attached to the box that should be hooked up to the computer.

Explanation:

Next, Sue decides to embed a chart from Microsoft Word. She copies and pastes data from a table that she has already created in a Word document. The table includes the results of her paper towel experiment. After reviewing her work, she realizes she needs to update one of the values.
How can she change that value so it is reflected in the chart in her presentation?
She can change the value in the original table in Word.
She can change the value directly on the chart in PowerPoint.
She can change the value using the Current Selection command group.
She can change the value in the mini- spreadsheet for the chart in PowerPoint.

Answers

Answer:

She can change the value in the mini- spreadsheet for the chart in PowerPoint.

Answer:

Answer is D

Explanation:

A government agency is getting rid of older workstations. The agency will donate these workstations, along with other excess computer systems, to nearby schools. Management reminds the systems administrators about the data sanitization and disposal policy. What policy items are applicable for these IT systems, prior to donating to the schools

Answers

The "DoD Standard" is a term used during the data sanitizing industry and refers to DoD 5220.22-M, and the further discussion can be defined as follows:

The simplest ways are being used to help eliminate the previously stored data, by deleting hard disc storage facilities with the same data wherever that used a sequence of all zeros.The sparging eliminates statistics to entirely delete the gravitational flux from electronic media. Hard drives as well as other data storage devices, for example, computer tapes, retain magnetic data. It could no longer be seen as storage after a disk is degaussed.

Therefore, the final answer is "Using the DoD 5220.22-M method and  Degauss media with a magnet".

Learn more:

brainly.com/question/13329582

what means the data is still saved even if you turn the computer off or unplug it?​

Answers

Answer:                      

Explanation:

The hard drive is long-term storage, which means the data is still saved even if you turn the computer off or unplug it. When you run a program or open a file, the computer copies some of the data from the hard drive onto the RAM. When you save a file, the data is copied back to the hard drive.

Which of the following is an example of sharing personal information in a risky manner?
posting about your favorite clothing brand
sending an e-mail to a recipient you know
using Microsoft Excel to create a spreadsheet
searching for a restaurant on

Answers

The example of sharing personal information in a risky manner would be

searching for a restaurant online.

How is this an example of sharing personal information in a risky manner

While the other options mentioned do not  inherently involve sharing personal information  in a risky manner searching for a restaurant online may involve providing personal information such as your location or contact details if you're making a reservation or placing an order.

It's important to be cautious while sharing personal information online and ensure that you're using secure and trusted platforms when providing sensitive details.

Learn more about personal information at

https://brainly.com/question/27034337

#SPJ1

Seneca needs to combine multiple cells into a single column heading. Which option should she use?

Wrap Text
Align Center
Merge and Center
Align Right

Answers

Answer: Merge and Center

Explanation:

Merge and Center is an option in the Home Tab that falls under the Alignment ribbon. It's function is to combine multiple cells so that the information written into this new combined cell can be used to input information that the user would like to be on multiple cells such as a column heading.

To use it, Seneca should highlight all the cells she would like to combine and go to the Alignment ribbon and click on Merge and Center.

Answer:

Merge and Center

Explanation:

Assume the existence of a Building class. Define a derived class, ApartmentBuilding that contains four (4) data members: an integer named numFloors, an integer named unitsPerFloor, a boolean named hasElevator, and a boolean named hasCentralAir. There is a constructor containing parameters for the initialization of the above variables (in the same order as they appear above). There are also two function: the first, getTotalUnits, accepts no parameters and returns the total number of units in the building; the second, isLuxuryBuilding accepts no parameters and returns true if the building has central air, an elevator and 2 or less units per floor.

Answers

Answer:

Explanation:

The following code is written in Java. The class ApartmentBuilding extends the assumed class of Building but does not call any of its methods since we do not have access to it. The ApartmentBuilding class contains all of the variables listed, as well as constructor and methods, including getter and setter methods for each variable. A test case for the class is provided in the image below with it's output.

class ApartmentBuilding extends Building {

   int numFloors, unitsPerFloor;

   boolean hasElevator, hasCentralAir;

   public ApartmentBuilding(int numFloors, int unitsPerFloor, boolean hasElevator, boolean hasCentralAir) {

       this.numFloors = numFloors;

       this.unitsPerFloor = unitsPerFloor;

       this.hasElevator = hasElevator;

       this.hasCentralAir = hasCentralAir;

   }

   public int getTotalUnits() {

       int total = this.numFloors * this.unitsPerFloor;

       return total;

   }

   public boolean isLuxuryBuilding() {

       if ((this.hasCentralAir == true) && (this.hasElevator == true) && (this.unitsPerFloor <= 2)) {

           return true;

       } else {

           return false;

       }

   }

   public int getNumFloors() {

       return numFloors;

   }

   public void setNumFloors(int numFloors) {

       this.numFloors = numFloors;

   }

   public int getUnitsPerFloor() {

       return unitsPerFloor;

   }

   public void setUnitsPerFloor(int unitsPerFloor) {

       this.unitsPerFloor = unitsPerFloor;

   }

   public boolean isHasElevator() {

       return hasElevator;

   }

   public void setHasElevator(boolean hasElevator) {

       this.hasElevator = hasElevator;

   }

   public boolean isHasCentralAir() {

       return hasCentralAir;

   }

   public void setHasCentralAir(boolean hasCentralAir) {

       this.hasCentralAir = hasCentralAir;

   }

}

Draw a circuit with a 12-volt battery, a 100 ohms resistor in series, and two resistors (each of value 200 ohms) in parallel. What is the total resistance of the circuit?

Answers

Answer:

200 Ω

Explanation:

Hi there!

Please see below for the circuit diagram.

1) Find the total resistance of the resistors in parallel

Total resistance in parallel equation: [tex]\frac{1}{R_T} = \frac{1}{R_1} +\frac{1}{R_2}[/tex]

Both the resistors measure 200 Ω. Plug these into the equation as R₁ and R₂:

[tex]\frac{1}{R_T} = \frac{1}{200} +\frac{1}{200}\\\frac{1}{R_T} = \frac{1}{100}\\R_T=100[/tex]

Therefore, the total resistance of the resistors in parallel is 100 Ω.

2) Find the total resistance of the circuit

Now, to find the total resistance of the circuit, we must add the 100 Ω we just solved for and the 100 Ω for the other resistor placed in series:

100 Ω + 100 Ω = 200 Ω

Therefore, the total resistance of the circuit is 200 Ω.

I hope this helps!

Consider the following scenario. As you troubleshoot the problem, what motherboard device would be the first to check? A user reports that his computer fails the POST upon startup. ROM CMOS RAM Power supply Processor

Answers

Answer:

The correct answer Power Supply

Explanation:

Sources are sets of instructions that may take parameters in order to answer a specific question within an API.

Answers

Answer:

True

Explanation:

API is application programming interface. APIs allow communication between applications/programs: they are basically "outside" data that can be accessed by an application by using it's code(example, how I may access go*gle fonts using it's API attached to my html stylesheet link).

The source is the code itself. Source code is the set of instructions that makes any program or application do whatever they do. An API is defined and works based on its source code.

Answer:

Methods

Explanation:

Methods, also called functions, are snippets of code that are meant to answer a specific question or perform a specific task. They will sometimes take parameters as input to provide more context for the question being asked, or task being performed.

Other Questions
Hettrick International Corporation's only product sells for $120.00 per unit and its variable expense is $52.80. The company's monthly fixed expense is $396,480 per month. The unit sales to attain the company's monthly target profit of $13,000 is closest to anyone know the answer? How did the New Deal expand the role of the federal government in nation's economy In which phase(s) of matter are the atoms closely packed but still able to slide past each other? O gas O liquid O solid and gas O liquid and solid Save and Exit Next Summit Mark this and return 52 POINTS I need help!Question 1The vertex form of the equation of a vertical parabola is given by, where (h, k) is the vertex of the parabola and the absolute value of p is the distance from the vertex to the focus, which is also the distance from the vertex to the directrix. You will use the GeoGebra geometry tool to create a vertical parabola and write the vertex form of its equation. Open GeoGebra, and complete each step below. If you need help, follow these instructions for using GeoGebra.Part AMark the focus of the parabola you are going to create at F(6, 4). Draw a horizontal line that is 6 units below the focus. This line will be the directrix of your parabola. What is the equation of the line?Part BConstruct the line that is perpendicular to the directrix and passes through the focus. This line will be the axis of symmetry of the parabola. What are the coordinates of the point of intersection, A, of the axis of symmetry and the directrix of the parabola?Part CExplain how you can locate the vertex, V, of the parabola with the given focus and directrix. Write the coordinates of the vertex.Part DWhich way will the parabola open? Explain.Part EHow can you find the value of p? Is the value of p for your parabola positive or negative? Explain.Part FWhat is the value of p for your parabola?Part GBased on your responses to parts C and E above, write the equation of the parabola in vertex form. Show your work.Part HConstruct the parabola using the parabola tool in GeoGebra. Take a screenshot of your work, save it, and insert the image below.Part IOnce you have constructed the parabola, use GeoGebra to display its equation. In the space below, rearrange the equation of the parabola shown in GeoGebra, and check whether it matches the equation in the vertex form that you wrote in part G. Show your work. Part JTo practice writing the equations of vertical parabolas, write the equations of these parabolas in vertex form: focus at (-5, -3), and directrix y = -6 focus at (10, -4), and directrix y = 6. What process creates new cells?A. cell divisionB. cell metamorphosisC. cellokinesis the inverse of f(x) is a function true or false Evaluate f(x) when x= 6.f(x)= {6x^2 +2 if 6 < x What are two eating disorders associated with Body Composition? Explain the negative effects on each. What roles does the media play in bodyshaming? The sun was shining on the sea shining with all his might what figurative language is this? It takes at least 3 lines to make a closed figure true or false Aliza is drawing a model of the community swimming pool on grid paper. Each square on the grid is 20 feet by 20feet. Find the tangent line equations for the given functions at the given point(s): f(x) = tan x + 9 sin x at (, 0) Pls help! I need to finish my test :/When certain stems from a plant grow outward along the ground and establish new roots and shoots , this is reproduction usingA: tubersB: runners C: layering D: corms Part CNext, you'll write a comparison of rhetoric in Stantons speech "A Plea for the Oppressed" and Lewis's speech at the King Memorial groundbreaking. First, plan out your analysis by answering the questions in the table.ANSWER: PLATOA Plea for the Oppressed by Lucy StantonWhat is the speakers purpose or point of view?What is a rhetorical appeal that Stanton makes to advance her purpose or point of view?How does Stanton use a rhetorical device to advance her purpose or point of view?Reformers should all work together to end slavery.Stanton uses a logos appeal to show that the rationale for ending slavery aligns perfectly with their own values.Stanton uses an extended metaphor that compares slavery to war to show that peace activists must support the abolition of slavery.Comparing Rhetoric in Stantons A Plea for the Oppressed and Lewiss Speech at the King Memorial GroundbreakingHow does Stantons rhetoric compare with Lewiss? Lewis has built-in ethos as a representative and friend of Kings. Stanton cannot rely on ethos as much but makes a persuasive case through logos. Find the volume of this object.Use 3 for aVolume of a CylinderV=77r2hVolume of a ConeV= r2h38 in4 in-13 inV~ [?]in3Help Find the volume of this solid. Select three physical forms of storage. USB drive Primary cache Magnetic storage Secondary cache Dynamic RAM Optical drive The compound chromium(II) chloride is a strong electrolyte. Write the transformation that occurs when solid chromium(II) chloride dissolves in water. Be sure to specify states such as (aq) or (s). Given that, 1 Chinese yuan = 0.09, convert 185 into Chinese yuan. Give your answer to the nearest yuan.