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

  Develop a functional web-based application for a calculator

Develop a functional web-based application for a calculator. It does not need to be live; you can provide JavaScript, CSS, and HTML files. The calculator should successfully complete addition, subtraction, multiplication, and division operations.

  Write program to caculate value of user-s stock

Write a program which caculates value of user's holding of a particular stock. Program asks for number of shares held, whole ¬dollar portion of price for one share, also the fraction portion.

  Create a program that keeps track

Create a program that keeps track of the following information input by the user: First Name, Last Name, Phone Number, and Age. Now - let's store this in a multidimensional array that will hold 10 of these contacts. So our multidimensional arra..

  Reservations system to be horizontal or vertical application

Top Sail Realty Situation: Top Sail Realty is one of the largest time-sharing and rental brokers for vacation cottages. Do you consider the reservations system to be a horizontal or a vertical application? Give reasons for your answer.

  Sketch state diagram for machine using sw

Sketch the State Diagram for machine using any SW (i.e. MS Visio).: Print out your VHDL Code and Simulation waveforms for you design 3 Points: Print out your VHDL Code for your self-checking Test Bench

  Determine if a word is a palindrome

Determine if a word is a palindrome. Using a doubly link list read in a word character by character Store each character in its own node. Keep a counter of the number of characters that make up the word.

  Identify the errors

Identify the errors in the following program segment. Determine the output displayed when the button is clicked:

  Find use of dom to change the contents of an html text box

This statement will include the names of files or sections of code within a file for which he or she has been solely responsible, and the Web address of files that are visible on the group Web server space. A response such as ‘It was basically a j..

  Designing system to handle donations of non-profit agency

You have been hired by worldwide non-profit agency to create a system to handle their donations.

  Write a report on t linux kernel programming

Write a report on  t Linux Kernel programming.  Giving a brief introduction about Linux in general, then give in details information about Linux Kernel Programming.

  Prompt input function

You have no guarantees about the accuracy of the input from the user. You have to check all input and give helpful error messages to assist the user.

  Differentiating client-side and server-side scripting

Understanding difference between client-side and server-side scripting is significant when developing interactive sites. When and why should you use client-side versus server-side scripting?

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