Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to read a number and print the pH value, environmental effect and example element based on the following tables of PH Category
Write a program to read a number and print the pH value, environmental effect and example element based on the following tables of PH Category Environmental Effects Example Element Value 0 Battery acid 1 Sulfuric acid 2 Lemon juice, vinegar 3 Orange juice, soda 4 Acidic All fish die Acidic rain, acidic lake 5 Frog eggs, tadpoles, Bananas, Clean rain crayfish and mayflies die 6 Rainbow trout begin to Healthy lake, milk die 7 Neutral Pure water 8 Sea water, eggs 9 Baking soda 10 Milk of Magnesia Basic Ammonia 12 Soapy water 13 Bleach Liquid drain cleaner Ensure that only valid pH values are entered by user. Display "Invalid pH value" error messa rany invalid value. Using your creativity, implement the program by applying multiple more than one) programmer- defined functions in the program ENG ENG 2:47 PM 19/12/2020
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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