Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed 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 once

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

=+ how might this lead to faster growth in productivity?

Answered: 1 week ago