Design a program that displays the acidity level

Assignment Help Programming Languages
Reference no: EM13845908

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

Reference no: EM13845908

Questions Cloud

To explore and better understand organizational performance : To explore and better understand organizational performance and effectiveness through an organizational level perspective.
Lease with different rates and end of lease transactions : Journalizing a Lease with Different Rates and End of Lease Transactions. On January 1, 2013, Neeko (the lessee) entered a lease agreement with Merrick (the lessor) stipulating the following terms
Determined how social action is understood : Social theory that contends that reality is constructed; each society determined how social action is understood
Determination of appropriate inventory flow method : Objectives: Demonstrate application of Concepts pertaining to a Merchandising Company including the following: Determination of appropriate inventory flow method for Perpetual System
Design a program that displays the acidity level : The decision structure part of the program is missing. It should display the correct solution from the right column of the table.
Income statement for melanie mielke construction corporation : Melanie Mielke's annual sales were $9,000,000, at a gross margin of 15%. Selling expenses totaled $300,000, and administrative expenses totaled $800,000. Mielke is subject to a 30% income tax rate. Prepare the 20XX income statement for Melanie M..
Explain the results a use a program and data tendencies : Collect samples to prepare five observation each from a process. Determine if the process is in control or not. Explain the results a use a program and data tendencies that can be inferred in the report. Explain the results as pictures
Briefly describe the supply chain or warehouse : Briefly describe the supply chain or warehouse and then carry out a pareto analysis on the inventory holding and present the results.
Concept of evolution influenced the instrumentation : How certain interpretations of the concept of evolution influenced the instrumentation and measurement of "Intelligence" in the "Nature vs. Nurture" debate at the end of the XIX century and the beginning of the XX century

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd