I posted this in the computer and science forum, and i believe it should be here, and with no one saying anything I am afraid I posted in the wrong place so here goes again.
I am having issues with an assignment, I am lost as how to do a flow chart. I really have no clue what I am supposed to do, I have the IPO done thogh I am not real sure it is all correct and since I had issues with the Inputs and Outputs not being correct in my last assignment. I also have the Hierarchy chart complete, which I know is ok.
I am wondering how I get my information in my Flowchart, what I mean is where does the information come from for the chart?
This is my Inputs:
1. Menu of Currency
2. Select Currency
3. Foreign Currency amount to convert

Outputs:
1. Menu
2.Foreign Currency Selected
3. Amount in Us Dollars
4.Amount in foreign currency and in US dollars

Process:
Display Menu
Get Foreign Value
Convert Currency
Display Results
Please someone help me, I want to understand this, but sadly I am lost. I am attaching what I have so far.

Dani AI

Generated

A clear flowchart should show where each piece of data originates (the IPO and the user at run time) and how control moves between actions. The inputs in the IPO (menu choice, amount) are the parallelogram I/O boxes on the chart; the outputs are the result-display boxes. Mark external data (exchange-rate table or constants) as a separate data store or a clearly named constant so the chart makes it obvious where rates come from.

Make the top-level control obvious: a single Start, a main loop that returns to the menu until the sentinel option (Done) is chosen, and explicit decision diamonds for validation. Put a validation loop around the menu-selection step (invalid choice → show error → back to menu) and a separate validation loop around the amount input (out-of-range → show error → re-prompt). Keep conversion as one process box that reads the selected currency and the amount, looks up the rate (from the rate store), computes the result, then hands control to the display-results box.

Map the chart to pseudocode exactly as suggested: every process box becomes a named procedure or a block, diamonds become if/else or while constructs, and arrows become the sequence of statements. Use the hierarchy chart to choose module names and keep them consistent across flowchart and pseudocode. Declare variables and constants once (top of the main or in a constants section) and note expected ranges and types in comments so graders can see validation intent.

Quick troubleshooting checklist (trace the chart with sample runs): 1) follow an invalid menu selection and confirm it returns to the menu; 2) follow an out-of-range amount and confirm re-prompting; 3) ensure every decision has two labeled outgoing arrows and there’s a clear exit path. Missing those loops or unlabelled arrows is a common reason for mark deductions (as discovered).

Recommended Answers

All 8 Replies

I have my flowchart done, but now I am confused on how to begin my pseudocode. I get the main module, but I am unsure if I am supplsed to continue with the input data module or use the modules off my flowchart instead.

Your pseudo-code should follow your flow chart, and add some more detail.

Flow chart = chapter headings
Pseudo-code = paragraph headings
Code = the text

You should be able to make a clear progression from one step to the next. If you can't, then something has gone wrong earlier in the process.

Here is what I think It should look like:
Main Module
Declare Currency Type as Interger
Delcare Foreign Currency as Real
Declare US Dollar as real
Call Display Menu Module
Call Get Foregin Currency Value Module
Call Convert Currency Module
Call Display Results Module
End Main Module
Display Menu Module
Display "Currency Converter"
Display "Select a Currency"
Display"1 Canadian Dollars"
Dispaly "2 Mexican Pesos"
Display "3 English Pounds"
Display "4 Japanese Yen"
Display "5 French Francs"
Display "6 Done"
Input Foreign Currency Type
if Foreign currency type <= 5 continue to Calculate Rate
Else
display "invalid Data Type Please Select again"
End if
End Display Menu Module
Get Foreign Currency Value Module
Display " Enter a Currency value (0-100,000)"
Input Foreign Currency value
if Foreign Currency Value <0 or Foreign Currency Value >100,000
Else Display "Invalid Entery, Please try again"
End Get Foregin Currency Value Module
Convert Currency Module
Select Foreign Currency Type
Canadian
Set Rate=1.14680
Mexican
Set Rate=9.5085
English
Set Rate=.8085
Japanese
Set Rate= 104.9
French
Set Rate=6.2561
US Dollar Value=Foreign Currency Value*Rate
End Convert Currency
Display Results
Declare Currency as String
Canadian
Currency="Dollars"
Mexican
Currency="Pesos"
English
"Pounds"
Japanese
"Yen"
French
"Francs"
Display" The Value of Foreign Currency Value" is "US Dollar Value" "Dollars"
End Display Results

That doesn't seem too unreasonable, though I haven't seen the flowcharts.

Is the code the next step?

Yes, I turned it in last night. I hope I did not mess it up to much or I will drop below a B. Thanks for the help.

Well I bomded, I made a 63. Man I did not do any loops, and my flow chart was messed up. Here is my stuff, if anyone can look at it and offer some advise I would appricate it.

Fonda Goodman it210_appendix_i[1].doc

Well I bomded, I made a 63. Man I did not do any loops, and my flow chart was messed up. Here is my stuff, if anyone can look at it and offer some advise I would appricate it.
[ATTACH]6006[/ATTACH]

I have a final on this exact thing in the am! Oh well, google on...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.