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

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

# CS508 Assignment 4 Discussion Due Date 15-01-2013

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)

Views: 2101

Attachments:

### Replies to This Discussion

class example {

public static void main(String[] args)
{

example egs=new example();
}

public example()
{
dataArray = new String[9];
resultArray= new String[5];
fillDataInDataArray();

}
public void fillDataInDataArray()
{
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. ";

System.arraycopy(dataArray, 4, resultArray, 0, 5);
System.out.println(resultArray[0]);
System.out.println(resultArray[1]);
System.out.println(resultArray[2]);
System.out.println(resultArray[3]);
System.out.println(resultArray[4]);

}

public String[] dataArray;
public String[] resultArray;
}

lo ji ye 100% chaly ga dekho komal and maria asma i only done for u

yar diamond....ab ye jo  code dia hay ye paste krney se to errors ki line aa gayiiiiiiiiiii :((   pehley just ek hi error ata tha...what u doinggg :/

jaldi bata do sahi yar

correct code post kr do plzzzzzzzzzzzzzz

asma 2nd wala kis tarah likhna hay still nahi smjh a araha kia kai include krna..kindly zra bata do.... oper jo bataya hau hay ksii ne us main facts to nahi hain..   question main likha hay facts b add krny hain.. or ye baatao k pehley Y main sb cities daal dun ? then Z or X main sb daal dun bari bari???

aisey krna?

komal jo evaluation di he wo hi facts hian ok or Y Z  sab me cities dalo gi ap

YAR PLEASE KOI COMPLETE SOLUTION DEDE JUST AYIK GHANTA BAKI HAY PLEASEEEEEEEEEEEEEEEEEE

Khaksar ye sahe chalta he ap sy kun nahi chal raha last sy ye site ky link to remove karty ho na ap ?

@Diamon90:

Sorry bhai, my mistake. last 2 lines of code main nay copy nahi ki thin.

ab 100% sahi chalti hay.

JazakAllah

komal asma and maria any other agar ap ka ho gea to plz comments kar dena taky mujhy pta lag jye ky ap logon ka hua ky bhi ya nahi ok

Thanku Diamond90, :) :)

Attachments:

will u please share solution of A and B part complete?

## Latest Activity

14 minutes ago
+ "ραℓωαѕнα" joined + M.Tariq Malik's group

### MTH601 Operations Research

30 minutes ago
+ "ραℓωαѕнα" joined + M.Tariq Malik's group

### CS508 Modern Programming Languages

30 minutes ago
+ "ραℓωαѕнα" joined + M.Tariq Malik's group

### CS506 Web Design and Development

30 minutes ago
+ "ραℓωαѕнα" joined + M.Tariq Malik's group

### CS411 Visual Programming

31 minutes ago
Mani Siddiqui Ex posted a status
"دنیا کے سامنے اکڑ کر چلنے والا لڑکا اگر جُھک کر تمہاری پایل باندھے تو مانو گی عشق ہے"
46 minutes ago
Saleha joined + M.Tariq Malik's group

### PSY404 Abnormal Psychology

1 hour ago
trustedmeds updated their profile
3 hours ago
Minaal posted a discussion

### lesson plan

3 hours ago
Mani Siddiqui Ex posted discussions
4 hours ago
5 hours ago
Ateeqa replied to + !! Ήලᵯᵯℹ Ⲥⱨ !! +'s discussion !!!! bilkul!!!!
6 hours ago

1

2

3

4

5