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

  Identify and explore challenges and opportunities

LO2 Identify and explore contemporary challenges and opportunities in information systems and to formulate an opinion or judgement and offer possible solutions.

  Reflect upon the it strategies

Reflect upon the IT strategies that are used to encourage economic development. Select two strategies and discuss how economic factors affect the strategies that a government may use to facilitate economic development.

  Summarize your experience with web hosting

Summarize your experience with web hosting, and Summarize your experience in a help desk and/or call center environment.

  Calculate the total due for a restaurant bill

Write a program that will calculate the total due for a restaurant bill. The program will ask the user how much was the meal charge. The program will then compute the tip amount and the tax amount and display the total.

  Briefly describe what the notion

Briefly describe what the notion of "normal operation" means to an executing computer program

  Two-way set associative with 32 kb capacity and 64 byte

1. Assume a two-way set associative with 32 KB capacity and 64 bytes blocks. a. How many bits are needed to represent the index size?

  Strayer oracle server

The Strayer Oracle Server may be used to test and compile the SQL Queries developed for this assignment. Your instructor will provide you with login credentials to a Strayer University maintained Oracle server.

  Programming the internet

Course: Programming the Internet (HTML5) Question: Describe at least two CSS features you find most useful. Explain how you would use these features in your future projects. Word Count: 500 Words Reference Style: HTML

  Categorize each of them into the area

During the Sarbanes-Oxley audit of a financial services company, you note the following issues. Categorize each of them into the area to which they belong: IT change management, logical access to data, and IT operations.

  Which of the following can increase reliability

Which of the following can increase reliability considerably in an Ethernet LAN

  Find 10s complement of a packed bcd number

Write a program for a 8086 microprocessor in ALP to find 10''s complement of a packed BCD number

  Store the corresponding indices in registers ax and bx

Store the corresponding indices in registers AX and BX respectively.

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