Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,628 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,033 people online right now. Registration is fast and FREE... Join Now!




File Validation - Flowchart

 
Reply to this topicStart new topic

File Validation - Flowchart

ajc921
post 9 Apr, 2006 - 06:51 PM
Post #1


New D.I.C Head

*
Joined: 9 Apr, 2006
Posts: 3


My Contributions


hello everyone can somebody please help me w/ this...i have the flowchart ready but i dont understand everything else..here's the question
Create the flowchart for a program that validates the contents of a file. The file you are validating contains daily sales data from a pet store. Each record in the file contains credit card transaction information, consisting of an approval number and the amount of the charge. Your program should output the information from records whose approval number is lower than the previous record or if the amount of the transaction is negative.
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 9 Apr, 2006 - 06:56 PM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,176



Thanked 33 times

Dream Kudos: 25
My Contributions


I'm sorry, you say you have completed the flowchart, but the assignment asks only for the flowchart? Do you need help completing the flowchart, or implementing the flowchart into programming?
User is offlineProfile CardPM

Go to the top of the page

ajc921
post 9 Apr, 2006 - 07:00 PM
Post #3


New D.I.C Head

*
Joined: 9 Apr, 2006
Posts: 3


My Contributions


i need both...i meant to say i understand implementing the right flowchart for the 'this' and 'that' setup. i dont understand the psuedcode..

for example this...thisCount = 0;
- thatCount = 0;
- open file
- While read word from file
if (word == "this") thisCount
if (word == "that") thatCount;
if (word == "exit") break;
- printOutput;

- sub printOutput;
println "that = " + thisCount;
println " that = " + thatCount;

i dont know what to write for this particular problem...

This post has been edited by ajc921: 9 Apr, 2006 - 07:03 PM
User is offlineProfile CardPM

Go to the top of the page

ajc921
post 9 Apr, 2006 - 09:00 PM
Post #4


New D.I.C Head

*
Joined: 9 Apr, 2006
Posts: 3


My Contributions


and can you help me w/ those too...
Design the flow chart for a program that summarizes sales data. The data in the file contain the sales person’s ID number (a number between 1 and 10), and the amount of the sale. The data in the file are not sorted, so you must use an array to keep track of your totals. When you have processed the entire file, output the totals for all sales persons.

Design the flow chart for a program that counts words in a file. The program will use two data files, one file will contain the words to count, and your program will count these words in the second file. The first file may contain up to 10 words. When the program has completely processed the second file, display the count of the words as the output of your program.
User is offlineProfile CardPM

Go to the top of the page

born2c0de
post 10 Apr, 2006 - 06:31 AM
Post #5


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,905



Thanked 34 times

Dream Kudos: 2800

Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions


If you have the flowchart ready...posting it here would be a good idea.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 03:39AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month