Question: Script is needed. Will give thumbs up for correct answers. Problem 1: The pH of an aqueous solution is a measure of its acidity. The

Script is needed. Will give thumbs up for correct answers.  Script is needed. Will give thumbs up for correct answers. Problem

Problem 1: The pH of an aqueous solution is a measure of its acidity. The pH scale ranges from 0 to 14, inclusive. A solution with a pH of 7 is neutral, a solution with a pH less than 7 is acidic and a solution with a pH greater than 7 is basic. Create a script file that will prompt the user to input the pH of a solution First check to see if the pH is invalid (outside the range of 0 to 14, inclusive). If it is invalid, generate an error message. An error message can be created with the following line of code: error ('Your pH is not in the proper range') . If the pH is valid then determine if the solution is acidic, basic, or neutral. Add fprintf statement(s) to display to the user the pH that was entered and whether the solution is acidic, neutral, or basic. Test your code using by creating 4 test cases to cover the four possible outputs (acidic, basic, neutral, and out of range). Fill in the table below with vour 4 test cases pH Entered? Script Output in Command Window from fprintf statement Test Case #1 Test Case #2 Test Case #3 Test Case #4 Paste your Script file commands here

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 Databases Questions!