Question: CISC231 Foundations of Computing ll Assignment 2 (100 pts): Create a class named Yourlastname_Yourfirstname_hW2. (10 pts) Problem 1 (10 pts) Write a method named probleml.

 CISC231 Foundations of Computing ll Assignment 2 (100 pts): Create aclass named Yourlastname_Yourfirstname_hW2. (10 pts) Problem 1 (10 pts) Write a method

CISC231 Foundations of Computing ll Assignment 2 (100 pts): Create a class named Yourlastname_Yourfirstname_hW2. (10 pts) Problem 1 (10 pts) Write a method named probleml. In this method, ask the user to input a series of natural numbers and allow the user to enter 0 to indicate that the user is finished providing inputs. Calculate and display the sum and the average. Problem 2 (10 pts) Write a method named problemZ. In this method, calculate and the projected amounts of deposit for 20 years. Assume you deposit $20,000 into your savings account and the annual interest is 4%. Problem 3 (25 pts) Write a method named problem3. In this method, calculate the sum of a geometric progression. In mathematics, a geometric progression, is a sequence of non-zero numbers where each term after the first is found by multiplying the previous one by a fixed, non-zero number called the common ratio. The general form of a geometric sequence is a, or, arz, 0P, ara, ..., or\Problem 6 (15 pts) Write a method named problem6. In this method, calculate and display the following results by using nested loops. The inner loop MUST be a for loop, the outer loop MUST be a while loop. 5x5=25 5x4=20 5x3=15 5x2=10 5x1=5 4x4=16 4x3=12 4x2=8 4x1=4 3x3=9 3x2=6 3x1=3 2 x 2 = 4 2 x 1 = 2 1x1=5 Submit the Yourlastname_Y0urfirstname_hw2.java file on Blackboard. Page I 2

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 Programming Questions!