Please help me on how to finish my program..the problem is i have to make a program wherein i will type the start time and the end time, get the length of time..using the 24 -hour clock. using only Select case, no if/else
here's my unfinished code:
It's easy to know the length of the call but the main problem is that the per minute call varies on certain length of hour...for 6:01 pm to 8:00 am - $0.6
and 8:01 a.m. to 6:00 pm is $0.9, i really have a hard time figuring out how to know if that certain time lands on the sepecific range..Please help
here's my unfinished code:
VB.NET:
Console.Write("Enter start time: ")
st = console.ReadLine()
Console.write("Enter end time: ")
et = console.ReadLine()
diff = (et - st)
Console.Write("Length of the call is: {0}", diff)
Select Case et
Case 1801 To 2400
com1 = 0.6
Case 100 To 759
com2 = 0.6
Case 800 To 1800
com3 = 0.9
End Select
and 8:01 a.m. to 6:00 pm is $0.9, i really have a hard time figuring out how to know if that certain time lands on the sepecific range..Please help
Last edited by a moderator: