From b1db0eb147fb938a23d34d3429d1f97bc26556e2 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Sun, 28 Jan 2024 11:51:54 -0800 Subject: [PATCH 1/2] John Dennis --- .gitignore | 77 --------------------- .idea/misc.xml | 3 +- .idea/vcs.xml | 6 ++ Java-Assignment-002.iml | 1 + out/production/Java-Assignment-002/.gitkeep | 0 src/Time.java | 28 ++++++++ 6 files changed, 37 insertions(+), 78 deletions(-) delete mode 100644 .gitignore create mode 100644 .idea/vcs.xml create mode 100644 out/production/Java-Assignment-002/.gitkeep create mode 100644 src/Time.java diff --git a/.gitignore b/.gitignore deleted file mode 100644 index d16bbbe..0000000 --- a/.gitignore +++ /dev/null @@ -1,77 +0,0 @@ -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider -# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 - -# User-specific stuff -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/**/usage.statistics.xml -.idea/**/dictionaries -.idea/**/shelf - -# AWS User-specific -.idea/**/aws.xml - -# Generated files -.idea/**/contentModel.xml - -# Sensitive or high-churn files -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml -.idea/**/dbnavigator.xml - -# Gradle -.idea/**/gradle.xml -.idea/**/libraries - -# Gradle and Maven with auto-import -# When using Gradle or Maven with auto-import, you should exclude module files, -# since they will be recreated, and may cause churn. Uncomment if using -# auto-import. -# .idea/artifacts -# .idea/compiler.xml -# .idea/jarRepositories.xml -# .idea/modules.xml -# .idea/*.iml -# .idea/modules -# *.iml -# *.ipr - -# CMake -cmake-build-*/ - -# Mongo Explorer plugin -.idea/**/mongoSettings.xml - -# File-based project format -*.iws - -# IntelliJ -out/ - -# mpeltonen/sbt-idea plugin -.idea_modules/ - -# JIRA plugin -atlassian-ide-plugin.xml - -# Cursive Clojure plugin -.idea/replstate.xml - -# SonarLint plugin -.idea/sonarlint/ - -# Crashlytics plugin (for Android Studio and IntelliJ) -com_crashlytics_export_strings.xml -crashlytics.properties -crashlytics-build.properties -fabric.properties - -# Editor-based Rest Client -.idea/httpRequests - -# Android studio 3.1+ serialized cache file -.idea/caches/build_file_checksums.ser \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 6e86672..6f29fee 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,6 @@ + - + \ No newline at end of file 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..e1006ff 100644 --- a/Java-Assignment-002.iml +++ b/Java-Assignment-002.iml @@ -5,6 +5,7 @@ + \ No newline at end of file diff --git a/out/production/Java-Assignment-002/.gitkeep b/out/production/Java-Assignment-002/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/Time.java b/src/Time.java new file mode 100644 index 0000000..796af66 --- /dev/null +++ b/src/Time.java @@ -0,0 +1,28 @@ + +public class Time { + public static void main(String[] args) { + int hour = 10; + int minute = 39; + int second = 43; + System.out.print("Number of seconds since midnight "); + System.out.println(second+hour*3600+minute*60); + int secondssincemidnight = (second + minute * 60 + hour * 3600); + int secondsinaday = (24 * 3600); + int secondsleft = (secondsinaday-secondssincemidnight); + System.out.print("seconds left until midnight "); + System.out.println(secondsleft); + double percentofday = (double) secondssincemidnight/secondsinaday*100; + System.out.print("Percentage of the day that has passed "); + System.out.println(percentofday); + int hour1 = 11; + int minute1 = 44; + int second1 = 55; + System.out.print("Time spent on this project "); + System.out.print(hour1-hour); + System.out.print(" Hours "); + System.out.print(minute1-minute); + System.out.print(" Minutes and "); + System.out.print(second1-second); + System.out.println(" Seconds "); + } +} \ No newline at end of file From 9b93d2dfe226d079d112b8dfeaac6b35157d29d4 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Sun, 28 Jan 2024 11:55:18 -0800 Subject: [PATCH 2/2] John Dennis --- out/production/Java-Assignment-002/Time.class | Bin 0 -> 1259 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 out/production/Java-Assignment-002/Time.class diff --git a/out/production/Java-Assignment-002/Time.class b/out/production/Java-Assignment-002/Time.class new file mode 100644 index 0000000000000000000000000000000000000000..3a942a228d96455419d9522622b19ed87c51f10d GIT binary patch literal 1259 zcmZuxO>Y}j6g@8<&vx91a({4*mXmKe{L))ZZlA%SZELGifVo&T>JTtCm zjOYS^#3D=9Y>-$ZAr+93So8<*qfpPAaa2``7jy5sU+3KOp8Vhc|Goim8xQiBL&kzp zL>8ui^TPesZ4BL@-*~kD!t2HY=9UUnye*Ka)jKwFur1_^D4_UW`QEE2_Iy@_6E;=a z$siRr9*c@%O#43=d@Fb;F<+$w&oVPx`7CsQw_9c{o_IP%2^> zWr5{mMhRp`dN7e{DOAFlI4bD3>K#2|rHBu(Dqtm*!$82OJ*;;!5MTe8Lseky2!H4u z#BvhEYWR+XdFv?^;xC6&0_Pulu$`(E*n#Q2n341h)Z54Q_&QIL^AtR-B*mZ{;cdYbz7Bn;!-f&wt zx7h8wiZZR#o*kzt^X|CM`sHKNOb*CgKs@9?KjBR$Ral@rlRCNSql@N-v#<(W$|+Eo zo%MwX6i2D(;X#rVyS#M`vPqp%1ns3Q^zwVmb-jB^?`!LouIQJ84K(=3^=}TG0F&QM zo*J}*Hhb|Oh}TK_6Ml7CmtN(!m=@p~KIO?q6W1AGv-lMTv%ud@e#^OV)48<$C#=%^ z6pOU$)ujbz@O;hL8a$t(vYt3;tZ9@^G_#d##ppFn-EuN*shBLR7>AYYVOYl6H#aPu z{4hrFqj$URW0gA? z$Rx6u+|a@jU;G(*o5*wP0=Bs4F6Pn30-j