473,813 Members | 4,172 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making a parking fee calculator using DateTimePickers

1 New Member
Hi-

I'm trying to make an application that computes the fee for parking a car in a parking garage. The user should provide the Time In: and Time Out: values by using DateTimePickers . The application should calculate the cost of parking in the garage for the specified amount of time. Parking costs three dollars an hour. When calculating the total time spent in the garage, I will ignore the seconds value but the minutes value is treated as a fraction of an hour (1 minute is 1/60 of an hour). No overnight parking is allowed.

So I will accept four "int"

1) the hour value of time in,
2) the minute value of time in,
3) the hour value of time out
4) the minute value of time out

how do I "extract" these four values above?

Any ideas on how this program can be accomplished?
Oct 28 '09 #1
1 4328
tlhintoq
3,525 Recognized Expert Specialist
When it comes to homework questions you need to try some one your own first, then show the volunteers here what you have done and where you are stuck.
That's part of the guidelines about posting school work.
Oct 29 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
797
by: Hin | last post by:
Using graphics program, I made a pic of a dialog and some pics of the buttons, which are on the dialog, in their mouseover state. How can i make this UI in VC or .NET framework using the pics i make? Need i use any packages or library outside? Thanks. -- Regards,
2
2814
by: nejmay | last post by:
Help Please, I am taking a beginners VB.NET class and my next assignment making a Depreciation Calculator. I am suppose to use the built in functions SLN() and SYD() to perform the calus, option buttons to specify the deprec method, combo box to specify life. Then I am suppose to display the depreciation schedule in ListView. I am having a hard time understanding how to tie the ListView with the actual calulation and make the columns and...
0
985
by: Sankalp | last post by:
Hi, I am tryin to create an internet connection and download a particular file from a specified URL programmatically using VB on a WIN 95 machine. The code that I use is as follows: Private Const INTERNET_OPEN_TYPE_PRECONFIG = 0 Private Const INTERNET_OPEN_TYPE_DIRECT = 1 Private Const INTERNET_OPEN_TYPE_PROXY = 3
4
4605
by: rzimerman | last post by:
I'm hoping to write a program that will read any number of urls from stdin (1 per line), download them, and process them. So far my script (below) works well for small numbers of urls. However, it does not scale to more than 200 urls or so, because it issues HTTP requests for all of the urls simultaneously, and terminates after 25 seconds. Ideally, I'd like this script to download at most 50 pages in parallel, and to time out if and only...
0
1522
by: teju | last post by:
Hi, Iam writing an application which sends a sms alert and an email whenver the database server is down.Iam successfull in acheiving the output for the above .But now i want to make a phone call using the ASP script I dont know how to proceed further .I have searched on internet but .. If someone would help writing the script or telling me the service providers for this,it would be great thanks
1
1173
by: alexcole | last post by:
Can someone please show me a tut of how to make a simple lil' calculator? ty
3
1872
by: vaibhavkanwal | last post by:
Hi, i am trying to initialize a dynamic array and use this array to conduct linear search. I know about new and delete but as a pointer can be incremented by the sizeof its dataype, i wanted to create an array by incrementing a pointer! This code's working fine just that when i enter the value to be stored in the array for linear search it says " POINTER (2) 0x2487 PROCESSOR FAULT" #include<stdio.h> void main() { int *a, *b, count,...
2
2501
by: jtanz0 | last post by:
Im fairly new to java programming although i have some experience in python. I have to create a calculator program (command line) which takes as input a mathematical expression consisting of decimal numbers and the four basic mathematical operators (+,-,/,*) and correctly handles nested mathematical expressions. Some examples: • 5 + 6 * 2 results in 17 • (5 + 4) * (4 - 2) results in 18 i can do the basics ie taking an input and...
1
2232
by: Shishir01 | last post by:
Hi, I want to make a xml document using Excel macros. The code should read the cell contents of the excel worksheet and generate tags accordingly.
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10420
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10139
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9221
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5704
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3029
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.