Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chemists, biologists, and biochemists, are often interested in calculating the pH level of a given solution. A solution with a pH level less than 7

image text in transcribed

Chemists, biologists, and biochemists, are often interested in calculating the pH level of a given solution. A solution with a pH level less than 7 is acidic, otherwise, it is basic. Determining the pH of a solution is important, since many organisms and micro-organisms can only live in a limited pH range. Write a C++ program that calculates and prints the pH level, and states whether the solution is acidic or basic. The input is concentration of hydroxide ions, denoted OH^- and is a real number The concentration of hydronium ions, abbreviated H^+ is calculated by the formula H^+ = 10^-14/OH^- The pH level can then be computed with pH = -log(H^+) For example, if the input solution is 0.002, your program should print something like this: Use proper loop structure, meaningful variable names, proper indentation, and appropriate comments. Use the format and style described in the assignment guidelines. Here are four hydroxide concentrations to use as test input 0.002 0.00006 0.000000007 0.0000000009

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Build It For The Real World A Database Workbook

Authors: Wilson, Susan, Hoferek, Mary J.

1st Edition

0073197599, 9780073197593

More Books

Students also viewed these Databases questions

Question

=+Which associations exist?

Answered: 1 week ago