Question: Write a program for: (Please help) /* The USDA classifies pH in soil as follows: pH classification * less than or equal 5.0 strongly acidic

Write a program for: (Please help)

Write a program for: (Please help) /* The USDA classifies pH in

/* The USDA classifies pH in soil as follows: pH classification * less than or equal 5.0 strongly acidic moderately acidic * between 5.0 and 6.5 (including 6.5) * between 6.5 and 7.3 neutral * between 7.3 and 8.4 (including 7.3) moderately alkaline * greater than or equal 8.4 strongly alkaline * * Write the necessary code to * * - declare a variable to hold a pH value and assign that variable a test value between 4.0-9.0 I* - declare a String variable to hold the classification (for example "strongly acidic" write the code to determine the pH classification, and assign the classification the string variable -- write a printf statement to print the pH with one place past the decimal, along with the classification String -- test your program for a pH in each range. * * -- turn in your .java file */

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!