What are the absolute and relative errors for both totals

Assignment Help Basic Computer Science
Reference no: EM131341571

This project requires the use of programming in a computer language or a computational tool. A chemical is added a drop at a time to a container in which a reaction is occurring. Each drop is measured as precisely 0.xxxx mL. The total amount of the chemical must be computed after each drop is added. Write a program to perform the calculation in two ways: by incrementing the previous total by 0.xxxx (accumulated) and by multiplying 0.xxxx (multiplied) by the number of drops so far. At the beginning of the program, ask the user for the number of iterations and the reporting interval. Print the iteration number and both ongoing totals at the requested intervals. Use the last 4 digits of your phone number as the nonzero digits in the measurement of the drop of the chemical. Replace zeros with different odd digits. For example, with a phone number of 555-9389, use 0.9389; and with 555-8090, possibly use 8193. Sample output for 0.xxxx = 0.9389 is as follows:

508_3c4f8d7b-1f02-4636-b49b-f450f936fb41.png

Print the output and report for each of the following:

a. Run the program with a reporting interval of 1 to determine the first iteration in which there is a difference between the two computations. What are the absolute and relative errors for accumulated at that point? Is there an error for multiplied?

b. Run the program with a reporting interval of 1,000,000. What are the absolute and relative errors for both totals?

c. Run the program with a reporting interval of 999,999. What are the absolute and relative errors for both totals?

d. Run the program with a large enough number of iterations and a large reporting interval so that eventually the value of accumulated does not change from one report to the next. What explanation do you have for this phenomenon?

Reference no: EM131341571

Questions Cloud

Develop an employee compensation and benefits package : Develop an employee compensation and benefits package for this new position. Support your ideas for the compensation/benefits package.
Maintaining long-term professional relationships : One of the most important aspects of negotiating with someone or a business that you have a long-term and on-going relationship with is maintaining that relationship post-negotiation. Consider the following negotiation:
Prepare an implementation plan for change : Prepare an implementation plan for change that would enable Gar Finnvold to create a fully competitive computer service within two years.
What are dual relationships : What are dual relationships? Why are these relationships considered harmful
What are the absolute and relative errors for both totals : Run the program with a reporting interval of 1 to determine the first iteration in which there is a difference between the two computations. What are the absolute and relative errors for accumulated at that point? Is there an error for multiplied?
Write about the employee development : Write about the "EMPLOYEE DEVELOPMENT".- Write the references after each paragraph and the end of the assignment.
Determine at least five information technology roles : Determine at least five information technology personnel / roles that would be in place in order to start the business venture of gaining better traction of customer satisfaction and loyalty. Justify your response.
Health care reform initiatives : Healthy People 2020 can be viewed as a strategic approach for improving the health of the US population over a ten-year timeline, applicable nationally, regionally, and in states, counties, cities and towns. ... The Healthy People strategy was des..
What did you learn about your chosen strategy : What did you learn about your chosen strategy? What information surprised you? How will you use this information in the future? Make sure to cite the class text

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Use ethernet network data link protocols

Is possible to use Ethernet network data link protocols on a Token Ring network? Explain why or why not.

  Find the first four terms of recursively defined sequence

Find the first four terms of the recursively defined sequence bk = 2k - bk - 1, for all integers k greater than or equal to 2, where b1 = 4

  Fraction with a denominator

Simplify each of the following algebraic expressions. All sets are assumed to be subsets of a universal set U.

  What is the maindifference between the fms attack

What is the maindifference between the FMS attack and Chopchop attack? Clearly explain youranswer in 600 words.

  Business process engineering

Does LEAN practice concepts align closely with Business Process Engineering?

  Creates a simple arraylist

Creates a simple ArrayList

  Management roles-various law enforcement agencies

Review chapter 5 and create a table listing and ranking (from first to last and according to relative importance when responding to a disaster) the different it management roles, various law enforcement agencies, emergency agencies/organizations

  What value would you use for the standard

Each operator completes the job twice at different times during the week, and the following results are obtained. What are your conclusions about the use of a common time standard for all jobs in this class? What value would you use for the standa..

  Determine whether the system is linear and time-invariant

Determine whether the system is linear and time-invariant. Hint: You can check the response to the input x[n] = (-1)nu[n]. Why?

  Establish the model design conditions

It can be assumed that the important liquid properties are the density, ρƒ and the viscosity, μƒ . Establish the model design conditions and the prediction equation for the system.

  American psychological association

American Psychological Association (APA) style report (6th edition). Next, review the APA requirements. Then, explain what you believe to be the most challenging aspect of APA formatting.

  Fit a linear regression model to the data

A plant distills liquid air to produce oxygen, nitrogen, and argon. The percentage of impurity in the oxygen is thought to be linearly related to the amount of impurities in the air as measured by the "pollution count" in parts per million (ppm).

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