The goal of this activity is focused on gaining experience by doing exercices.
CHALLENGE 1 : Find Maximum
______________________________________
Write a method that returns the largest integer in the list.
You can assume that the ist has at least one element.
CHALLENGE 2 : PRINT NUMBER IN WORD
______________________________________
Write a program called printNumberInWord which prints "ONE", "TWO",
... , "NINE", "OTHER" if the int variable "number" is 1, 2,... , 9,
or other, respectively.
Use:
(a) a "nested-if" statement
(b) a "switch-case-default" statement
CHALLENGE 3 : PRINT NUMBER IN WORD
______________________________________
Write a method called checkOddEven which prints "Odd Number" if
the int variable “number” is odd, or “Even Number” otherwise.
CHALLENGE 4 : PRINT NUMBER IN WORD
______________________________________
Write a method average that returns the average of the integer
in the list. You can assume that the list has at least one element.
-
Notifications
You must be signed in to change notification settings - Fork 0
LAMDAMielgo/-IH-Java-Prework
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Java prework challenges
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published