By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,589 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,589 IT Pros & Developers. It's quick & easy.

Please Give Me Coding Of Following Prog...

P: 1
HI every body

I need following programs for java .........please urgent i m biggner so help me................but urgent



Problem # 1

An integer is said to be prime if it is divisible only by 1 and itself. Write a method that determines whether a number is prime. Use this method is an applet that determines and prints all the prime numbers less than 10,000


Problem # 2

Write a method isEven that uses the remainder operator (%) to determine whether an integer is even. The methods should take an integer argument and return true if the integer is even and false otherwise. Incorporate this method into an applet that inputs a sequence of integers (one at a time using JTextField)



Problem # 3

Write a program that will read a sequence of positive real numbers entered by the user and will print the same numbers in sorted order from smallest to largest. The user will input a zero to mark the end of the input. Assume that at most 100 positive numbers will be entered.


Problem # 4

Use a one-dimensional array to solve the following problem : Write an applet that inputs 5 numbers, each of which is between 10 and 100, inclusive. As each number is read, display it only if it is not a duplicate of a number already read. Display result in JTextArea.
Mar 22 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,510
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve. This question will now be closed and you will have to post a new question when you're ready.

MODERATOR
Mar 22 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.