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
Otrada [13]
3 years ago
3

Given that ph refers to a float, write a statement that compares ph to 7.0 and makes the following assignments (RESPECTIVELY!) t

o the variables neutral, base, and acid:
0,0,1 if ph is less than 7
0,1,0 if ph is greater than 7
1,0,0 if ph is equal to 7
Computers and Technology
1 answer:
Harrizon [31]3 years ago
4 0

Answer:

public class TestClock {

   public static void main(String[] args) {

   float pH=7.0;

   int neutral, base,acid;

   if(pH <7){

       neutral=0;

       base=0;

       acid=1;

   }

   else if(pH==7){

       neutral=1;

       base=0;

       acid=0;

   }

   else if(pH>7){

       neutral=0;

       base=1;

       acid=0;

   }

   }

}

Explanation:

Above is the solution to the problem implemented with Java programming language

  1. Create a variable called pH and initialize it (Note your code can also prompt a user to enter a value for this variable.
  2. Use if/elseif statements to check for the conditions as given in the questions and do all assignments as required

You might be interested in
Which of these can be considered data?<br> A:facts<br> B:information<br> C:belief<br> D:all of these
IceJOKER [234]

A) facts.

Facts is the only thing that can be considered REAL data.

6 0
3 years ago
I show you what the computer has processed and you have to look at my screen to see what I have for you. What am I?
Tamiku [17]

Hey,

The answer to this is the monitor. This is the screen or screens that hook up to your pc most of them use the modern HDMI but there are other connecters like DVI,DisplayPort  and the old VGA.

Hope this helps have a great day

-scav

6 0
3 years ago
Use the Crop tool on an image to
kenny6666 [7]

This tool is often used to remove borders, or to eliminate unwanted areas to provide you with a more focused working area.

B. to remove unwanted areas to the image

6 0
4 years ago
Read 2 more answers
Sub to the channel plz plz
Hunter-Best [27]

Answer:

um

Explanation:

6 0
3 years ago
Read 2 more answers
Memory: 5 bit addresses Cache: 8 blocks All memory locations contain valid data If the memory location is 15. What is the Binary
VMariaS [17]

Answer:

see explaination

Explanation:

If the cache contains 2k blocks, then the data at memory address i would go to cache block index ( i mod 2k )

Memory address = 5 bit

Cache block = 23

So, if the memory location is 9, then binary address = 01001 and cache block = 9 % 8 = 1 = 001

if the memory location is 12, then binary address = 01100 and cache block = 12 % 8 = 4 = 100

if the memory location is 15, then binary address = 01111 and cache block = 15 % 8 = 7 = 111

6 0
3 years ago
Other questions:
  • What keyboard shortcut keys selects cell A1
    12·1 answer
  • In a natural-language processing (NLP) system, the _____ activity involves using the computer to read large amounts of text and
    5·1 answer
  • Which pillar in the cisco iot system describes embedded networks that include compact form factor switch and router cards runnin
    5·1 answer
  • You are looking for ways to pay your higher education costs.Which of the following options will require you to pay back any mone
    6·1 answer
  • What are QBASIC Operators ?​
    11·2 answers
  • Insufficient vacuum will require the driver to _______________ to adequately activate the brakes?
    13·1 answer
  • . What is a destructor and what is its purpose?
    5·1 answer
  • Which online article citation is correctly formatted according to MLA standards?
    15·2 answers
  • PLEASE HELP ILL MARK BRAINLIEST!!!
    10·1 answer
  • Which of the following factors is least likely to result in delivery delays?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!