Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
13 views
18 pages
OOP
Asssignment
Uploaded by
saymyname.pt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save OOP For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
13 views
18 pages
OOP
Asssignment
Uploaded by
saymyname.pt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save OOP For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 18
Search
Fullscreen
Electronics and Communication Engineering Discipline Khulna University, Khulna Course Title: Object Oriented Programming Course Code: CSE-1251 Submitted To Atanu Shome Assistant Professor Computer Science and Engineering Discipline Khulna University, Khulna Submitted By ‘Md. Mahfujar Rahman Murad Student 10: 220903 1 year, 2 Term Electronics and Communication Engineering Discipline Khulna University, Khuina Date of Submission : 15" October, 2023De a tien See a wale 0 file and write fo inrmaton Asignnser’ 1. a Yul University. packag 0 kahsk1, import java-i0- File 5 impor} java.util. FormaHder ; SKS ublic elacs "le Public ste fe void main (shing LJ args) 4 Bd t File f4=now File ("C Vee ee FT. crealeNewFile ¢) ; Termatter fn > new Formatte p es, 4 KU"); a fanat (“ashe |n’ “Here is 10 infirmalon abut hua Universi i Ly frmet ("as\r\n") "0 Khulna Unversity t 0 renowned| Wie Univer s| as public, a of ah 9 ’ e Crstelr” ie was started with 99 : students”) 5 ” "ge of w2% tt has 29 B5\vhn 5 t C 7 ck a. wits ie asics wil tm. fomat ("psirin uy. Tt has a contrad Ubmary a Am. rma ("rs\r\m M5 Tt hos dhret oeadmee. walling’). ™ hemat Crsir\n" "CTH ig sthaled boride Sher & Bangla. read} Benes C"astrin’, "9 has 9 bap postel”) ° . m- firm af ("AYo ln" "® Wy hes 2 girls’ hotek 5; yr $que and 4 1H hes a larga Mosq ormat (as\r\ry SB 4 j a ny a mat (Ashen, iy. kas 0. canta fatorator) ose ¢ Dy nae stem. cud: protln ("Mm file bs created suesahaly’); Bie¢ ] | Asigomen} 24 Imagine File named "input: txt" eantadns Snumbers, oad thore fur numbers and maltip ly Ham together. Outpt the tesult tn another Al. poekaye kahskay Import Java: 10 Fila; \ yova: util: Seonner : ee Pa sd dweile? 5 import gevei0- boffesunider » outfere Ee import Jona iv. Filewriter » public class kGHSK pubic state void main (Shing CI orgs) 4. 4 t 7) File £1 = new File (reson fem ovement nt) Goanner 40 = new Seannan (78): + product = 7 + 7 (se. hos Next Jot () f m= $e next Int ty hs println C'’'Number se + num ) ; #- num: | a”S¢ Clos2 (); S¢item. out-printin (“The praduet is.” + product iF bulferedwWritep wre new buttereduiriter (neu Fileweiter (‘c fevers 2m/boeamen ts /atput: tr ry); we. write ("Result rs - preduct ) » wr. close (); Syttem. cut. prinHn ("Ne Ale de Gheated succay fil} j cateh { Exeephon 2 ) 5 System. out. println (29; 7Assianmon t 3: Create tuo thread. First oF be used fr prinhing numbers 1 f 100000.Second one will bo uted fr printing my mane 100000 hine)s Gh mm such @ way fnaf seeond thread - ... Btn frst. package kahs key publie class kGHSK3} public static void main (String CI ores) Thread num = new Thread (O->4 tov (int m=1 5 m <2]00000; met) Fh syttem out print n (Uhlumber :" tm); 5); mame Thread name = new Thread ot fr (int maa, m<= 100000; m+t) Sytem out-printn ("Murad") 5 93name. sof Priveity (Thread. max. PRI0RIT name. start () ; hum. start (95 ary 4 name. 7oin() ; Sytem out. pemd(n CAoo tread Ainisha firs) ; num: jon () 5 System. out priatln ("Number Hhroad Anis hel) ; featch ( Geaption ©) { splen at pridln (6)Astignmenl 4! Ghd example. 0 . in $00 Ufferent way! (Thread elas an runnab le, inter fee), Thread class Package kghsk4; Cass Mano. extends Thread 4 puble void ran t) fp (Gr m=. nN 2am 5 mrt) 4 Syitem- out. prind/n (Murad 4; Jeateh (Ceeeption e)i Sytem aut. prin tly); ii)Cass Number extend ast a public oid run() ] ny I fe (ht mat, meg Art )I Sytem out print (ember +” rm) f peateh (Getting. 4 54am -out. print fn @); 1) public class kes kat public sfihe vid main (string £3 arys) 4 Thread Number Thread = new Numbe ro; Thread Name thread — new Name O; numbeyY Thread, start () ; namethread. 54anq- ty) 3 3me 4 , Package kahsks; bss Name imploments Runnable, 4 try} for (int mat; m=95 m+t) } Sqltem.out print|n (“Mura d as feateh (Cceaphin ey Jystem.out: printn (2) class Namben cmplaments Runnable | public void nancy ‘at hr (int met; M25; mit) } “Syttem cut. printly (Namber: “em; | ae sytem ect prietl (a) 5 apublic elas kG HSKSY public State void maim (sting lI args) 4 Runnable num - new Number ¢) + Runnable name = now Wame ¢) ; Tread numberThread = new Thread (num) ‘ Thread namethread = ned) Tread (rame) ; number Thread» sdart (a § name Thread. stant ey; ; 3
You might also like
سلايدات م. سماح مساعدة
PDF
No ratings yet
سلايدات م. سماح مساعدة
255 pages
Notes
PDF
No ratings yet
Notes
236 pages
(Assignment_22235103643_Noman
PDF
No ratings yet
(Assignment_22235103643_Noman
19 pages
Summarize Java Notes
PDF
No ratings yet
Summarize Java Notes
55 pages
Ilovepdf Merged Removed
PDF
No ratings yet
Ilovepdf Merged Removed
12 pages
java practical
PDF
No ratings yet
java practical
26 pages
Java Long
PDF
No ratings yet
Java Long
43 pages
Lesson 01 - Intro
PDF
No ratings yet
Lesson 01 - Intro
57 pages
Ok Questions
PDF
No ratings yet
Ok Questions
16 pages
Atul Final
PDF
No ratings yet
Atul Final
64 pages
Lecture 1 Introduction
PDF
No ratings yet
Lecture 1 Introduction
50 pages
OOPS Experiment 5 to 7
PDF
No ratings yet
OOPS Experiment 5 to 7
10 pages
C Book
PDF
No ratings yet
C Book
127 pages
JAVA Imp THEORY
PDF
No ratings yet
JAVA Imp THEORY
13 pages
Class
PDF
No ratings yet
Class
6 pages
Java Notes
PDF
No ratings yet
Java Notes
11 pages
Multithreaded Programming
PDF
No ratings yet
Multithreaded Programming
59 pages
NCP2210 LabAct1
PDF
No ratings yet
NCP2210 LabAct1
17 pages
Oops I Notes
PDF
No ratings yet
Oops I Notes
76 pages
JAVA ST-2 Solutions
PDF
No ratings yet
JAVA ST-2 Solutions
6 pages
B22ai019 Oopj T12 Solutions
PDF
No ratings yet
B22ai019 Oopj T12 Solutions
8 pages
Java Unit - 3(programs)
PDF
No ratings yet
Java Unit - 3(programs)
5 pages
Final Assignment CSE 425 Concept of Programming Language Section 7 Spring 2020 North South University Submitted To: Prof. Md. Ezharul Islam (Ezm)
PDF
No ratings yet
Final Assignment CSE 425 Concept of Programming Language Section 7 Spring 2020 North South University Submitted To: Prof. Md. Ezharul Islam (Ezm)
27 pages
Java 1and 2
PDF
No ratings yet
Java 1and 2
11 pages
Grid Computing and Distributed Systems (GRIDS) Laboratory Dept. of Computer Science and Software Engineering University of Melbourne, Australia or
PDF
No ratings yet
Grid Computing and Distributed Systems (GRIDS) Laboratory Dept. of Computer Science and Software Engineering University of Melbourne, Australia or
63 pages
C# Program List
PDF
No ratings yet
C# Program List
22 pages
PF ch#1
PDF
No ratings yet
PF ch#1
25 pages
OS Support For Building Distributed Applications: Multithreaded Programming Using Java Threads
PDF
No ratings yet
OS Support For Building Distributed Applications: Multithreaded Programming Using Java Threads
53 pages
Java Lab
PDF
No ratings yet
Java Lab
26 pages
A2 OOPJ BCS 403 Solution
PDF
No ratings yet
A2 OOPJ BCS 403 Solution
4 pages
Java Practical Assignment
PDF
No ratings yet
Java Practical Assignment
45 pages
Java Intro
PDF
No ratings yet
Java Intro
25 pages
OOP CAT 2-1
PDF
No ratings yet
OOP CAT 2-1
8 pages
ECE 2204_Mahbub Sir_Lab Manual 2
PDF
No ratings yet
ECE 2204_Mahbub Sir_Lab Manual 2
4 pages
Program - 1 (A) : Aim: - Write A Program To Implement Static Polymorphism (Method Overloading) - Source Code
PDF
No ratings yet
Program - 1 (A) : Aim: - Write A Program To Implement Static Polymorphism (Method Overloading) - Source Code
19 pages
TM105 - Meeting 1
PDF
No ratings yet
TM105 - Meeting 1
14 pages
C Api
PDF
No ratings yet
C Api
189 pages
Laboratory Activity #1 Java Fundamentals: Ncp2210 (Computerfundamentalsandprogramming)
PDF
No ratings yet
Laboratory Activity #1 Java Fundamentals: Ncp2210 (Computerfundamentalsandprogramming)
18 pages
Induction Motor
PDF
No ratings yet
Induction Motor
3 pages
Python Api Manual PDF
PDF
100% (1)
Python Api Manual PDF
100 pages
C Language
PDF
No ratings yet
C Language
135 pages
Java and C++: - Both Are "Object Oriented" - Java Is Interpreted, and Garbage Collected
PDF
No ratings yet
Java and C++: - Both Are "Object Oriented" - Java Is Interpreted, and Garbage Collected
54 pages
Updated Invitation
PDF
No ratings yet
Updated Invitation
1 page
Java Lab 8
PDF
No ratings yet
Java Lab 8
6 pages
C++ Lecture Notes: Fran Cois Fleuret November 21, 2005
PDF
No ratings yet
C++ Lecture Notes: Fran Cois Fleuret November 21, 2005
7 pages
OBE Curriculum
PDF
No ratings yet
OBE Curriculum
283 pages
Python C API Reference Manual
PDF
100% (1)
Python C API Reference Manual
142 pages
Java Manual
PDF
No ratings yet
Java Manual
94 pages
PF Lecture 2
PDF
No ratings yet
PF Lecture 2
30 pages
220912
PDF
No ratings yet
220912
19 pages
Manuale Python 2002
PDF
No ratings yet
Manuale Python 2002
100 pages
JAVA NOTE (MDT)
PDF
No ratings yet
JAVA NOTE (MDT)
37 pages
C Language
PDF
100% (1)
C Language
149 pages
Java Notes
PDF
No ratings yet
Java Notes
22 pages
My Java Practical File-2
PDF
No ratings yet
My Java Practical File-2
51 pages
Compressed
PDF
No ratings yet
Compressed
244 pages
PPJ 20230112
PDF
No ratings yet
PPJ 20230112
132 pages
220915
PDF
No ratings yet
220915
13 pages
Introduction To C Programming - PowerPoint Slides
PDF
No ratings yet
Introduction To C Programming - PowerPoint Slides
3 pages
Preface: Hapter
PDF
No ratings yet
Preface: Hapter
4 pages
180933
PDF
No ratings yet
180933
10 pages
Eng 1281 - Assignment
PDF
No ratings yet
Eng 1281 - Assignment
8 pages
ECE 1204 (Section B) Lab Manual 02
PDF
No ratings yet
ECE 1204 (Section B) Lab Manual 02
6 pages
Web Technology
PDF
No ratings yet
Web Technology
51 pages
ECE 1202 Lab01
PDF
No ratings yet
ECE 1202 Lab01
3 pages
ECE 1201 Lab - Manual 01
PDF
No ratings yet
ECE 1201 Lab - Manual 01
3 pages
Assignment: Atanu Shome
PDF
No ratings yet
Assignment: Atanu Shome
9 pages
ECE 1202 Lab Manual 05 & 06
PDF
No ratings yet
ECE 1202 Lab Manual 05 & 06
3 pages
ECE 1202 Lab Manual 04
PDF
No ratings yet
ECE 1202 Lab Manual 04
3 pages
ECE 1202 Lab Manual 04
PDF
No ratings yet
ECE 1202 Lab Manual 04
3 pages
CSE 1251 CT Questions
PDF
No ratings yet
CSE 1251 CT Questions
1 page