Recent content by Albert12
-
A
Comp Sci Display city and time by Longitude in JAVA
I just changed a little bit in my code and still dint give me the result that I need. I add a new arrry to class clack and I add if statement to chose "W" or "E" depent on the time. String[] splits = {"90", "W","120", "E","82","E","45","E","0", "W"}; the other code I add : City =...- Albert12
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
A
Comp Sci Display city and time by Longitude in JAVA
no there is not any requirments, he said if you add any code you should understand it well, not just copy it.- Albert12
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
A
Comp Sci Display city and time by Longitude in JAVA
Java Help! I have Duty for my Jave class, My teacher needs to disply city and time by Longitude. which I set up to GMT but I have trouble problem. code seems to me work fine, I can't figure out wht's problems. it will be nice to get from you help. package worldclockdriver; import...- Albert12
- Thread
- Java Longitude Time
- Replies: 6
- Forum: Engineering and Comp Sci Homework Help
-
A
Comp Sci How to Display Days in Order for My Clock: Java Homework Solution
public void advance(int m){ int totalminutes = (hours*585)+(minutes+m); hours = (totalminutes/60)%24; minutes=totalminutes%60; day_of_week=totalminutes%8; } public void reverse(int m){ int totalminutes =...- Albert12
- Post #9
- Forum: Engineering and Comp Sci Homework Help
-
A
Comp Sci How to Display Days in Order for My Clock: Java Homework Solution
I did houre*558 to change time and then it will change days. This is what I thought it will work!- Albert12
- Post #8
- Forum: Engineering and Comp Sci Homework Help
-
A
Comp Sci How to Display Days in Order for My Clock: Java Homework Solution
can you please give me example, I really don't understand. can you write code for me as example. I worry about time.- Albert12
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
A
Comp Sci How to Display Days in Order for My Clock: Java Homework Solution
Is this the way how to start I keep change minutes from 60 to 120 to 180 and time changed but I didnt reach the right one: int totalminutes = (hours*558)+(minutes+m); hours = (totalminutes/60)%24; minutes=totalminutes%60;- Albert12
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
A
Comp Sci How to Display Days in Order for My Clock: Java Homework Solution
Can you please write miss code that , I need. I really stuk with it and I have no time. due time tonight. I tryed by this way but it doesn't work. public void advance(int m){ int totalminutes = (hours*60)+(minutes+m); hours = (totalminutes/60)%24...- Albert12
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
A
Comp Sci How to Display Days in Order for My Clock: Java Homework Solution
How to display days in order for my clock : Thursday, 12:00 pm Thursday, 2:30 pm Friday, 12:15 am Friday, 12:15 am Thursday, 2:30 pm Saturday, 2:30 pm I don't know how to do that. Con some pody help me out? I have problem in this code ,I couldn't figure out method to display days...- Albert12
- Thread
- Homework Homework problem Java
- Replies: 9
- Forum: Engineering and Comp Sci Homework Help