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

Looking For Something at Site? Search Below

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: 2082

Attachments:

Replies to This Discussion

maria jo code ap ne paste kr k output li wo kindly yahan paste krna.... or ye batao code us space main paste kr k submit pr clik krna hay na?

will u please share solution of A and B part complete? Read more: CS508 Assignment 4 Discussion Due Date 15-01-2013 - Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs508-assignment-4-discussi...

?

class JavaArrayCopy {


public static void main(String[] args)
{

JavaArrayCopy egs=new JavaArrayCopy();
}

public JavaArrayCopy()
{
// creating a array of size 9
dataArray = new String[9];

// resultant array in which we'll copy the 5 elements from above array
resultArray= new String[5];
fillDataInDataArray();

}
public void fillDataInDataArray()
{

dataArray[0]="It’s cold in Strut.";
dataArray[1]="It’s cold in Newell.";
dataArray[2]="It’s cold in .";
dataArray[3]="It’s cold in Mansehra. ";
dataArray[4]="It’s sunny in Quetta.";
dataArray[5]="It’s sunny in Larsi.";
dataArray[6]="It’s sunny in Multan.";
dataArray[7]="It’s raining in Mansehra.";
dataArray[8]="It’s raining in Peshawar.";

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;
}

yeh woh hi code hai jo diamond bro ne upload kia

?- Snowy(Y).
% putting values of Y in function to check the condition.

?- Snowy(Islamabad).
No
?- snowy(Sturt).
Yes
?- snowy(Newell).
yes
?- snowy(Mansehra).
yes
?- snowy(Peshawar).
no
?- snowy(Quetta).
no
?- snowy(Chaman).
no
?- snowy(Larsi).
no
?- snowy(Multan).
no

% putting values of X in function to check the condition.

?- pleasant(Islamabad).
No
?- pleasant(Sturt).
no
?- pleasant(Newell).
no
?- pleasant(Mansehra).
no
?- pleasant(Peshawar).
no
?- pleasant(Quetta).
yes
?- pleasant(Chaman).
yes
?- pleasant(Larsi).
no
?- pleasant(Multan).
no

% putting values of Z in function to check the condition.

?- hot(Islamabad).
no
?- hot(Sturt).
no
?- hot(Newell).
no
?- hot(Mansehra).
no
?- hot(Peshawar).
no
?- hot(Quetta).
yes
?- hot(Chaman).
yes
?- hot(Larsi).
yes
?- hot(Multan).
yes


?- raining(Islamabad).
Yes
?- sunny(Larsi).
Yes
?- cold(W)
W=Strut
W=Newell
W=Mansehra
W=Quetta
W=Chaman
W=Karakoram

Ab pta naie yeh thek hai k ghalt, Diamond90 please btao . . .

Thek he ye ji and i m female not male Maria :) 

 sorry Diamond90 g  well thanks again 

code compile nhe ho rha?

a lot of errors

Q?? Hamara to ho geya.

RSS

Latest Activity

Profile Iconamina, Arsalan khan, Muhaamad Rizwan and 24 more joined Virtual University of Pakistan
19 minutes ago
Kinzar iman (ˈinəsənt) liked Miss. Churhail's profile
34 minutes ago
Miss. Churhail replied to Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
43 minutes ago
Miss. Churhail replied to Miss. Churhail's discussion $$$$$AB YE SOCHA HY K HAM HAD SE GUZAR JAYEN GY$$$$$$
44 minutes ago
Miss. Churhail replied to Miss. Churhail's discussion $$$$$AB YE SOCHA HY K HAM HAD SE GUZAR JAYEN GY$$$$$$
44 minutes ago
Kamal Qaisar posted discussions
1 hour ago
Junaid [MAF] joined +M.Tariq Malik's group
1 hour ago
Junaid [MAF] updated their profile
1 hour ago
+ + + **noor!! ! ! ! ! liked Mani Siddiqui Ex's status
1 hour ago
Blessings posted a status
"Tu jo hr roz nye hussn pe mr jata hai........................tu btaye ga mujhe ishq hai kya"
2 hours ago
Blessings commented on Mani Siddiqui Ex's status
2 hours ago
Mani Siddiqui Ex commented on Mani Siddiqui Ex's status
2 hours ago
+ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+ replied to Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
2 hours ago
+ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+ liked Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
2 hours ago
+ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+ replied to 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
3 hours ago
+ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+ liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
3 hours ago

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

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

.