Question: a. Write a Dim statement that reserves two Date variables named dtm CheckIn and dtmCheckOut, and a String variable named strTime. b. Write an assignment

a. Write a Dim statement that reserves two Date variables named dtm CheckIn and dtmCheckOut, and a String variable named strTime. b. Write an assignment statement that assigns the system time to the dtmCheckIn variable. c. Write an assignment statement that assigns the time 6:35PM to the dtmCheckIn variable. d. Write an assignment statement that assigns the value returned by the InputBox function to the strTime variable. Use Enter arrival time: as the prompt, and use Arrival Time as the title. e. Write an assignment statement that assigns the time equivalent of the strTime variable to the dtm CheckIn variable. f. Write an assignment statement that adds eight hours to the dtmCheckIn variable. Assign the result to the dtm Check Out variable. g. Write a MsgBox statement that displays the contents of the dtm Checkout variable using the Short Time format. h. Write a MsgBox statement that displays the number of hours between the dtmCheckIn and dtmCheckOut times. Display the result as a positive number. s to the demo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
