Search : in
By :

Programming assignment

Last answer on Oct 18, 2009 10:26:09 am BST jefry, on Oct 17, 2009 11:22:04 am BST 
 Report this message to moderators

Hello,
i have assignment in c programming that would read the cars registration numbers as three letters and numbers. These are the cars that have used the garage during one day of operation. Read the number of hours parked as hours and minutes and use a sentinel value to finish the data entry. save the registration and start stop times in a file. the problem is i dont even know how to start this one since i am new to programming language.
i hope you can help me. Thanks

kind regards,
Jefry

Configuration: Windows XP
Firefox 2.0.0.20

Best answers for « programming assignment » in :
Programming languages Show Programming language A "programming language" is a language designed to describe a set of consecutive actions to be executed by a computer. A programming language is therefore a practical way for us (humans) to give instructions to a...
Characteristics of programming languages Show There are many programming languages, each corresponding to specific needs (formula calculus, character string processing, real-time, etc.) with each having specific characteristics and functionalities. Therefore, the choice of programming language...
Introduction to object-oriented programming Show A new programming concept Extract from "Understanding Active X and OLE" by David Chappel "In the last 35 years, designers of computer hardware have gone from designing machines the size of a hangar to thin notebooks based on minuscule...
Automatically Launch a program at PC startup ShowAutomatically Launch a program at PC startup The problem Solutions Not touching the registry By modifying the registry Disable its launch The problem Some programs such as Mozilla Firefox, Internet Explorer or the e-mail programs...
The Add/Remove Programs icon is missing in Control Panel ShowThe Add/Remove Programs icon is missing in Control Panel When trying to add a program on your computer system, you suddenly noticed that the specific icon is missing. This can be due to Appwiz.cpl missing or damaged. This applet is...
Change the default installation folder C: \ Program Files ShowChange the default installation folder C: \ Program Files The installation of most software programs are set by default in the C: \ Program Files. Below is a means of how to change into another partition. Under Windows Vista, select...
Programming languages - API ShowAPI An API (Application Programming Interface) is a set of functions allowing the programmer to access an application's services through the use of a programming language. An API provides the developer with an abstraction layer, which masks the...
Program structure ShowHow does a computer program work? A program's behaviour depends on the type of language used to write the program. Nonetheless, almost all programming languages are based upon the same principle: The program consists of a set of commands that the...
Analyst-programmer (developer) ShowDeveloper The profession of a developer (also called an analyst-programmer) involves designing and developing a computer application; that is, transcribing a need into a computer-based solution written in computer language. Historically, computer...

1

 bytelogik, on Oct 18, 2009 10:26:09 am BST

If you have less time, look for simple file handling source codes. This will help you to save and retrieve data which is entered. Check out some programs using scanf statements for input of the data.

The simple steps:

1) Declare the variables
2) Get the relevant values using scanf into the variables
3) Process the variables to calculate any desired values if required.
4) Use the file handling statements to store the values. File handling requires three steps:
----Open the file
----Write the values to the file
----Close the file

If you were using VB6, then I could have helped you some more.

keep smiling.

Reply to bytelogik