diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Java-Assignment-002.iml b/Java-Assignment-002.iml
index b46c0dd..6de4599 100644
--- a/Java-Assignment-002.iml
+++ b/Java-Assignment-002.iml
@@ -5,6 +5,7 @@
+
\ No newline at end of file
diff --git a/src/Time.java b/src/Time.java
new file mode 100644
index 0000000..8e54df0
--- /dev/null
+++ b/src/Time.java
@@ -0,0 +1,20 @@
+public class Time {
+ public static void main(String[] args) {
+
+ int hour = 14;
+ int minute = 0;
+ int second = 0;
+ int secondsSinceMidnight = hour * 3600 + minute * 60 + second;
+ System.out.println("Seconds since midnight: " + secondsSinceMidnight);
+ int secondsInADay = 24 * 3600;
+ int secondsRemaining = secondsInADay - secondsSinceMidnight;
+ System.out.println("Seconds remaining in the day: " + secondsRemaining);
+ double percentageOfDayPassed = (double) secondsSinceMidnight / secondsInADay * 100;
+ System.out.println("Percentage of the day passed: " + percentageOfDayPassed + "%");
+ hour = 16;
+ minute = 30;
+ second = 15;
+ int elapsedSeconds = (hour * 3600 + minute * 60 + second) - secondsSinceMidnight;
+ System.out.println("Elapsed time since starting the exercise: " + elapsedSeconds + " seconds");
+ }
+}