Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
time-calculator
- Page 1
how to deduct late in time calculator for a payroll system
Programming
Software Development
12 Years Ago
by kishpopboy
…system for my project and part of it is a
time
calculator
and my problem is I really don't know how…their monthly rate to get their daily rate. for the
time
calculator
i have created 8 textboxes. textbox1 is for AM IN… this site and it realy helps me to calculate the
time
. # Dim d1 As DateTime Dim d2 As DateTime Dim …
Intro to Java Programming- Trip Time Calculator
Programming
Software Development
12 Years Ago
by smellysocks
…I have to write an apple that uses a trip
time
calculator
. I have the following codes but cannot get the …().trim()); theComputer.computeLegTime(distance, speed); totalTimeLabel.setText("Your trip
time
so far (hours): " + theComputer.getTripTime()); } catch(TripComputerException ex){…
deduct lates in a time calculator
Programming
Software Development
12 Years Ago
by kishpopboy
… system for my project and part of it is a
time
calculator
. but my problem sir is that i don't know… is deducted 1.16 per minute of lates and under
time
. this is the code i used on how will i…
Time Calculator
Programming
Software Development
16 Years Ago
by detoxx
…timeInMin = System.out.println("
Time
in Hours: "+hour); System.out.println("
Time
in Minutes: "+min); System….out.println("
Time
in seconds: "+sec);…
Re: Time Calculator
Programming
Software Development
16 Years Ago
by tonief
I think that this if kph means speed than distance/kph means
time
in hours you don't need variable hours. you can simlply write [code]System.out.println("
Time
in Hours: "+subtot); [/code]
Re: deduct lates in a time calculator
Programming
Software Development
12 Years Ago
by adam_k
… is deducted 1.16 per minute of lates and under
time
. I guess you want to subtract this from textbox9 and…
Re: Time Calculator
Programming
Software Development
16 Years Ago
by sillyboy
For staters, you don't need to be using floats for hour, sec, min and this is where a lot of your issues will be starting. If you avoid decimal multiplication / division, you will probably get results closer to what you want. e.g. 1.20 = 1 in int (I am referring to your hours). After you calculate hours, you need to take this into account when …
Re: Time Calculator
Programming
Software Development
16 Years Ago
by BestJewSinceJC
Use % and / to do this.
Re: Time Calculator
Programming
Software Development
16 Years Ago
by javaAddict
In Physics everything is measured in meters and seconds. So after you get the speed and distance, Convert both to meters/sec and meters. After you do the division you will have a clean value in seconds which can be easily converted to minutes and hours. If the final value has decimal points: 65.33 seconds then keep them at the seconds value or …
Re: Time Calculator
Programming
Software Development
16 Years Ago
by detoxx
Thank you for your posts!! it is really appreciated :) i will give it a go and let you know how it turns out. thanks again :D
Re: Time Calculator
Programming
Software Development
16 Years Ago
by detoxx
I tried using the modulo and i still get decimals. I also tried changing my some of my floats to integers, but my compiler will not let it compile as it says "Possible Loss of Precision" is there anyway around this? p.s I changed the hour, min and sec to int
Re: Time Calculator
Programming
Software Development
16 Years Ago
by javaAddict
How about some code
Re: Time Calculator
Programming
Software Development
16 Years Ago
by detoxx
its the same as above .... only thing is i changed the floats (hour, min, sec) to int. [code=java] //variables final float KPH =85; float distance; int sec; float min; float hour; float subtot; [/code] [img]http://img230.imageshack.us/my.php?image=javaza8.jpg[/img]
Re: Time Calculator
Programming
Software Development
16 Years Ago
by stultuske
[QUOTE=detoxx;734363] ... for example ... i want it to display "1 hour 20mins 4 seconds" instead of "1.20 hours 80 mins" and how ever many in seconds. ... [code=java] min = subtot*60; hour = min % 60; sec = min*60; [/code][/QUOTE] [Code=Java] min = subtot * 60; if ( …
Re: Time Calculator
Programming
Software Development
16 Years Ago
by detoxx
[URL="http://img386.imageshack.us/my.php?image=questionfl0.jpg"]http://img386.imageshack.us/my.php?image=questionfl0.jpg[/URL] this is the question i had to do to clear up anything. I cant see how i can use If's and Else if to perform that tho ... a formula would do it for you :S
Re: Time Calculator
Programming
Software Development
16 Years Ago
by detoxx
thanks everyone, but i have solved it :) [code=java] public class Travel { public static void main(String[] argv) { // put your local declarations here final double SPEED = 85; double Distance = 0.0; long Seconds; long Minutes; long Hours; // Prompt and read the distance UserInput.prompt("…
Re: Time Calculator
Programming
Software Development
16 Years Ago
by sillyboy
Nice work, you can mark the thread as solved so that people know too.
I need to Calculate duration between two interval dates with time
Programming
Software Development
14 Years Ago
by HESSENY2000
…waiting for more than help , I try to design
time
calculator
to calculate
time
by Minutes you can see code (((( Private Sub …Text1.Text) = 0 Then MsgBox "type any Date and
Time
value": Exit Sub Text5.Text = "" Text6.….Text, Text3.Text) End Sub )))))))) now i want calculate
time
in work hours only (form 9AM till 5 Pm) and…
How to make a run time calculator in asp.net
Programming
Web Development
13 Years Ago
by GAiXz
[B]I just want to know how to perform a real
calculator
in ASP.NET like... there's a 1 textbox or 2 and 1 label where in that label will show the text came from the TEXTBOX while typing get it? any idea? please need some help^_^[/B]
Re: How to make a run time calculator in asp.net
Programming
Web Development
13 Years Ago
by GAiXz
how SIR??? can you post some code please??? like if i type a value in textbox.text and it will display to label.text run
time
... how should i do that on javascipt??
Re: Intro to Java Programming- Trip Time Calculator
Programming
Software Development
12 Years Ago
by zeroliken
Could you tell us the problems, any error messages or runtime problem details plus thats not an Applet thats a Swing
Re: Intro to Java Programming- Trip Time Calculator
Programming
Software Development
12 Years Ago
by smellysocks
Well, I'm supposed to be running an applet but it crashes when it attempts to run. These are the errors I'm getting : Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - incompatible types required: tripcomputerapplication.TripComputerApplication found: tripcomputerapplication.…
Re: Intro to Java Programming- Trip Time Calculator
Programming
Software Development
12 Years Ago
by zeroliken
you can only have one public class present on a Java file where the public class must have the same name as the source file
Re: deduct lates in a time calculator
Programming
Software Development
12 Years Ago
by adam_k
put TextBox1.Text and 8:00 into a date and subtract. (datediff will give you the minutes). If minutes are positive (eg 08:05 - 08:00 = 5 ) then multiply them by 1.16 or whatever. If they are negative then he's in early.
Re: deduct lates in a time calculator
Programming
Software Development
12 Years Ago
by kishpopboy
sir im getting the idea but can you please show me how to do that because im not realy good at vb and i don't know how will i do that.. thanks you sir..
Re: deduct lates in a time calculator
Programming
Software Development
12 Years Ago
by adam_k
Please note that I haven't tested the code below, so it may contain typos. dim mins_late int mins_late = datediff(n, DateTime.Parse("1/1/2012 " + Me.TextBox1.Text.Trim), "1/1/2012 08:00" ) if mins_late < 0 then mins_late = 0 end if penalty = 1.16 * mins_late
Re: deduct lates in a time calculator
Programming
Software Development
12 Years Ago
by kishpopboy
thanks a lot sir.. ill try this.
Re: deduct lates in a time calculator
Programming
Software Development
12 Years Ago
by kishpopboy
sir what dimension should i put on the penalty. im sory sir i can't figure out whats wrong on the code.
Re: calculator in c++!check please ..is it working properly
Programming
Software Development
12 Years Ago
by deceptikon
… didn't compile it. Please don't waste people's
time
if you're not even willing to build your own…
Time Difference in VB 6.0
Programming
Software Development
16 Years Ago
by DhruvaRai
… when you come back from lunch - log in your
time
in and
time
out when you go home. All times are in… 24 hour clock.
Time
In1 (hh:mm)
Time
Out1 (hh:mm) Lunch interval
Time
in2 (hh:mm)
Time
Out2 (hh:mm) Total… times and show the result in hh:mm. [/B] The
calculator
needs to calculate the number of hours and minutes worked…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC