Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
Chemists, biologists, and biochemists. are often interested 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 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: The pH level of solution 0.002 is 11.30103. The solution is basic. 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 Show your lab instructor that your program works

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

Step: 3

blur-text-image

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions