In Progress

Simple Java Program

Hi,

I need a simple Java Program for the following two scripts, Please note all the programs MUST be in BlueJ!!!

[Program 1]

Write a program which outputs a series of asterisks (* - stars) to form the following pattern below.

Note this requires you to place one loop inside another loop. An example outline would look like this:

Use nested for loops to produce an output similar to below.

Note to get the second half of the pattern you will need another set of for loops, this time counting down or you can try to change over the loop control and decrement after 5.

The output should look like: (this is a short version, you should have 10 lines of stars)

*

**

***

****

*****

******

*****

****

***

**

*

[Program 2]

Write a METHOD which produces the Fibonacci series when called.

Call this method from the main method in your class.

You should use the example code for the Fibonacci series developed previously.

The series is formed by adding two numbers in the series to generate the third. Note the first two are 0 and 1, so to make the make number we add 0 + 1 to give 1. The fourth number is obtained by adding the second and third numbers, 1 + 1 gives 2. So the series looks like:

0 1 1 2 3 5 8 13 21………

Use a for loop to output the first 20 Fibonnaci numbers. Set a counter and output a calculation of number of terms in series.

You can use console output for this program.

Skills: Java

See more: simple program java, java simple program example, simple scripts, java simple programs, simple program counter java, asterisks bluej java, get java, stars, simple java programs, simple console, simple short java, make loop, java console, fibonacci, counting, code java, java code example, program output, simple program example, java program simple, java simple example, need simple java program, nested, call method, code example java

About the Employer:
( 1 review ) Luton, United Kingdom

Project ID: #212418

Awarded to:

gsoftua

Hello. I can do it.

$30 USD in 0 days
(0 Reviews)
0.0

2 freelancers are bidding on average $40 for this job

ywspg121

Hello sir, I can do it right now. After 1 or 2 hours, you can get the code if you choose me.

$50 USD in 0 days
(0 Reviews)
0.0