Question: 1. Create a program that prompts the user to enter a the pH number of an aqueous solution (as a decimal number). The program

1. Create a program that prompts the user to enter a the

1. Create a program that prompts the user to enter a the pH number of an aqueous solution (as a decimal number). The program then uses the number to determine if the solution is acidic (0 7). (The program should also handle impossible pH values, like or negative values.) The program should then print a message stating whether the solution is acidic, neutral, or alkaline. An Example of How the Program Could Run The program prompts the user to enter the pH number of an aqueous solution. Suppose that the user enters 5.2. The program could print the following message into the Terminal window. The pH is 5.2, so the solution is acidic. Suppose that the user instead enters 7. The program could instead print the following message into the Terminal window. The pH is 7.0, so the solution is neutral.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!