Write a c++ program that prompts the user for a number

Assignment Help Basic Computer Science
Reference no: EM131400348

(Numerical) Given a number, n, and an approximation for its square root, a closer approximation to the actual square root can be obtained by using this formula:

1685_13b2a392-9654-4dcc-9c66-bd7b6c1b11ab.png

Using this information, write a C++ program that prompts the user for a number and an initial guess at its square root. Using this input data, your program should calculate an approximation to the square root that's accurate to 0.00001.

Reference no: EM131400348

Questions Cloud

Define the type of damages the plaintiffs are claiming : Was this a criminal or civil case? Define the "tort" involved and explain the details of the case that led you to your conclusion. Define the type of damages the plaintiffs are claiming
Determine the probability that for a randomly chosen day : Suppose the daily amount of solar radiation in Los Angeles is normally distributed with mean 450 calories and standard deviation 50. Determine the probability that for a randomly chosen day, the amount of solar radiation is between 350 and 550.
What is the probability of observing an income : A large computer company claims that their salaries are normally distributed with mean $50,000 and standard deviation 10,000. What is the probability of observing an income between $40,000 and $60,000?
Determine the probability of observing an income : Assume that the income of pediatricians is normally distributed with mean μ =$100,000 and standard deviation σ = 10,000. Determine the probability of observing an income between $85,000 and $115,000.
Write a c++ program that prompts the user for a number : Using this information, write a C++ program that prompts the user for a number and an initial guess at its square root. Using this input data, your program should calculate an approximation to the square root that's accurate to 0.00001.
Determine the probability of a randomly selected battery : A manufacturer of car batteries claims that the life of their batteries is normally distributed with mean μ = 58 months and standard deviation σ = 3. Determine the probability that a randomly selected battery will last at least 62 months.
Discuss the capability maturity model integration : After watching the videos below and reading about the Balanced Scorecard in Chapter 12, compare and contrast the Balanced Scorecard to one of the IT frameworks below (COBIT, ITIL, TOGAF, CMMI-Dev). Describe the context in which the Balanced Scorec..
Determine the octal value of a mask : Determine the octal value of a mask that can be inclusively ORed with the bit pattern in flag to reproduce the third and fourth bits of flag and set all other bits to 1. Again, the rightmost bit in flag is considered bit 0.
What is a confidence interval for the average bounce : Experience has shown that the standard deviation of the bounce is .30. If X = 1.70, and assuming normality, what is a .90 confidence interval for the average bounce?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create a plot of a cubic spline fit

Create a plot of a cubic spline fit of following data with natural end conditions: x 0 100 200 400f(x) 0 0.82436 1.00000 0.73576. compare the plot with the following equation which was used to create data.

  Osi model presentation

Develop a 6- to 8-slide presentation with detailed speaker notes in which you do the following: Explain the layers of the OSI Model and how data flows through the model.

  Critique website that is different to rest of our friends

Web devolving assignment - Critique a website that is different to the rest of our friends-classmates.

  Adopting a multifaceted policy

In response to escalating school violence, the Green County School Board is considering adopting a multifaceted policy to address school safety. The draft policy contains the following provisions:

  Impact of environmental changes on an organization

Suppose that an organization did not use processes that were designed and built to be agile, particularly when it comes to IS / IT technologies. Predict the impact of environmental changes on an organization financially, socially, and in terms of ..

  Describe your chosen architecture pattern

Describe your chosen architecture pattern. Explain why you selected the architecture of this case study.Explain how your chosen pattern could be applied to this case study.

  What is the inductive hypothesis

Show that the base case is true and What is the inductive hypothesis P(k)?

  Find the trim method in the string class’s documentation

Find the trim method in the String class's documentation. Write down the signature of that method. Write down an example call to that method on a String variable called text.

  Areas under the standard normal curve

Without consulting a table or a calculator giving areas under the standard normal curve, determine the area under the standard normal curve that lies to the right of 1.84.

  What can be achieved by rivalry of neural network

What animal group will a bat be assigned to by the network modeled in the Example 02 program?

  Create a visualization that includes additional information

Create a visualization that includes this additional information.

  Estimate of the capm beta of commercial property

The market price of risk is 6% and the average risk-free rate has been 4%. What is the best estimate of the CAPM Beta of commercial property in Australia?

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