Code:
import java.util.Scanner;
public class Main
{
public static void main(String args[]) throws Exception
{
int x=0,y,pos_roots=0,neg_roots=0;
y=(6*x*x*x)+(4*x*x)-(7*x)+2;
for(x=0;x<1000000;x++)//checks for positive integeral
roots
{
if(y==0)
{
System.out.println(x+" is a root of the equation
6x^3+4x^2-7x+2=0");
pos_roots++;
}
}
System.out.println("There are total "+pos_roots+" positive roots for the equation 6x^3+4x^2-7x+2=0");
for(x=0;x>-1000000;x--)//checks for negative integeral
roots
{
if(y==0)
{
System.out.println(x+" is a root of the equation
6x^3+4x^2-7x+2=0");
neg_roots++;
}
}
System.out.println("There are total "+neg_roots+" negative
roots for the equation 6x^3+4x^2-7x+2=0");
}
}
Output:
![sample [CUsersdarshiDesktopyHomeworkLibsample] - srcMain.java [sample] Intelliu IDEA Eie Edit צ¡ew Navigate gode Analyze Befactor](http://img.homeworklib.com/questions/ff118640-1599-11ec-8bf4-e199d6d7d2e5.png?x-oss-process=image/resize,w_560)
i need help 5. (10 points) Definition of Algorithm: Use the discussion in Section 3.3 of...
Consider the following algorithm: ocedure Algorithm (b: integer, n: positive integer,i datinct integem) proc answer :", 0 nand 6 while (j print(j, z, b, answer) if jSn then answer:-j return answer (8 points] Assume that this algorithm receives as input the numbers b-17 andn9nd the corresponding sequence or iaie i 2 3 4 516 7 8 corresponding sequence of integers 19 Fill out the table below: i 는, ↓answer (b) [I point] Assume that the algorithm receives the same input...
Need help with
5.25. I have attached the definition of the i-th binomial
tree.
fundamentals of algorithmics.pdf (page 200 of 530) Q Search Protiom 8.24. For heapsort, what are the best and the worst initial arrangements of the elements to be sorted, as far as the execution time of the algorithm is concerned? Justify your answer Problem 5.25. Prove that the binomial tree B defined in Section 5.8 contains 2 nodes, of which (i) are at depth k, 0 s...
I NEED A MATHEMATICAL ALGORITHM FOR A CEASER CHYPER I CREATED. PLEASE HELP ME...THANK YOU! THE SINGLE-DIGIT KEY IS 14 THE PHRASE IS "GOOD MORNING PROFESSOR" THE CYPHER IS UCCR ACFBWBU DFCTSGGCF I DON'T KNOW HOW TO CREATE THE ALGORITHM AND IT CANNOT BE COMPUTER GENERATED. a. Develop a Caesar cipher-type encryption algorithm with a little more complexity in it. For example, the algorithm could alternatively shift the cleartext letters positive and negative by the amount of the key value....
I need help for a discussion, this is the prompt.
Insurance is a complicated tople. We use Insurance to protect against the risk of financial loss in various areas of our lives including but not limited to property insurance life Insurance, health insurance, and life insurance. Your post in the discussion worth 10 points, will include the following items • The government heavily regulates the insurance Industry and in some cases legislates that insurance coverage is mandatory. It is currently...
please i need answer for both for a thumb up
6. [-/7 Points) DETAILS MY NOTES ASK YOUR TEACHER This question has several parts that must be completed sequentially. If you skip a part of the question, you will not receive any points for the skipped part, and you will not be able to come back to the skipped part. Tutorial Exercise A vector field F is shown. Use the interpretation of divergence derived in this section to determine whether...
10. Camider the ring of plynicanials z,Ir, and let/ denote the elmmont r4 + 2a + 1 a) (5 points) Show that the quotient rga)/ () is a field. b) (5 points) Let a denote the coset z()Regarding F as a vector space over Z2, find a basis for F coasisting of powers of a c) (5 poluts) How nuany elements dors F have? Justify your answer. d) (5 points) Compute the product afas t a) i.e. expand this product...
i need help with these 3
please
5. [-12 Points] DETAILS ROGACALCET3 15.2.011. Evaluate Sb 10y da where D is the shaded part of the graph of y = 4 – x2 (a semicircle of radius 2). (Round your answer to four decimal places.) Sl 10y dA = V eBook 6. [-/2 points) DETAILS ROGACALCET3 15.2.016. Integrate f(x,y) = x + y over the region bounded by y = 3x and y = 9x – x2. (Round your answer to...
I have the answer to number 3, but need help on 4 and 5. I
will up-vote.
The way we approximate things, we make sure things are evenly spaced. Shifting things left and right doesn't affect an integral, since it's an area We will worry about horizontal scaling at the end. So let's assume (without loss of generality) that the r values of our coordinates are 0,1,2, and 3. We will write our points as (0, fo), (1, fi), (2,...
I only need help with the discussion
there are many info that you do not need put I put just in
case as well as my data table.
please do it as soon as u can
Meauements ODeit1 Check2 Meaurements Checi3 Ced Check5 Check6 Measurements Check7 heck8 4058 33 536 1502 1035 979 119478 041 1.0319|0.554972| 64261| 153|15542033681 995781 5266566 1578807 298h 1631 119 1209430016 079096812 0.418135246 0,00032665 011890:004668155728441 0293237 1.291809502 1.22833 1.28 1952 -1116 4281 140616885511984206317 3346 8162 0.78...
for this i presented problem number 80 from section 10.4. i
need to answer the following questions in the third picture. just
those questions. no cursive please its hard to read.
Math 213-101 Section 10.4 Discussion #80-Saved to this PC Layout References Mailings Review View Help Tell me what you want to do Problem: Historical Pathways. Throughout recorded history, people in various walls of life have had a recrentional interest in nathematics. For example, Represenlative James A Garfield discovered a...