Showing posts with label Java Assignments. Show all posts
Showing posts with label Java Assignments. Show all posts

Thursday, September 28, 2017

IJP Assignment

INTERNET JAVA PROGRAMMING  ASSIGNMENT 1


1. Explain basic concepts of OOPS.
2. Why is JAVA known as platform independent language
3. How is JAVA more secure than other languages
4. Describe in detail the steps involved I implementing a stand-alone program
5. WAP to find the number and sum of all integers greater than 100 and less than 2000 that are divisible by 7
6. WAP to compute the sum of digits of a given integer number
7. Explain the following: a. Static Members b. Final Method c. Final Class d. Abstract class e. Abstract method
8. How does String class differ from StringBuffer Class
9. Give an example where the interface can be used to support multiple inheritance. Give Example
10. Discuss Various levels of access protection available for packages and their implications 

Sunday, April 14, 2013

INSTALL NS 2.35 ON UBUNTU 12.04 LTS

INSTALL NS 2.35 ON UBUNTU

Step 1:Make it sure that internet connectivity is good.Download NS2.35 from
http://www.isi.edu/nsnam/ns/

Step 2:make a new folder [ns] in /home/Extracts downloaded files in above folder.

Step 3 :copy downloaded ns-allinone-2.35.tar.gz in /home/ns/

Step 4 :open terminal

Step 5:Run following command
        $cd ns-allinone-2.35

        $sudo apt-get update

        $sudo apt-get install build-essential autoconf automake libxmu-dev

Step 6 :Run following command
        $./install

Step 7:Run following command to install X – graph
         $ sudo apt-get install xgraph

Step 8.Set environment variables by run this command
          $gedit ~/.bashrc

And
Add the following lines to the end of the file. Remember replace "/your/path" by the folder where you have stored extracted the ns-2 file (For example, if your Linux account name is purple, and you have extracted the file to your home directory, you have to change /your path to /home/ns)

# LD_LIBRARY_PATH
OTCL_LIB=/your/path/ns-allinone-2.35/otcl-1.13
NS2_LIB=/your/path/ns-allinone-2.35/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/your/path/ns-allinone-2.35/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/your/path/ns-allinone-2.35/bin:/your/path/ns-allinone-2.35/tcl8.4.18/unix:/your/path/ns-allinone-
2.35/tk8.4.18/unix
NS=/your/path/ns-allinone-2.35/ns-2.35/
NAM=/your/path/ns-allinone-2.35/nam-1.14/
PATH=$PATH:$XGRAPH:$NS:$NAM

Step 9 :run following command
            $source ~/.bashrc

Now you can run your ns with ns command...
The "%" symbol appears on the screen. Type "exit" to quit.

and type $ns


By

Arvind Shukla

Machine Learning for Agriculture

  Machine learning has the potential to revolutionize agriculture by helping farmers make more informed decisions and optimize their operati...