Return to Index  

Lost Beginner

January 16 2001 at 1:55 AM
No score for this post
ME 
from IP address 4.54.221.48

 
I need help!! Just a beginner????? I have been messing around with programming for a few weeks, but I am just about total lost. Any suggestion or help would be appreciated. This is not a school project. Where I work we have some very old computers (286,386 and 486’s) that have just dos in them. We use them for simple jobs and thought that I could do a little reading and try to write a simple program that could do away with a lot of paper work. Here is scenario of the program that I think would help:

We have a program that scans a bar code and prints weight labels. When it scans, the information is stored in a file called weight.dat. The information being stored in weight.dat, ID, time, year, date, weight etc. I would like to find away to gather information and condense it.
Here it is. Find out how many total scans occur during shift, time of first and last scan, date and name.
Scan dir. is where files Idc.dat and weight.dat are located. The file Idc.dat is a list of all ID’s that can run that program, ex.("8CC5","MOE") and so on. Weight.dat is also in the scan dir. Weight.dat is where times, date, ID and other info is kept.
Idea is to write program that will, when ran will give you a output of Name, Julian Date, Times and total scans.
Program will go like this:
1.) Input --Enter ID: (verified that this is a valid ID, by comparing it with Idc.dat file) Output ex.ID----L97Y
I would like to translate the ID to a name (the names are not in the computer, they would have to be put in. I do not know how to = ID to name. Ex ? (L97Y=Bob K.)
2.) Julian Date: (for which day you want, found in weight.dat) Output ex-----046
3.) Time: (first and last scan, found in weight.dat) Output ex-----18:30-04:30
4.) Num of Scans: (add each line for that Date and for that ID, both found in weight.dat) Output ex-----110

Idc.dat looks like this: "B99Y","MOE" one entry per line first string has to be 4 characters (num or letters) rd 3 characters (just letters) both are case sensitive.

After scanning, information is stored this way in weight.dat ,
"C","A12R","01 ","046","19:35","1632489002","87465321 ","0512.0"
“C”,”c89w”,”01 ","046","19:36","1632489002","87465322 ","0312.0" There might be a hundred of these input
“C”,”5678”,” 01 ","046","20:01","1632489002","87465333 ","0099.0" during one shift.
“C”,”Mp76”,” 01 ","046","20:40","1632489002","87465321 ","0512.0"
In. ID Yr Jdate Time MO# Serial# Wt

In short I would like to enter ID and verify that it is correct and then enter julian date .
After entering julian date and hit enter I would get a read out of
ID: Bob(L97Y)
Julian date: 046
Time: 16:01 to 23:45
Total: 113
This looks like a lot ,but after reading some books , someone who knows Basic could write this in about Fifteen minutes I assume.
Any help would be greatly appreciated. Thanks Mike

 
Scoring disabled. You must be logged in to score posts.Respond to this message   
Responses

Create your own forum at Network54
 Copyright © 1999-2009 Network54. All rights reserved.   Terms of Use   Privacy Statement