Professional Documents
Culture Documents
OOP Assignment
OOP Assignment
Submitted To:
Dr. Md. Ezharul Islam
Associate Professor
Dept. of CSE.
Jahangirnagar University.
Submitted By:
Shantanu Mazumder
Student Roll: CSE202101154
Jahangirnagar University
CSE, PMSCS.
Level 1 Programming Exercise:
17. Write a program that displays a frame window 800 pixels wide and 600 pixels
Answer:
Source Code:
Output:
21. Write a program to display today’s date in this format: Monday December 10, 2008.
Answer:
Source Code:
Output:
23. Display the current time in the title of a frame window using this format: 12:45:43 PM.
Answer: Source Code and output are shown below:
Answer:
Source Code:
Output:
Development Exercise:
35. Problem Statement: Write a program that asks the user for her or his full name in the
format: “first middle last” and replies with the name in the format : “last , first middle-initial.”
where the last name is followed by comma and the middle initial is followed by period.
Answer:
Source Code:
Output: