Question: in Java only question 5 1. Print the sentence Hello, world for 10 times. 2. Print a sequence of texts: 1 moose 4 legs, 2

in Java only question 5in Java only question 5 1. Print the sentence "Hello, world" for

1. Print the sentence "Hello, world" for 10 times. 2. Print a sequence of texts: 1 moose 4 legs, 2 moose 8 legs, ..., "30 moose 120 legs." 3. Create a (character) sequence: 1, 2,p, 4,5, p, 7, ..., p, 100. Replace the number with "p" if the number is a multiple of 3 or if the number contains 3 (like 13). Verify that the resulting vector has 45 p's. 4. Calculate and print a sequence of numbers: 1/2, 2/3, 34, ... as long as the last number is smaller than 2000. What is the last number? (1992.304) 5. Create a vector that continues to generate and store the Fibonacci sequence: 1,1,2,3,5,8,13,..., as long as the last number is smaller than 10000. Verify that the resulting vector has mean 885.5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!