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

  Types of formal management plans

1. There are many types of formal management plans (scope, schedule, communication, etc.,) that should be created in order to complete a project on time and within budget. Consider the group project that you worked on for this class and choose one..

  How the development and use of new medical technology

Explain how the development and use of new medical technology, such as new diagnostic procedures and treatments, has increased spending and accounts for one-half to two-thirds of the increase in healthcare spending in excess of general inflation.

  Describe the components of the procurement plan

If you were a contractor, which type of contract would you prefer most and which would you like least? Explain your choices. Your explanation should demonstrate that you are familiar with the definitions of the contracts you chose and at least one..

  Find the dimensions of the new box

The It's A Snap Puzzle Company is designing new boxes for their 2000 piece 3-D puzzles. The old box measured 25 centimeters by 30 centimeters by 5 centimeters. For the new box, the designer wants to increase each dimension by a uniform amount.

  What is the size of the packet

In SCTP, a packet is carrying a COOKIE ACK message and a DATA chunk. If the user data is 20 bytes, what is the size of the packet?

  Create a controller fsm and connect it to the data path

Use the earlier test bench to simulate the controller/data path system to verify correct behavior.

  Algorithm to find the kth largest key

Given two sorted arrays A and B, of sizes n1 and n2 respectively, design an algorithm to find the kth largest key. The order of growth of the worst case running time of your algorithm should be log n, where n = n1+n2

  Creates corresponding holes in the target file

creates corresponding holes in the target file.

  Creating a database design in visio

Suppose a local college has tasked you to develop a database that will keep track of students and the courses that they have taken. In addition to tracking the students and courses, the client wants the database to keep track of the instructors te..

  Project identification and business environment

Establish authorities and responsibilities for database security management. Develop operational and incident management procedures when security breaches are discovered.

  Create own version of either a hiring or termination policy

What clauses should a termination policy contain to prevent disclosure of an organization's information? Create your own version of either a hiring or termination policy

  Consumer shopping on the web is often called

Consumer shopping on the Web is often called

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