Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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?

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92095151

Have any Question?


Related Questions in Computer Engineering

How to design a java program that reads a sentence say s

How to design a Java program that reads a sentence, say s, consisting of lower-case words with .nextLine() method, identifies the words using .indexOf() and .substring() methods and saves them in String variables. Then t ...

Given the following three months of data what is the

Given the following three months of data what is the coefficient of variation? t, R_t 1, 21.01% 2, -13.83% 3, 15.67% 4, 0.88% 5, -1.32% Express your answer in total return decimal format.

Discuss the concept of intrinsic value and how it is

Discuss the concept of intrinsic value and how it is determined. Include a real-world example.

How social capital enhance well-being in high density

How Social Capital enhance well-being in high density community?

Assessment details part 1 design documentation and peer

Assessment Details: Part 1: Design Documentation and Peer Review This stage requires you to select a problem to solve using one of the available Mindstorms Robots, design a possible solution to this problem and submit th ...

Suppose we want to build a b tree that has space for 200000

Suppose we want to build a B+ tree that has space for 200,000 data entries in its leaf pages. Each data entry is made up of a key and its corresponding data value. Let us assume the following specifications. Each page (l ...

Explain how amazon and walmart companies use information

Explain how Amazon and Walmart companies use Information and Communication Technologies (ICT) in their competitive strategies. Highlight the differences in their use of ICT.

Research ways that information systems have been misused

Research ways that Information Systems have been misused. Using the Internet, find an example of an organization that has misused Information Systems. Post your response to the discussion board. Respond to the following ...

Question suppose that new more powerful arithmetic

Question : Suppose that new, more powerful arithmetic instruction are added to the instruction set. On average, through the use of these more powerful arithmetic instructions, we can reduce the number of arithmetic instr ...

Suppose a particular fa called fin has the property that it

Suppose a particular FA, called FIN has the property that it had only one final state that was not the start state. During the night, vandals come and switch the + sign with the - sign and reverse the direction of all th ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As