so long so long so long so long so long
Explanation:
so long so long so long so long so long so long so long so long so long so long
in c the square root of a number N can be approximated by repeated calculation using the formula NG = 0.5(LG + N/LG) where NG stands for next guess and LG stands for last guess. Write a function that calculates the square root of a number using this method. The initial guess will be the starting value of LG. The program will com- pute a value for NG using the formula given. The difference between NG and LG is checked to see whether these two guesses are almost identical. If they are, NG is accepted as the square root; otherwise, the next guess (NG) becomes the last guess (LG) and the process is repeated (another value is computed for NG, the difference is checked, and so on). The loop should be repeated until the difference is less than 0. 005. Use an initial guess of 1. 0. Write a driver function and test your square root function for the numbers 4, 120. 5, 88, 36.01, 10,000, and 0. 25
PLEASE İN C PROGRAMMİNG
Answer:
Following are the program to the given question:
#include <stdio.h>//header file
double square_root(double N, double initialGuess)//defining a method square_root that takes two variable in parameters
{
double NG, LG = initialGuess,diff;//defining double variable
while(1)//use loop to calculate square root value
{
NG = 0.5 * (LG + N / LG);//using given formula
diff = NG - LG;//calculating difference
if(diff < 0)//use if to check difference is less than 0
diff = -diff;//decreaing difference
if(diff < 0.005)//use if that check difference is less than 0.005
break;//using break keyword
else//defining else block
{
LG = NG;//holding value
}
}
return NG;//return value
}
int main()//defining main method
{
double ans, n,initialguess = 1.0;//defining double variable
n = 4;//use n to hold value
ans = square_root(n, initialguess);//calculating the square root value and print its value
printf("square_root(%lf) = %lf \n", n, ans);//print calculated value with number
n = 120.5;//use n to hold value
ans = square_root(n, initialguess);//calculating the square root value and print its value
printf("square_root(%lf) = %lf \n", n, ans);//print calculated value with number
n = 36.01;//use n to hold value
ans = square_root(n, initialguess);//calculating the square root value and print its value
printf("square_root(%lf) = %lf \n", n, ans);//print calculated value with number
n = 0.25;//use n to hold value
ans = square_root(n, initialguess);//calculating the square root value and print its value
printf("square_root(%lf) = %lf \n", n, ans);//print calculated value with number
printf("\nEnter a number: ");//print message
scanf("%lf", &n);//input value
ans = square_root(n, initialguess);//calculating the square root value and print its value
printf("square_root(%lf) = %lf \n", n, ans);//print calculated value with number
}
Output:
Please find the attachment file.
Explanation:
In this code, a method "square_root" is declared that takes two variable "N, initialGuess" in its parameters, inside the method a three double variable is declared.It uses the given formula and uses the diff variable to hold its value and uses two if to check its value is less than 0 and 0.005 and return its calculated value.In the main method, three double variables are declared that use the "n" to hold value and "ans" to call the method that holds its value and print its value.Your new team is working hard, but they are all less experienced than you and don't complete their tasks as quickly.What would you be most and least likely to do? (A). Reach out to your manager to discuss the situation.Try to identify the best way to support the new associates. (B).Remind your coworkers of performance expectations and that they need to be working harder to complete tasks. (C). Offer to help others complete their tasks; observe their work process and provide some tips that might help them. (D). Give your coworkers more time to figure out how to do the task; they likely just need more practice with what they've already learned.
SN1 reactions usually proceed with ________. A) equal amounts of inversion and retention at the center undergoing substitution B) slightly more inversion than retention at the center undergoing substitution C) slightly more retention then inversion at the center undergoing substitution D) complete inversion at the center undergoing substitution E) complete retention at the center undergoing substitution complete retention at the center undergoing substitution slightly more retention then inversion at the center undergoing substitution complete inversion at the center undergoing substitution equal amounts of inversion and retention at the center undergoing substitution slightly more inversion than retention at the center undergoing substitution
Answer:
equal amounts of inversion and retention at the center undergoing substitution
Explanation:
In an SN1 reaction, the rate determining step is the formation of a carbonation which is flat and planar.
This means that both faces of the carbo cation are equally available for attack by the nucleophile.
Attack on either of the faces may occur equally thereby yielding a racemic mixture.
"All data types are keywords but all keywords are not data types", justify this statement.
Keywords Are Reserved Words Which Are Not Use As Normal Cases But Used For Special Purpose In Our Program whereas, Data Type Tells The Compiler And Interpreter How The Program Is Going To Be Executed And Can Be Used At Every Cases.
Hope This Helps You ❤️Based on how they are stored in the computer, the types produced by these keywords can be categorized into two families, integer types and floating-point types.
What is the relation between data and keyword?Bit, byte, and word are terminology that can be used to refer to either memory or data storage units in computers.
The main distinction between text fields and keyword fields is that text fields are examined during indexing, whereas keyword fields are not.
This means that while keyword fields are indexed exactly as is, text fields are split down into their constituent phrases at indexing to allow for partial matching.
A word or collection of words that an Internet user enters into a search engine or search bar to conduct a search is referred to as a keyword in the context of digital marketing.
Therefore, All data types are keywords, but all keywords are not data types.
Learn more about data and keywords here:
https://brainly.com/question/9588905
#SPJ2
what is the difference between a series circuit and a parallel circuit?
Answer:
In a parallel circuit, the voltage across each of the components is the same, and the total current is the sum of the currents flowing through each component. ... In a series circuit, every device must function for the circuit to be complete. If one bulb burns out in a series circuit, the entire circuit is broken.
Explanation:
1.1.2
Energy
1.1.3
Mass
1.1.4
Temperature
Power
1.1.5
1.2 State Ohm's law
1.3 State Joule's law
1.5 Name four factors that9 determine the resistance of the material
1.6 What is the SI Unit for current?
QUESTION 2
Answer:
the energy is sgdrh35679
A projectile is fired horizontally with an initial speed of 50.0 m/s. Neglect air resistance.a) What is the magnitude of the displacement of the projectile 3.00 s after it is fired?b) What is the speed of the projectile 3.00 s after it is fired?c) What is the magnitude of the acceleration of the projectile 3.00 s after it is fired?
Answer:
a) 156 meters
b) 58 m/s
c) 9.8 m/s^2
Explanation:
a) The horizontal displacement X = V *t
X = 50 * 3 = 150 meters
Vertical displacement = y = – g * t² / 2
Y = -9.8 *3*3/2 = -4.9*9 = 44.1
Net Displacement = Sqrt (X^2 +Y^2) = 156.34 = 156 meters
b) Speed of the projectile
vx = 50 m/s
vy = t*g = 9.8*3 = 29.4
V = Sqrt (vx^2 + vy^2) = 58 m/s
c) Acceleration is the acceleration due to gravity = 9.8 m/s^2
The magnitude of the displacement of the projectile is equal to 156 meters.
Given the following data:
Initial speed = 50.0 m/s. Time = 3.00 seconds.Scientific data:
Acceleration due to gravity (g) = [tex]9.8 m/s^2.[/tex]How to calculate the displacement.Mathematically, the magnitude of the displacement of a projectile is given by this formula:
[tex]Horizontal\;displacement = Vt\\\\Horizontal\;displacement = 50.0 \times 3.00[/tex]
Horizontal displacement = 150.0 meters.
[tex]Vertical displacement =\frac{1}{2} gt^2\\\\Vertical displacement =\frac{1}{2} \times 9.8 \times 3^2\\\\Vertical displacement =\frac{1}{2} \times 9.8 \times 9[/tex]
Vertical displacement = 44.1 meters.
[tex]D^2 = X^2 +Y^2\\\\D =\sqrt{44.1^2+150^2}[/tex]
D = 156.34 ≈ 156 meters.
b. For the speed of the projectile:
Vertical speed = tg
[tex]V_y = tg = 9.8\times3\\\\ V_y = 29.4\;m/s[/tex]
[tex]D^2 = V_x^2 +V_y^2\\\\D =\sqrt{50^2+29.4^2}[/tex]
D = 58 m/s.
c) The magnitude of the acceleration of the projectile is equal to the acceleration due to gravity ([tex]9.8 \;m/s^2[/tex]).
Read more on acceleration here: brainly.com/question/247283
The cost of hiring new employees outpaces the raises for established employees is
A.
Salary compression
B.
Occupational based pay
C.
Merit pay
D.
Need for Achievement
Answer:
do you have to make the right decisions to be a person who has been a member who is not the first time a great person who has a job in a day of his life or
Both a gage and a manometer are attached to a gas tank to measure its pressure. If the reading on the pressure gage is 65 kPa, determine the distance between the two fluid levels of the manometer if the fluid is
Answer:
The answer is below
Explanation:
Both a gage and a manometer are attached to a gas tank to measure its pressure. If the reading on the pressure gage is 65 kPa, determine the distance between the two fluid levels of the manometer if the fluid is a) mercury b) water
Solution:
A manometer is a device used to measure pressure. A manometer is made up of a U shaped tube containing liquid. The difference of pressure in the two arms causes the liquid to reach different heights.
a) The density of mercury ([tex]\rho_{Hg}[/tex]) = 13600 kg/m³, Pressure (P) = 65 kPa and g = 9.8 m/s², h = distance between the two fluid levels
[tex]P=\rho_{Hg}*g*h\\\\h=\frac{P}{\rho_{Hg}*g} =\frac{65*10^3\ Pa}{13600*9.81}=0.487\ m[/tex]
b) For water, [tex]\rho_w[/tex] = 1000 kg/m³, hence:
[tex]P=\rho_{w}*g*h\\\\h=\frac{P}{\rho_{w}*g} =\frac{65*10^3\ Pa}{1000*9.81}=6.6\ m[/tex]