Question: please do java programming for beginners codes*** Task1: Suppose M is the even number right after your last-two digits of the PantherID. Write a program
please do java programming for beginners codes***


Task1: Suppose M is the even number right after your last-two digits of the PantherID. Write a program that sums 30 even numbers after m (including m) [Using For-loop). Call this method and print out the sum from the For-loop. The above arithmetic sequence will be: m, m+2, m+4, ... m+(n-1)*2, where n is 30. The sum of this sequence can be represented as S=n/2*(2m+(n-1)*2), where n is30. Use the equation to calculate and print out the sum of this sequence. Task2 Suppose n is the last digit of you PantherID: n=n+5. Draw a Square whose side length is n with two methods. The first method is called FLside( n) with an integer parameter that indicates the number of x to draw this side. The second method is called Mside( J n) with an integer parameter; in this method, only n the first and last position will draw x, the other positions are fulfilled by a. The example below shows the example of a square whose length is 26. Calculate the area of the square by writing a method called Areal S n) with an integer parameter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
