Select Your Subject Code

CS - Computer Science MGT MTH ECO ENG STA PAK PHY ACC
CS001 CS408 CS602 CS619 CS710 CS724 MGT101 MGT501 MGT610 MTH001 MTH603 ECO401 ENG001 STA301 PAK301 PHY101 ACC311
CS101 CS410 CS604 CS701 CS711 CS726 MGT201 MGT502 MGT611 MTH100 MTH201 ECO402 ENG101 STA630 PAK302 PHY301 ACC501
CS201 CS501 CS605 CS702 CS712 CS305 MGT211 MGT503 MGT613 MTH101 MTH203 ECO403 ENG201 STA730


CS301 CS502 CS606 CS703 CS713 CS411 MGT301 MGT510 MGT619 MTH202 MTH311 ECO404 ENG301



CS302 CS504 CS607 CS704 CS716 CS412 MGT401 MGT520 MGT620 MTH301 MTH502 ECO406 ENG401



CS304 CS506 CS609 CS706 CS718 CS413 MGT402 MGT601 MGT703 MTH302
ECO704




CS401 CS507 CS610 CS707 CS720 CS509 MGT404 MGT602 MGT704 MTH401
ECO501




CS402 CS508 CS614 CS708 CS721 CS621 MGT411 MGT603 MGT705 MTH501






CS403 CS601 CS615 CS709 CS723 CS622 MGT501 MGT604 MGT711 MTH601

CS506 Assignment no 1 Solution Fall 2016

By:


CS506 Assignment no 1 Solution Fall 2016

Here is the Solution and discussion of CS506 Assignment no 1 Web Design and Development -CS506 assignment Total Marks: 20 Due Date: November 21, 2016.

CS506 Assignment No. 01

Semester: Fall 2016
Web Design and Development -CS506
CS506 Assignment Total Marks: 20
CS506 Assignment Due Date: November 21,

Also Read: CS605 Assignment No 01 Solution Fall 2016

CS506 Assignment 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 Net beans 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 Net bean 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.
Also Read: CS502 Assignment No 1 Solution Fall 2016

CS506 Assignment Objectives:


  • To build understanding towards building classes along with its related methods
  • To know how to write default and parameter 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

CS506 Assignment Question:

Total 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 sphere Volume() 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)

Also read: Make Your Date Sheet Now - Mid Term Examinations Fall 2016

CS506 Assignment Important 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. Sphere Test
  • 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 parameter constructor.
  • You should write a default constructor that would set the value for radius to 1.0 for Sphere class.

CS506 Assignment no 1 Solution Fall 2016

Here is the complete solution of Cs506 Assignment

CS506 Assignment Question Solution:

You need to compile in Net beans, for command prompt follow the instructions of snapshot.
Here is the complete solution of Cs506 Assignment download zip file and You need to right click the zip file and extract solution. 

How to download and install Java JDK 


Now You simply open project in Net beans for study and run the code
The Above instruction can be only for beginner who dose not know how to install JDK And Net beans


Here is Code in text file Sphere Class and Sphere Test

Sphere.txt, 1 KB
SphereTest.txt, 1 KB

You Can Also Download Solved Mid Term PapersShort NotesAssignment SolutionsLecture Wise Questions Answers FilesSolved MCQsSolved Quiz , Solved Mid Term Subjective Papers , Solved Mid Term Objective Papers From This Discussion For Preparation Mid Term Papers of Fall 2015-16.

0 comments:

Post a Comment