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

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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Assignment No. 01
Semester: Fall 2016
Web Design and Development -CS506
Total Marks: 20
Due Date: November 21,
2016
Instructions:
Please read the following instructions carefully before submitting assignment:
 You should submit your assignment before or on due date on VULMS.
 Your assignment should be your own work. It should not be copied from internet,
handouts or books.
 You are suggested to use Netbeans IDE for developing your assignment.
 You should import java swing and math packages in your classes.
 You should create project with your Roll No. in Netbean IDE and create required
classes.
 You should zip your complete project (along with .java,.class and .jar files etc.) and
upload on VULMS as a single file.
 Your zipped file should be in .zip or .rar file format only. Any compressed format
other than .zip or .rar of your programs will be considered the incorrect files and
rewarded by zero.
 Assignment sent via Email will not be replied and accepted in any case.
 If the submitted assignment does not open or file is corrupt, it will not be marked and
awarded Zero marks.
Objectives:
To build understanding towards building classes along with its related methods
To know how to write default and parameterized constructors
To write user-defined methods in classes and invoke them
To take user input using Graphical User Interface (GUI)
For any query about the assignment, contact at CS506@vu.edu.pk
Question: Marks 20
Write a java program to prompt the user to take the input in a double variable for the radius of a
sphere, and call method sphereVolume() to calculate the volume of the sphere.
Use the following statement to calculate the sphere volume:
Double volume = (4.0 /3.0) * Math.PI * Math.pow(radius, 3)
Note:
You should define two public classes Sphere and SphereTest. The Sphere class will contain the
calculation procedure of sphere along with data members and getter / seyter methods. SphereTest
class will contain the main method and use the object of first class to call its method.
Your program should have a separate print() method for displaying the volume of the sphere.
You should ensure that input value for radius should not be negative nor 0. In such cases, re-prompt
user to input again.
You should parse the input into related primitive data type using Wrapper classes, if required.
You should pass the user input to parameterized constructor.
You should write a default constructor that would set the value for radius to 1.0 for Sphere class.
BEST OF LUCK

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 11829

.

+ 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)

Replies to This Discussion

Jb assignment milta hai to wo lms pe bejhty hai..
Muje kese pata chly ga k assignment mila hai krny ko??

lms check kar ka hi pata chalay ga

study pro and semester kon sa hay ????

LMS my to dos may check kr lan

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.

Done Assignment :)

https://youtu.be/IPkPnTjt6SQ

Can you please guide me???

ye video dekhanay ka kia matlb hai :(

google adsense py a/c ho ga!!

is tara sy views mil aye gy youtube pr.

Hahaha... Ary yar... Ye koi adsence k liye nai hai :D Video show krne ka ye matlab tha k mene assignment bana li hai agr kisi ko help chahiye to wo poch skta hai :) 

Ap btayen ap ko kis chez me issue aa rha hai me apko Guide kr deta hn :) 

Ye video mene isi liye comment ki h tak agr kisi ko help chahiye ho to wo poch skta hai or phr aram se khud e apni assignment bana skta hai :) 

pore assignment he issue he step by step guide kr den

Areeba, lolzzzzz
Sahee kaha ap ne.
Parse input kahan use krna hai??

RSS

Latest Activity

Zahid Mahmood and hashim are now friends
21 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to + "Jɨyą's discussion Tou ho jay shairiiii XD XD
26 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to ϝ ι ყ α's discussion *خواتین.........XD XD *
36 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to + Adeeena's discussion Vitamins For Skin You Should Never Miss: p
37 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ liked +¢αяєℓєѕѕ gιяℓ's discussion My Dearest Friendz ❤ JK, DD, Fiya, Bushra , And Beloved bestie senii ❤ yOu people look So Cute
38 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion Muhabato me li gaye kasmain
38 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to 彡JK彡 ❤️'s discussion ^__^....... Lets Dedicate yOurself A quOte...... ^_^
40 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to 彡JK彡 ❤️'s discussion ^__^....... Lets Dedicate yOurself A quOte...... ^_^
40 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Me, Mom and Bachy howey paisy
41 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to + "Jɨyą's discussion Tou ho jay shairiiii XD XD
42 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion 2019 Noble Prize Winners
42 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion تربیت اسے کہتے ہیں
47 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion تربیت اسے کہتے ہیں
47 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ updated their profile
48 minutes ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to + M.Tariq Malik's discussion Beck's Depression Inventory - This depression inventory can be self-scored.
57 minutes ago
+ ! ✨ ░S░I░N░G░E░R replied to +¢αяєℓєѕѕ gιяℓ's discussion My Dearest Friendz ❤ JK, DD, Fiya, Bushra , And Beloved bestie senii ❤ yOu people look So Cute
2 hours ago
+ Iuuoɔǝut+ liked + Iuuoɔǝut+'s blog post Dengue fever facts
2 hours ago
+ Iuuoɔǝut+ liked + Iuuoɔǝut+'s blog post The End Is Not Near, But If An 'Insect Apocalypse' Ever Happens, How Would We Know?
2 hours ago
+ ! ✨ ░S░I░N░G░E░R replied to + Iuuoɔǝut+'s discussion Apni zuban mai ic ka name btaen
2 hours ago
+ ! ✨ ░S░I░N░G░E░R liked + "AS"'s discussion Log tou Masla Banaty Hain..
2 hours ago

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

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