.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

Question 1: Marks 10
Your job is to take code snippets from the pool and place them into the blank lines in the code. You
may use the same snippets more than once, and you won’t need to use all the snippets. Your goal is to
make a class that will compile and run and produce the output listed.
Output:
Code:
class Triangle {
double area;
int height;
int length;
public static void main(String [] args) {
____________
_______________________
while ( __________ ) {
__________________________
________.height = (x + 1) * 2;
________.length = x + 4;
__________________________
System.out.print(“triangle “+x+”, area”);
System.out.println(“ = “ + _______.area);
________________
}
______________
x = 27;
Triangle t5 = ta[2];
ta[2].area = 343;
System.out.print(“y = “ + y);
System.out.println(“, t5 area = “+ t5.area);
}
void setArea() {
____________ = (height * length) / 2;
}
}
Pool:
Question 2: Marks 10
Your job is to take code snippets from the pool and place them into the blank lines in the code. You
may not use the same snippets more than once, and you won’t need to use all the snippets. Your goal
is to make a class that will compile and run and produce the output listed.
Output:
Code:
public class Puzzle4 {
public static void main(String [] args) {
___________________________________
int y = 1;
int x = 0;
int result = 0;
while (x < 6) {
___________________________
___________________________
y = y * 10;
_________________
}
x = 6;
while (x > 0) {
_________________
result = result + ___________________
}
System.out.println(“result “ + result);
}
}
class ___________ {
int ivar;
________ ______ doStuff(int _________) {
if (ivar > 100) {
return _________________________
} else {
return _________________________
}
}
}
Pool:
BEST OF LUCK

This Content Originally Published by a member of VU Students.

Views: 3828

See Your Saved Posts Timeline

Attachments:

Replies to This Discussion

kese karna hy ye..?

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

 

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

&

.•°How to Download past papers from study groups°•.

 

Please Click on the below link to see…

.... How to Find Your Subject Study Group & Join .... 

Java Ki File bnani hai kia is ma?

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

java ki File nai banani... just fill in the blanks...
pool se related code utha k blanks main fill krna hai

java ki file bana k compile ni krna ?? aur out put k snap show ni krwane ??

no just fill the blanks

blanks  filling ki correction tabi pta chale gi jb code compile ho ga

other was koi aur method he ? code ki correct hone ki

Anam ap ny jo video post ki hai us mae second question ka answer ghalt hai

is code mae kuch extra lines add ki hoe hain jo k pool mae b nhe hain 

output show nhe karni assignment mae because output to already di hoe hai assignment mae albata g ap code ko compile kar k check kar sakty hain k code correct hai ya nhe.

Complete solution cs506

Attachments:

RSS

Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Member of The Month

1. massom chanda

punjab, Pakistan

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

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