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
umka2103 [35]
3 years ago
6

Write an if/else statement that compares the double variable pH with 7.0 and makes the following assignments to the int variable

s neutral, base, and acid: a. 0,0,1 if pH is less than 7 b. 0,1,0 if pH is greater than 7 c. 1,0,0 if pH is equal to 7
Computers and Technology
1 answer:
Brilliant_brown [7]3 years ago
4 0

Answer:

int main()

{

   double pH;

   int neutral;

   int base;

   int acid;

   cout<<"Enter a pH Value";

   cin>> pH;

   if(pH<7.0){

       neutral =0;

       base=0;

       acid= 1;

   }

   else if (pH=7.0){

       neutral =1;

       base=0;

       acid= 0;

   }

   else{

       neutral =0;

       base=1;

       acid= 0;

   }

   cout <<"The neutral, Base and Acid Values are: "<<neutral<<","<<base<<","<<acid<<" Respectively"<<endl;

   return 0;

}

Explanation:

Using multiple if/elseif/else statement the following problem is solved with C++

You might be interested in
I connected to an external hard drive to transfer some photos from my vacation. When I try to drag the photo, it bounces right b
Ilia_Sergeevich [38]
Your answer is D.

Hope this helps and if you could answer the question I just uploaded titled giving brainliest that would be great. Basically, what you have to do is research why the book titled the list of things that will not change and explain why it’s your favorite book based on the message it tells you! Go to my profile and go to questions.
7 0
3 years ago
Đất trồng có tầm quan trọng như thế nào đối với đời sống của cây:
Ainat [17]

Answer:

C

Explanation:

5 0
3 years ago
You work in an office that uses Linux and Windows servers. The network uses the IP protocol. You are sitting at a Windows workst
Aleksandr-060686 [28]

Answer:

PING

Explanation:

To check if there's still connectivity between the computer and server, I would use the ping command.

The ping command is primarily a TCP/IP command. What this command does is to troubleshoot shoot. It troubleshoots connection and reachability. This command also does the work of testing the name of the computer and also its IP address.

4 0
3 years ago
What is the difference between web and internet ?
valina [46]
The difference between the web as well as the internet since usually they are used interchangeably is that mainly of the hardware as well as the digital content in where web is one's way of getting information over the internet while internet is compose of network of networks.
7 0
3 years ago
What is the name of the organization responsible for assigning public ip​ addresses?.
IgorC [24]

The worldwide body in charge of managing and supervising the coordination of the Internet's domain name system  is called the Internet Corporation for Assigned Names and Numbers (ICANN).

The Internet Engineering Task Force (IETF) is a sizable, open, and global community of network architects, operators, vendors, and academics with a focus on the development of the Internet architecture and the efficiency of its operation. Any anybody with an interest is welcome to join the IETF.

The IETF's working groups, which are categorized into various sections by topic, carry out the technical work for the organization (e.g., routing, transport, security, and more). Three times a year, the IETF organizes meetings, but the majority of the work is done via mailing list.

To know more about Internet  click here:

brainly.com/question/5787501

#SPJ4

6 0
1 year ago
Other questions:
  • I have one big question <br><br><br> WHAT CAN I DO WHEN I'M BORED
    6·2 answers
  • Is there anyone willing to sign into my google classroom account and help with my work :( i had surgery on monday and have about
    14·2 answers
  • How can an administrator force wireless clients to use a standard web browser to provide information, and require a user to agre
    10·1 answer
  • Explain why the 7 bit standard ASCII code needs to have the highest bit set to a zero
    11·1 answer
  • How to calculate a pid controller
    8·1 answer
  • Witch of the following is a malicious program that can replicate and spread from computer to computer?
    13·1 answer
  • Do you watch markiplier?
    13·2 answers
  • Me Completan Pliiiis
    11·1 answer
  • How is your approach to solving how to order your coins different from how a computer might have to approach it?
    12·1 answer
  • Anyone help me please​
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!