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

Instructions

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit  if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is full or partially copied from (other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.

Uploading instructions

Your submission must include:

 

  • Assignment should be in .doc or docx format.
  • Save your assignment with your ID (e.g. bx020200786.doc).
  • Assignment submission through email is highly discouraged

Objective

The objective of this assignment is

  • To give some knowledge, basic syntax and idea about threads of Java programming languages. It will also enable students how to write simple programs in Java programming languages.

 

Note:

Your answer must follow the below given specifications.

  •  Font style: “Times New Roman”
  •  Font color: “Black”
  •  Font size: “12”
  •  Bold for heading only.
  •  Font in Italic is not allowed at all.
  •  No formatting or bullets are allowed to use.
  • Your answer should not exceed 10 lines each.

 

Lectures Covered: This assignment covers Lecture #  22-30

Deadline

Your assignment must be uploaded/submitted at or before 28/07/2015.

 


Question

 

Write a Java program  which creates two threads excluding main thread considering the following points: 

 

  • Use Interface for creating threads
  • It should have two classes named “Circle.java” and “ThreadTest.java”.
  • The class “ThreadTest” will contain main function.
  • Sample Output  like:

 

Main Thread starts here......

Circle 1 Area = 78.54

Circle 2 Area = 153.9384

                              Main Thread Ends here.......

 

Note 1:  The area of circle can be calculated through formula “3.1415 * radius *radius “. Furthermore, you may assign any float/double value to the variable radius.

 

Note 2: “Circle 1” and “Circle 2” are the names of the “Circle” class objects

          

=====================================Ended=======================================

 

             For any query about the assignment, contact at CS508@vu.edu.pk

GOOD LUCK

 

Share This With Friends......

+ Click Here To Join also Our facebook study Group.

This Content Originally Published by a member of VU Students.

+ Prohibited Content On Site + Report a violation + Report an Issue


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


Views: 2396

See Your Saved Posts Timeline

Attachments:

Replies to This Discussion

BLOOM JUST 6 MNTS LEFT PLZ UPLOAD THE ORIGINAL ONE PLZ 

if you have answer pl 

Theory of Automata (CS402)

Assignment # 4(Graded)

  Total marks = 20

                                                                                  Deadline Date = July 31, 2015

 

Please carefully read the following instructions before attempting assignment.

Rules for Marking

It should be clear that your assignment would not get any credit if:

 

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or file is corrupt.
  • Strict action will be taken if submitted solution is copied from any other student or from the internet.

 

1)      You should concern the recommended books to clarify your concepts as handouts are not sufficient.

2)      You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, zip, rar and bmp etc will not be accepted.

 

Note: 

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

 

For any query, feel free to email at:

cs402@vu.edu.pk

Q. Prove the equivalence of the given two FAs by computing (L1 Ç L2c)È (L1c Ç L2).

Note: All transition tables are required.

 

 

 

Best of luck!

 

 

 

 

 

 

 

RSS

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

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