Question

Given that ph refers to a float, write a statement that compares ph to 7.0 and...

Given that ph refers to a float, write a statement that compares ph to 7.0 and makes the following assignments (RESPECTIVELY!) to the variables neutral, base, and acid:

  • 0,0,1 if ph is less than 7
  • 0,1,0 if ph is greater than 7
  • 1,0,0 if ph is equal to 7
0 0
Add a comment Improve this question Transcribed image text
Answer #1
if ph < 7:
    neutral = 0
    base = 0
    acid = 1
elif ph > 7:
    neutral = 0
    base = 1
    acid = 0
else:
    neutral = 1
    base = 0
    acid = 0

Add a comment
Know the answer?
Add Answer to:
Given that ph refers to a float, write a statement that compares ph to 7.0 and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the titration of a weak acid with a strong base. Which statement below is true...

    Consider the titration of a weak acid with a strong base. Which statement below is true regarding the equivalence point in this titration? It occurs at a pH less than 7.0 because an acidic salt is formed. h It occurs at a pH greater than 7.0 because an acidic salt is formed. It occurs at a pH 7.0 because the acid has been neutralized It occurs at a pH greater than 7.0 because a basic salt is formed e It...

  • Consider the titration of a weak acid with a strong base. Which statement below is true...

    Consider the titration of a weak acid with a strong base. Which statement below is true regarding the equivalence point in this titration? It occurs at a pH less than 7.0 because a basic salt is formed. O It occurs at a pH greater than 7.0 because an acidic salt is formed. O It occurs at a pH = 7.0 because the acid has been neutralized. O It occurs at a pH less than 7.0 because an acidic salt is...

  • using C , comments will be appreciated. Question1 Write down an function named bitwisedFloatCompare(float number1, float...

    using C , comments will be appreciated. Question1 Write down an function named bitwisedFloatCompare(float number1, float number2)that tests whether a floating point number number1is less than, equal to or greater than another floating point number number2, by simply comparing their floating point representations bitwise from left to right, stopping as soon as the first differingbit is encountered. The fact that this can be done easily is the main motivation for biased exponent notation. The function should return 1 if number1...

  • Question 1: Write down an function named bitwisedFloatCompare(float number1, float number2) that tests whether a floating...

    Question 1: Write down an function named bitwisedFloatCompare(float number1, float number2) that tests whether a floating point number number1 is less than, equal to or greater than another floating point number number2, by simply comparing their floating point representations bitwise from left to right, stopping as soon as the first differing bit is encountered. The fact that this can be done easily is the main motivation for biased exponent notation. The function should return 1 if number1 > number2, return...

  • Match each of the following compounds to the pH prediction that indicates if it will gave...

    Match each of the following compounds to the pH prediction that indicates if it will gave an acidic, basic or neutral solution when dissolved in water. Clear All ammonium iodide The pH will be less than 7. barium perchlorate The pH will be approximately equal to 7. calcium fluoride The pH will be greater than sodium hypochlorite

  • what is the conjugate base of phosphoric acid 1. Give an example and write the formula...

    what is the conjugate base of phosphoric acid 1. Give an example and write the formula ofa) a. monoprotic acid Hydrochloric acid HOL 'Caud b. diprotic acid sulfuric acid H2SO4 c. triprotic acid phosphoric acid H3 por 2. For each of the above acids, write the formula of the conjugate base. a. HCL H +, ch' cagi ch coal ca ) b. H250g Hilag) + H So a ca a Bare acid 3. The pH of blood is 7.4 and...

  • (1) Given the following information: hydrocyanic acid HCN Ka = 4.0×10-10 diethylamine (C2H5)2NH Kb = 6.9×10-4...

    (1) Given the following information: hydrocyanic acid HCN Ka = 4.0×10-10 diethylamine (C2H5)2NH Kb = 6.9×10-4 (1) Write the net ionic equation for the reaction that occurs when equal volumes of 0.152 M aqueous hydrocyanic acid and diethylamine are mixed. It is not necessary to include states such as (aq) or (s). (2) At equilibrium will the reactants or products be favored? (3) Will the pH of the resulting solution be greater than, less than, or roughly equal to 7?...

  • Indicate whether each of the following compounds will give an acidic, basic or neutral solution when dissolved i...

    Indicate whether each of the following compounds will give an acidic, basic or neutral solution when dissolved in water. Clear All ammonium chloride The pH will be less than calcium nitrite The pH will be approximately equal to 7 potassium nitrate The pH will be greater than 7 ammonium nitrate For the following reaction, the reactants are favored at equilibrium. Classify each of the reactants and products based on their strength as Bronsted-Lowry acids or bases. CIO+CHINHCH N + HCIO...

  • 1. When titrating of an acid of HF and Ca(OH) 2 , the PH at equivalent...

    1. When titrating of an acid of HF and Ca(OH) 2 , the PH at equivalent point: A. pH will be less than 7 at the equivalence point. B. pH will be greater than 7 at the equivalence point. C. titration will require more moles of base than acid to reach the equivalence point. D. pH will be equal to 7 at the equivalence point. E. titration will require more moles of acid than base to reach the equivalence point....

  • c++ Given the following code: int number = 50; Write the if statement to print “yes” and add...

    c++ Given the following code: int number = 50; Write the if statement to print “yes” and add one to the number variable if the value stored in the number variable is greater than 50 or less than or equal to 75.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT