plz help me i dunno hw to do program in java script usin net beans :( help me?

Deenul

New member
Task 1
Define Java methods to perform the following tasks:
1. Create an integer array of size 10, store even integers 2,4,6,8,10, 12....20 into the array, At the
end of this method, it returns the total value of all the numbers in the array.
2. If the return value from question1 is greater than 150, return true, otherwise return false.
3. Create two numbers if the first number is greater, return true, otherwise return false.
4. Create two numbers, if the first number is bigger, return the first number, otherwise return the
second number.
5. Create any two numbers, if the first one greater, add 1 to the first number, otherwise add 1 to the
second number. Print the two numbers.
Define another class with a main method. In this program, call the methods created in part 1, 2, 3, 4
and 5 and print the values returned by these methods.
TASK 2
A text file consists of a list of integers, separated by space. Design pseudo code to perform the following
tasks:
a) Find and print the largest and smallest numbers in the text file.
b) Calculate the total value of the odd numbers in the file.
c) Find and print the numbers that are multiple of 10 in the file.
TASK 3
Write a java program to implement your design in Task 2.
i think java
hey bro i dunno hw to do program :(
i want to solve problem plz help me
 
Back
Top