The ph of an aqueous solution is a measure

Assignment Help Basic Computer Science
Reference no: EM13861088

Microsoft Word - HW#9.docx

In chemistry, the pH of an aqueous solution is a measure of its acidity. A solution with a pH of 7 is said to be neutral, a solution with a pH greater than 7 is basic, and a solution with a pH less than 7 is acidic.

A structure is created to store the PH value of a solution. This structure has two fields: one is called 'SolutionName', and the other is 'PH'. An example of such a variable is created as: sol1 = struct('SolutionName', 'water', 'PH', 7);

Write a function that will take in one such a variable as the input argument, determine its acidity based on the pH value, add another field 'acidity' with the determined value (neutral, basic, or acidic ) to this structure, and return this new structure as the output.

For example, if the above sol1 is used as the input, the output variable would be:

OutputVar =
    SolutionName: 'water'
              PH: 7
         Acidity: 'neutral'

 

 

Reference no: EM13861088

Questions Cloud

Know how to process command line arguments : Through this programming assignment, the students will learn to do the following: Know how to process command line arguments. Perform basic file I/O.
Theater seating revenue with input validation : Theater Seating Revenue with Input Validation: A dramatic theater has three seating sections, and it charges the following prices for tickets in each section:  Section A seats cost $20 each
Discuss the differences between external and internal threat : Discuss the differences between external and internal threats as they relate to network security. Which threat is most difficult to defend against and why? What protections would be used specifically related to internal threats? Why is it important f..
Display to the screen the first 20 numbers : Design an algorithm that will display to the screen the first 20 numbers, with their squares and cubes, as follows: Number Square Cube
The ph of an aqueous solution is a measure : Microsoft Word - HW#9.docx In chemistry, the pH of an aqueous solution is a measure of its acidity. A solution with a pH of 7 is said to be neutral, a solution with a pH greater than 7 is basic, and a solution with a pH less than 7 is acidic.
Design a program that will read a file of employee records : Design a program that will read a file of employee records containing employee number, employee name, hourly pay rate, and regular hours worked and overtime hours worked. The company pays its employees weekly, according to the following rules:Regular..
The development process includes planning : The development process includes planning, coding and debugging of code to create the programs that solve real-world applications. Before embarking on a project, one must do a fair amount of project planning as well to maintain documentation througho..
Create the mrp tables for all parts of the cd cabinet : Using the MRP Forms - create the MRP tables for all parts of the CD cabinet for a 12 week planning period. Note: You need to adjust the forms to work with this assignment by adding the required information
Design a program that will read a file of product records : Design a program that will read a file of product records, each containing the item number, the item name, and the quantity sold this year and the quantity sold last year. The program is to produce a product list showing the item number, the item nam..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Find the type of grammar

S - > a ? b | b ? c | aB S-> ? S|b

  Describe the security vulnerabilities expoited

Describe the security vulnerabilities expoited by the hackers in the 21st century bank heist case study

  Department of management information systems

Identify the benefits of using e-learning from the perspective of students of the first level in the Department of Management information systems.

  Explain the use of current technologies fight cyber crime

Explain to the university (in a whitepaper) the characteristics of high-tech crime also known as Internet, cyber, and computer crime. Explain the use of current technologies to both carry out and fight cyber crime.

  Describing dichotomy is not linearly separable

Let the d component of x be either 0 or 1. Assume we assign x to w1 if number of non-zero components of x is odd, and to w2 otherwise. Illustrate that this dichotomy is not linearly separable if d>1.

  Discuss beneficial impacts and negative effects of piracy

Summarize the information found in the articles in 4 full paragraphs. The blog entry should discuss the beneficial impacts and negative effects of the topic, it shouldn't be a review of the articles. The articles are used to find fact-based inform..

  Explain the five activities of systems analysis

In a one-page paper: explain the five activities of systems analysis and offer any additional activities you feel should be added (from your reading or experience).

  Emerging technology

Emerging Technology

  Research the major middleware providers

The language to use if need is Java. Make sure you cite references and adhere to the academic guidelines for writing a research paper.

  Does use of text messages make students less to perform

Does the use of text messages make students less likely to perform well in formal writing assignments? Why? or Why not?

  The progress report you will describe

The progress report you will describe your progress and analysis of the unfinished solution. At this time you should be able to take stock of your skills and abilities and match them against the project requirements.

  Chosen to enter a new person into the contact list

Contact list project where The user enters first name, last name, street address, email address, phone number and notes.

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