| | |
I need some tips on creating a flowchart.
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
•
•
Join Date: Jun 2008
Posts: 6
Reputation:
Solved Threads: 0
Here is the problem,
DEPARTMENT STORE SALES FILE DESCRIPTION
File name: DEPTSALES
Sorted by: Department
Field Description Data Type COMMENTS
Transaction Number Numeric a 6-digit number
Amount Numeric 2 decimal places
Department Numeric a 3-digit number
Using Visio create the flowchart that shows the logic for a program that would print each transaction’s details, with a total at the end of each department.
I just need some tips on how to get this thing started. This is a very confusing subject for me. Any help at all would be appreciated. Thanks.
DEPARTMENT STORE SALES FILE DESCRIPTION
File name: DEPTSALES
Sorted by: Department
Field Description Data Type COMMENTS
Transaction Number Numeric a 6-digit number
Amount Numeric 2 decimal places
Department Numeric a 3-digit number
Using Visio create the flowchart that shows the logic for a program that would print each transaction’s details, with a total at the end of each department.
I just need some tips on how to get this thing started. This is a very confusing subject for me. Any help at all would be appreciated. Thanks.
•
•
Join Date: Jun 2008
Posts: 6
Reputation:
Solved Threads: 0
This is What I got even though I don't think it is right.
Start
l
depttotal
grandtotal
hasinput
openinput
getnextrecord
currentdept
l
Print Title
l
get num department
l
department
l-----------------------------------------------------------
eof?----------------------------grandtotal= l
l numtransaction -----Print details
l num amount
Stop num department
Thanks for any help.
Start
l
depttotal
grandtotal
hasinput
openinput
getnextrecord
currentdept
l
Print Title
l
get num department
l
department
l-----------------------------------------------------------
eof?----------------------------grandtotal= l
l numtransaction -----Print details
l num amount
Stop num department
Thanks for any help.
•
•
Join Date: Jun 2008
Posts: 6
Reputation:
Solved Threads: 0
http://www.sendspace.com/file/983rwg
That is a different flowchart. I just want someone to check over it for me before I turn it in.
That is a different flowchart. I just want someone to check over it for me before I turn it in.
•
•
Join Date: Jun 2008
Posts: 6
Reputation:
Solved Threads: 0
I am pretty sure I did this flowchart wrong. Can someone tell me what I did wrong and possibly the correct way.
The flowchart is an image, http://www.sendspace.com/file/bxnlvb
Here is what it is for,
A soft-drink manufacturer produces several flavors of drink—for example, cola, orange, and lemon. Additionally, each flavor has several versions such as regular, diet, and caffeine-free. The manufacturer operates factories in several states.
Assume you have input records that list version, flavor, yearly production in gallons, and state (for example: Regular Cola 5000 Kansas). The records have been sorted in alphabetical order by version within flavor within state. Design the report that lists each version and flavor, with minor total production figures for each flavor and major total production figures for each state.
The flowchart is an image, http://www.sendspace.com/file/bxnlvb
Here is what it is for,
A soft-drink manufacturer produces several flavors of drink—for example, cola, orange, and lemon. Additionally, each flavor has several versions such as regular, diet, and caffeine-free. The manufacturer operates factories in several states.
Assume you have input records that list version, flavor, yearly production in gallons, and state (for example: Regular Cola 5000 Kansas). The records have been sorted in alphabetical order by version within flavor within state. Design the report that lists each version and flavor, with minor total production figures for each flavor and major total production figures for each state.
•
•
Join Date: Dec 2008
Posts: 1
Reputation:
Solved Threads: 0
A soft-drink manufacturer produces several flavors of drink—for example, cola, orange, and lemon. Additionally, each flavor has several versions such as regular, diet, and caffeine-free. The manufacturer operates factories in several states.
Assume you have input records that list version, flavor, yearly production in gallons, and state (for example: Regular Cola 5000 Kansas). The records have been sorted in alphabetical order by version within flavor within state. Design the report that lists each version and flavor, with minor total production figures for each flavor and major total production figures for each state.
My first suggestion is that you create a sample of input data. That will aid you in visualizing what the report is to contain. Note that the input file is sorted in alphabetical order by version within flavor within state. For example:
caffeine-free Cola 5000 Alabama
diet Cola 5500 Alabama
regular Cola 7500 Alabama
caffeine-free Lemon 5000 Alabama
diet Lemon 5500 Alabama
regular Lemon 7500 Alabama
caffeine-free Orange 5000 Alabama
diet Orange 5500 Alabama
regular Orange 7500 Alabama
caffeine-free Cola 5000 Georgia
diet Cola 5500 Georgia
regular Cola 7500 Georgia
caffeine-free Lemon 5000 Georgia
diet Lemon 5500 Georgia
regular Lemon 7500 Georgia
caffeine-free Orange 5000 Georgia
diet Orange 5500 Georgia
regular Orange 7500 Georgia
The corresponding output should be similar to this:
State: Alabama
Flavor: Cola
caffeine-free 5000
diet 5500
regular 7500
Total Cola 18000
Flavor: Lemon
caffeine-free 3000
diet 3500
regular 5500
Total Lemon 12000
Flavor: Orange
caffeine-free 2500
diet 3500
regular 4500
Total Orange 10500
Total Production for Alabama 40500
State: Georgia
Flavor: Cola
caffeine-free 5000
diet 5500
regular 7500
Total Cola 18000
Flavor: Lemon
caffeine-free 3000
diet 3500
regular 5500
Total Lemon 12000
Flavor: Orange
caffeine-free 2500
diet 3500
regular 4500
Total Orange 10500
Total Production for Georgia 40500
The input consists of information about drinks: version, flavor, yearly production, and state. You will need a variable for each of these. For each get in your program, you will get all 4 pieces of data. These records are sorted in alphabetical order by version within flavor within state. In the example input and output the versions listed are caffeine-free, diet, and regular. The flavors are cola, lemon, and orange. States are Alabama and Georgia. These are not the only ones that may be in the input file and are used for demonstration purposes only. As you can see in the sample input, for the state Alabama, the flavors are sorted and within each flavor the versions are sorted.
Because this is a control break program, we know there is some special processing to be done for this report. What is that special processing? We must list a total for each flavor and a total for each state. Decide what variables will be used for the control breaks. There will be at least two!
You may want to begin by working on the code to produce totals for each flavor
Assume you have input records that list version, flavor, yearly production in gallons, and state (for example: Regular Cola 5000 Kansas). The records have been sorted in alphabetical order by version within flavor within state. Design the report that lists each version and flavor, with minor total production figures for each flavor and major total production figures for each state.
My first suggestion is that you create a sample of input data. That will aid you in visualizing what the report is to contain. Note that the input file is sorted in alphabetical order by version within flavor within state. For example:
caffeine-free Cola 5000 Alabama
diet Cola 5500 Alabama
regular Cola 7500 Alabama
caffeine-free Lemon 5000 Alabama
diet Lemon 5500 Alabama
regular Lemon 7500 Alabama
caffeine-free Orange 5000 Alabama
diet Orange 5500 Alabama
regular Orange 7500 Alabama
caffeine-free Cola 5000 Georgia
diet Cola 5500 Georgia
regular Cola 7500 Georgia
caffeine-free Lemon 5000 Georgia
diet Lemon 5500 Georgia
regular Lemon 7500 Georgia
caffeine-free Orange 5000 Georgia
diet Orange 5500 Georgia
regular Orange 7500 Georgia
The corresponding output should be similar to this:
State: Alabama
Flavor: Cola
caffeine-free 5000
diet 5500
regular 7500
Total Cola 18000
Flavor: Lemon
caffeine-free 3000
diet 3500
regular 5500
Total Lemon 12000
Flavor: Orange
caffeine-free 2500
diet 3500
regular 4500
Total Orange 10500
Total Production for Alabama 40500
State: Georgia
Flavor: Cola
caffeine-free 5000
diet 5500
regular 7500
Total Cola 18000
Flavor: Lemon
caffeine-free 3000
diet 3500
regular 5500
Total Lemon 12000
Flavor: Orange
caffeine-free 2500
diet 3500
regular 4500
Total Orange 10500
Total Production for Georgia 40500
The input consists of information about drinks: version, flavor, yearly production, and state. You will need a variable for each of these. For each get in your program, you will get all 4 pieces of data. These records are sorted in alphabetical order by version within flavor within state. In the example input and output the versions listed are caffeine-free, diet, and regular. The flavors are cola, lemon, and orange. States are Alabama and Georgia. These are not the only ones that may be in the input file and are used for demonstration purposes only. As you can see in the sample input, for the state Alabama, the flavors are sorted and within each flavor the versions are sorted.
Because this is a control break program, we know there is some special processing to be done for this report. What is that special processing? We must list a total for each flavor and a total for each state. Decide what variables will be used for the control breaks. There will be at least two!
You may want to begin by working on the code to produce totals for each flavor
![]() |
Other Threads in the Computer Science Forum
- Previous Thread: New Parser Generator
- Next Thread: Need help on exiting while loop
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience connect conversion csc dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws linkbait lsmeans mainframes marketing mobileapplication msaccess nano netbeans networking news os p2p piracy piratebay principles programming rasterizer research sam-being-cute sas science security sex simulation software spying stephenfry study supercomputer supercomputing sweden technology textfield turing turingtest two'scompliment uk virus ww2






