Showing posts with label cs506. Show all posts
Showing posts with label cs506. Show all posts

CS506 Assignment no. 2 Solution Fall 2016

By: // No comments:

CS506 Assignment no. 2 Fall 2016

Dear Students as You may know CS506 Assignment no. 2 has been uploaded. The due date of this assignment is December 02, 2016.

CS506 Assignment No. 02
Semester: Fall 2016
Web Design and Development -CS506
CS506 Assignment Total Marks: 20
Due Date: December 02, 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 Netbeans IDE for developing your assignment.
  • You should import java swing and java awt packages in your classes.
  • You should create project with your Roll No. in Netbean IDE and create required classes in it.
  • 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.

CS506 Assignment Objectives:


  • To build knowledge about how event handling works in Java
  • To develop basic GUI application
  • To know how to use different GUI components of AWT and Swing packages 
For any query about the assignment, contact at CS506@vu.edu.pk

CS506 Assignment Question:

Marks 20

You are required to develop a small java program named as “Printer” by creating following Graphical User Interface (GUI) with functionality.

GUI

Functionalities Required

  • Print Quality drop down list should contain two values as; High and Low
  • Upon Pressing OK button, new dialog box should be opened with the following text;
  • “Thanks for using this application” and program must exit successfully.
  • Upon Pressing Cancel button, new dialog box should be opened with the following text;
  • “You Pressed Cancel Button”.
  • Upon pressing Help button, new dialog box should be opened containing following text;
  • “For more help, please contact CS506@vu.edu.pk”

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.

CS506 Assignment no. 2 Solution

You can download CS506 Assignment No. 2 Solution from the Link Below:

CS506 Assignment no 1 Solution Fall 2016

By: // No comments:

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.

CS506 Assignment # 1 Web Design and Development

By: // 3 comments:
Problem Statement:
You are required to Install/configure the JDK(Java Development Kit) on your system and create the simple Java Program that displays your name and VUID in the command prompt.
Attachments:
Detailed Description:
Firstly install and configure the JDK on your system, so that you can compile and run the Java program in command prompt.
For this purpose you have to set the following environment variable.
  • PATH variable
After installing the JDK, by setting the above environment variable, you are required to test JDK, by typing the following command incommand prompt
javacor
java
If you have correctly installed the JDK then followingmessage should be displayed in your command prompt.
or

Now you can compile/run the java program,
You are required to write the simple Java Program that will display your nameand yourVUID in the command prompt.

For creating a simple java program you are required to perform the following steps on your system.

  • Install and configureJDK.
  • Set the environment variable PATH
  • Write the simple java program in notepad and save it with your VUID, suppose you have saved your java programas “mc123456789.java” in some directory.  Make sure to add double quotes around java program name while saving your program in notepad.  For example create a folder known as “Assignment” in E: drive and save you program at path E:\Assignment

After performing the above three steps type the following command in command prompt as follows.

C:\Users\umarfarooq>E:
E:\>cd Assignment
E:\Assignment>javac mc123456789.java
E:\Assignment>java mc123456789
Muhammad Ali
mc123456789
E:\Assignment>

As a result in command prompt your nameand VUID should be displayed
Note: you can save your program in any drive and folder but name of your java file should be your own VUID

Sample Output:


You have to send the following things in assignment.
Screen Shot ofCommand Prompt:
Screen shot of command prompt, after writing the java or javac command in command prompt, as follows.
C:\Users\umarfarooq>javac
Or
C:\Users\umarfarooq>java

Screenshot of command prompt window when you compile/run your java program it should displayyour nameandVUIDin the command prompt as follows.
E:\Assignment>javac mc123456789.java
E:\Assignment>java mc123456789
Muhammad Ali
mc123456789
Note: You can get the screen shot of any active window by pressing Alt+PrtScnkey.
Java Program:
Write the Java program and save it with your own VUIDlikems123456789.javatodisplay yournameandVUIDin the command prompt and send the code in the same word file, there is no need to send the java program in separate file you can send the code in same word file.
Note: you are required to send above things in a single Word File. i.e. (Screen shot of output window when you type java or javac in command prompt,screen shot of compiling/running of your program and thejava program code).
Show Love and Like Us on facebook