Question: Please help! CIST 2371 Java Programming ! LAB #5 - 50 Points Methods 1) Problem #1: Build a presidents() method. Build a presidents() method that
CIST 2371 Java Programming ! LAB #5 - 50 Points Methods 1) Problem #1: Build a presidents() method. Build a presidents() method that prints out the names of the first 7 Presidents of the United States, each on separate lines. Remember to make your method a static method. Have your main method call the presidents() method. Call your class "PresClass", and store it in a file called "PresClass.java" 2) Problem #2: Build a max() method. Build a max() method that takes 3 arguments and returns the argument which is the highest. Make the method static and call it from the main(). Call your class "MaxClass", and store it in a file called "MaxClass.java" 3) Problem #3: Build an avg0 method. Build an avg() method that takes 4 arguments and retums the average of these 4 numbers. Make your method static and call the method from the main(). Call your class "AvgClass" and store it in a file called "AvgClass.java'' 4) Problem #4: (Methods) Area Program - Modify your Area.java program from last week. This time, build 3 methods(no arguments) that will do the work input, calculations and output) for each of the 3 different figures. Then in the 3 "if statements (or Switch stmt) that you have to determine which figure was selected, you should now only have to call the methods, which will then do the input, calculation and print the results. (Remember, you will need to use "static" for each of the methods that you build, since you will be calling them from the "main" method, which is also static.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
