How to get how to get the output

Assignment Help JAVA Programming
Reference no: EM131069263

Code:

int [] a={1,2,4,0,0,0,0};

for(int i=3;i<7;i++)

{
a[i]=a[i-1]+a[i-2]*2+a[i-3]*3;
System.out.print(a[i]+" ");
}

the output is 11 25 59 142 and

Please explain in steps on how to get the output.

Reference no: EM131069263

Questions Cloud

Section of the companies act of kenya : What section of the Companies Act of Kenya 2015 allows Auditors to carry out investigation to form an opinion on propriety of financial records.
Problem regarding the stem cell research : Stem cell research is a highly controversial topic. It is often made all the more controversial when discussing embryonic stem cell research. Write a three-page research assignment on stem cells. For this, you need to research the different forms ..
Create three new threads : Write a program (in C, or Java, or C++, or C#) that creates three new threads (besides the already existing main thread) and synchronizes them in such a way that each thread displays it's thread id in turn for 5 iterations
Introduction to film qualifies as a course : Introduction to Film qualifies as a course that partially fulfills a student's LACC requirement. By the end of the course, students will: 1) be familiar with film as an art form that reflects the cultural context in which it was created, primaril..
How to get how to get the output : how to get the output of the java program.  Please explain in steps on how to get the output.
Write an appropriate expression for total potential energy : Assuming the rotation of the beam is small, write an appropriate expression for the total potential energy of the system and use the minimum potential energy theorem to determine the equation of equilibrium
Flat structure tree diagrams : I. Draw the flat structure tree diagrams for the following sentences. (You are not requiredto draw x-bar trees.)
What does conclusion mean for how in public administration : A great debate continues on whether leadership can be learned or if it is something someone is born with. Consider whether or not you believe the kind of leadership necessary for leading and inspiring the participants in a community collaboration ..
Lighter elements of paul muldoon style : How do the serious and lighter elements of Paul Muldoon's style combine together to create poems that are both odd and unique?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a statement that prints the number of characters

Write a statement that prints the number of characters in a String object called myString. Write statements to prompt for and read user's age using Scanner variable

  Description of the problems-uml diagrams

The main components that should be included in the report are brief description of the problems, the UML diagrams, and your approach to solving the problems. In the report, you should explain the data fields used, the classes, and the methods alo..

  Hashtable and the hashmap

In JAVA programming: What are the differences between a Hashtable and the HashMap? Few examples

  How are servlets and jsps deployed inside weblogic

How are Servlets and JSP's deployed inside WebLogic? In a Weblogic CMP EJB, how to obtain the maximum value in the specified database column? In WLQL is there something similar to MAX() function in SQL?

  Technical community blog

Write a blog article for a coding and technical community blog.

  Recognize one high severity vulnerability for computer

Recognize one high severity vulnerability for each computer (if there is one). Explain vulnerability and describe control(s) to minimize risk from vulnerability.

  Which a ball is released from a user-defined height

Write a program in which a ball is released from a user-defined height and free-falls to the ground. The ball is pulled by earth's gravity of 9.8 m/sec 2 . Assume that each pixel represents

  Point class that represents points on an x, y axis

Write a Point class that represents points on an x, y axis. The data members should be doubles x and y plus an int value called count that represents the number of points currently instantiated

  The string class and/or the stringbuffer class in java

Create a simple Java application that uses the String class and/or the StringBuffer class and at least 4 of the class methods. Show the code, demonstrate it works properly and describe what it is doing.

  Role of setter and getter in mortgage calculator

The setter and getters must stay in MortgageCalculator.java and everything should output from main (Driver.java).

  Java interfaces-multiple inheritance

In C++, a derived class may have multiple base classes. In contrast, a Java derived class may only have one base class but may implement more than one interface. This question asks you to compare these two language designs.

  How do you provide a link from one class to a related class

How do you provide a link from one class to a related class

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