Please Give Me Coding Of Following Prog...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • parasuit
    New Member
    • Mar 2007
    • 1

    Please Give Me Coding Of Following Prog...

    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.
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    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

    Comment

    Working...