The decision structure part of the program is missing it


The pH of a solution is a measure of its acidity. The table on the next page shows pH values and their meaning. The partial pseudocode below the table designs a program that displays the acidity level that corresponds to a solution's pH entered by the user. The decision structure part of the program is missing. It should display the correct solution from the right column of the table. Fill in the missing decision structure

pH Range

Solution

pH < 3

Very acidic

3 <= pH < 7 (pH is >= to 3 and < 7)

Acidic

pH = 7

Neutral

7 < pH < 12 (pH is > 7 and < 12)

Alkaline

pH >= 12

Very alkaline

start
declarations
num pH
string PROMPT = "Enter pH: "
string VERY_ACIDIC = "The solution is very acidic"
string ACIDIC = "The solution is acidic"
string NEUTRAL = "The solution is neutral"
string ALKALINE = "The solution is alkaline"
string VERY_ALKALINE = "The solution is very alkaline"
output PROMPT
input pH
// missing decision structure
stop

Solution Preview :

Prepared by a verified Expert
Programming Languages: The decision structure part of the program is missing it
Reference No:- TGS01126103

Now Priced at $30 (50% Discount)

Recommended (91%)

Rated (4.3/5)