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

  Write a program in c++ which reads a string

The output should indicate the position where the first offending parenthesis is found if the string is not properly nested and balanced. Use a stack to track the left parenthesis.

  Examine the following pseudocode module

Examine the following pseudocode module header and then write a statement that calls the module, passing 8 as an argument. Module showValue Integer values

  Discuss the telecommunication sector structure

Discuss the telecommunication sector's structure (Physical nature, Events, Legislation, critical items, impact to others, impact to cybersecurity, etc.) Provide a brief historical review of the sector.

  Flow of control in java

Flow of Control in Java When processing data, it is necessary to make comparisons and validate the information entered. This week those skills will be learned by understanding the if-else and looping statements (while, do-while, and for-loop).

  Fill in the rest of the timing diagram

At time T, the switch is moved from position 1 to position 2 (down). Fill in the rest of the timing diagram with the logic values of the signals at points A, B, C, and D in the given circuit.

  Activity diagram of each step of ordering pizza

Draw an activity diagram representing each step of the process; from the moment you pick up the phone to the point where you are eating the pizza.

  What would tcp have to do

Suppose TCP senders did reliably get explicit congestion indications from routers. Assuming links as above were common, would it be feasible to support window sizes much larger than four segments? What would TCP have to do?

  Perception of the hacker changed over recent years

How has the perception of the hacker changed over recent years? (Lone wolf vs organized hacking groups) What is the profile of a hacker today?

  Displays the depreciation in value of a given item

Write a program in python 3.x that calculates and displays the depreciation in value of a given item. Given the following formulas:

  Generate a silhouette plot of your cluster model

Calculate the mean silhouette values for each cluster, as well as the overall mean silhouette for the cluster model.

  Study peoples behavior

Is it possible to study peoples' behavior without influencing it? Give two examples on how you would accomplish this and explain why you think people would not be influenced.

  What big o would describe the performance of the method get

What Big O would describe the performance of the method get Position?

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