Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Programming C 6. Write a program to read a number and print the pH value and example element based on the following pH scale: PH
Programming C
6. Write a program to read a number and print the pH value and example element based on the following pH scale: 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 Milk of Magnesia 11 Basic Ammonia 12 Soapy water 13 Bleach 14 Liquid drain cleaner 10 Apply proper data validation in this program. 7. Modify the program written for Question (6) to print the category, and environmental effects on the screen too. Avoid from repeating the printing statement more than onceStep 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