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

  What is technology s-curve

What is technology S-curve? Give an example that explains how to use S-curves to prescribe development of new component technologies.

  Findthree definitions object-oriented programming andcompare

The machine language treats a message as bits while object-oriented programming language treats every message as an object

  How are the business and the technology perspectives

Identify in which phase of the development process - How are the business perspectives and the technology perspectives of an informations system related.

  The sales office and the printer in the business office

A table identifying each subnet, the subnet address, subnet mask in dotted decimal, highest useable address, lowest useable address, and broadcast address.The IP address, subnet mask, and gateway address for the printer in the Sales office and the pr..

  Determine probability that contention ends on round k

Determine the probability that a contention ends on round k, and what is a mean number of rounds per contention period?

  Problem regarding the interrupts

What is the name given to a routine that is executed in response to an interrupt? What are the advantages of using interrupts to handle data inputs and outputs?

  How much electric power would be produced by these falls

Water flows over a waterfall, which is 120 m high, at a rate of 1.30E+6 kg/s. If half the potential energy of this water were converted into electric energy, how much electric power would be produced by these falls?

  Penetration testing & vulnerability assessments

Penetration Testing & Vulnerability Assessments

  Design a class named employeerecord that holds an employee

Design a class named employeeRecord that holds an employee

  Create a high high-level data flow diagram

Create a high high-level data flow diagram describing the typical traditional methods of renewing a subscription via mail to the print version of a magazine in systems analysis and design methods.

  Explaining use of information technologies to act ethically

When it comes to use of information technologies, it is frequently difficult to find out how to act ethically. Consider some of your own use of information technologies.

  Identifying the risks associated with the current position

Be sure to add a conclusion with a rationale detailing how risks can be mitigated. Reference your research so that Sean may add or refine this report before submission to senior management.

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