We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Please discuss assignment 4 here, also share link if you found it helpful in making assignment.

 

Topics Covered: PROLOG AND JAVA PROGRAMMING LANGUAGES.


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 2079

Attachments:

Replies to This Discussion

dimond90 java wala code share kr dain plzzz????????

OO sarey theek kar rhaey ho. jashan :) Allah ka shukar buht support hogai, menaey b sb aisa hi kia hua hai jaisa ap logon kaey comments sey lag rha hai.

 

@diamond90: sirf cold wali cities hi aengi aur uskaey answer maen maenay sari cities kaey naam likhaen haen jo sirf  cold haen.

acha mai ne to dono ki he kun ky sir ne condition to  nahi lgai ky cold hi ho 

Guyz ...!
Main Nay 1st Question Bana Liya Hai kya ap mujhy 2 and 3 question bata skty hain,... Mujh smjh nai araha k kesay karna hai ..?

Kindly today is the most exteded day Help Me...

 

Regards,

Zeeshan

 

Zeshan 3rd py code likhna he java ka or 2nd ka ap ko btaya he ky hmary pas first query banti he ky ?-snowy(Y) ab Y ki jaga ap cities ky name likho or dekho ky wo fulfill hoti he condition me matlab ky islamabad me  bus barish ho rahi he jab ky snowy us waqat ho ga jab barish bhi ho rahi ho or cold bhi ho to ye false he isi tarhan sb hon gy 

dimond90 3rd part bta dain code kaise likhna hy plzzz ..1st question k dono part complete likh lye hn

plzz rply soon

asma code ye likhna he ky aik array lo us ki length ap 9 tak rakho or phir dusri array lo us ki length 5 tak  or first array ki value wo evaluation wali rakh do ok or phir usy coppy karo dusri array me 

public class ExpertGisSystem {

 

    /**

     * @param args the command line arguments

     */

   static void main(String[] args)

    {

        // TODO code application logic here

        ExpertGisSystem egs=new ExpertGisSystem();

    }

   

    public ExpertGisSystem()

    {

        dataArray  = new String[9];

        resultArray= new String[5];

        fillDataInDataArray();

        copyData();

    }

    public void fillDataInDataArray()

    {

        dataArray[0]="It’s raining in Islamabad.";

        dataArray[1]="It’s raining in Sturt.";

        dataArray[2]="It’s raining in Newell.";

        dataArray[3]="It’s raining in Mansehra.";

        dataArray[4]="It’s raining in Peshawar.";

        dataArray[5]="It’s cold in Strut.";

        dataArray[6]="It’s cold in Newell.";

        dataArray[7]="It’s cold in Mansehra.";

        dataArray[8]="It’s cold in Quetta. ";

        /*It’s cold in Chaman.

        It’s cold in Karakoram.

        It’s sunny in Quetta.

        It’s sunny in Larsi.

        It’s sunny in Chaman.

        It’s sunny in Multan.*/

 

       

    }

    public void copyData()

    {

      System.arraycopy(dataArray, 3, resultArray, 0, 5);

      for(int i=0;i<resultArray.length;i++)

      {

          System.out.println(resultArray[i]);

      }

    }

    private String[] dataArray;

    private String[] resultArray;

}

 

 asma is my sy for loop khatam kar do or  http://ideone.com/  is site py run karo or us ki screen shot do ok 

/*It’s cold in Chaman.

        It’s cold in Karakoram.

        It’s sunny in Quetta.

        It’s sunny in Larsi.

        It’s sunny in Chaman.

        It’s sunny in Multan.*/

Dimond90 ye wale cityies jo coomencts me dye apne ..ye arrayme nh dene ???
our for loop ko khtam kyon krna hy ???

dimond for loop remove krne 2 error ate hn plzzz correct kr do jaldi .....

@diamond.... yaaar just for loop wali line del krney se b code run nahi hua error aa gya :(  theek bata do na proper code jo wahan paste krna hay?

diamond 90 yaar agr hum y main islamabad put karin gaey to phr x z w main be kya isalamabad put karin gy or isi trhan kya sab main asay bari bari put karty rehay gaey kya ???

dakho asay kya ???

English

Prolog

Is it snowy in (Islamabad)?

Answer: “No”

?- Snowy (Islamabad).

No

 

Is it pleasant in X?

Answer: “No”

?- Pleasant (Islamabad).

No

Is it hot in Z?

Answer: “No”

?- Hot (Islamabad).

No.

Is it raining in Islamabad?

Answer: “Yes”

?- Raining (Islamabad).

Yes

Is it sunny in Larsi?

Answer: “Yes”

?- Sunny (Larsi).

Yes

Is it cold in Islamabad?

Answer: “No”

 

?- Cold (Islamabad).

No

aghr asay karin gaey to harmar question bohat lamba ho jae ga ..

kindly smjha do thora sa mujhy kya main thek kar raha hoon ???

aghr nai to solution share kar doo aj extended date hai 

plzzzz

2nd and 3rd question 

ji ap thek kar rahy ho ab ap islamabad ky sth sth or cities bhi dalain gy or bhai ye 10 marks ka he lamba to ho ga na . 

?- Snowy (Sturt).

Yes 

isi tarhan sb cities dalo or dekho jo cold bhi ho or rainy bhi wo yes ho gi ok 

?- Pleasant (Sturt).

No

is me bhi sari cities dalo or dekho or wo yes ho gi jo cold bhi ho or sunny bhi thek he 

?- Hot (Sturt).

No.

is me bhi sari cities dalo or wo yes hon gi jo sirf suny he ok 

or  agly 2 thek hian wo he hon gy bus or last me bhi cold dekho kon kon si city cold he usy yes kr do ok 

i hope u understand or koi help chahye to email me at this id 

scdeathrace8@gmail.com ok 

mail ka sujbect diamond rakh dena taky mujhy ap ka jaldi pta lag jye wrna mails me mix na ho jye ap ki mail ok 

RSS

Looking For Something? Search Here

Today Top Members 

HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.