Answered step by step
Verified Expert Solution
Question
1 Approved Answer
INTRODUCTION: In chemistry, neutralization occurs when an acid and a base react with each other. Most chemistry occurs in water (that is, is aqueous); under
INTRODUCTION: In chemistry, neutralization occurs when an acid and a base react with each other. Most chemistry occurs in water (that is, is aqueous); under these circumstances, neutralization leads to water with no excess hydrogen or hydroxide ions present. Neutralization can most simply be expressed as acid+basesalt+water For example, HCl+NaOHNaCl+H2O The stoichiometry of the reaction depends on how much hydrogen ion and hydroxide ion each reactant provides. In this case, each molecule of HCl provides one hydrogen ion, and each molecule of NaOH provides one hydroxide ion. The one hydrogen and one hydroxide ion combine to form one molecule of water. For this assignment, suppose that you have been presented with several solutions of hydrochloric acid (HCl) and some of the most popular bases for wastewater treatment: magnesium hydroxide (Mg(OH)2), calcium carbonate (CaCO3), calcium oxide (CaO), sodium bicarbonate (NaHCO3), sodium hydroxide (NaOH), and ammonia (NH4OH). The neutralization reactions are as follows: 2HCl+Mg(OH)2MgCl2+2H2O(1mol of Mg(OH)2 will neutralize 2mol of HCl) 2HCl+CaCO3CO2+CaCl2+H2O(1mol of CaCO3 will neutralize 2mol of HCl) 2HCl+CaOCaCl2+H2O(1mol of CaO will neutralize 2mol of HCl) HCl+NaHCO3CO2+H2O+NaCl(1mol of NaHCO3 will neutralize 1mol of HCl) HCl+NaOHNaCl+H2O(1mol of NaOH will neutralize 1mol of HCl) ASSIGNMENT: Write a C program that calculates how much base is required to neutralize a solution of hydrochloric acid. For this program, start with a solution that contains 5mol of HCl, incrementing by 5mol of HCl, up to a final solution containing 20mol of HCl. Let the HCl level be controlled by a while loop. Within the while loop, insert a for loop. This for loop should start at 1 , increment to 5 , and count up by 1 . This loop will act as the acid "selector". A value of 1 will be Mg(OH)2, a value of 2 will be CaCO3, a value of 3 will be CaO, a value of 4 will be NaHCO3, and a value of 5 will be NaOH. For each of these bases, calculate how much mass is need to neutralize the hydrochloric acid. (Hint: this will likely be easiest to do with embedded if statements). The output should print as a table
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started