RSS Forums RSS
Please support our C advertiser: Programming Forums
Views: 1043 | Replies: 7
Reply
Join Date: May 2008
Posts: 34
Reputation: twgood is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
twgood twgood is offline Offline
Light Poster

Flowchart help Please!

  #1  
May 3rd, 2008
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.
Attached Files
File Type: doc Control Flow Diagram.doc (38.5 KB, 43 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2005
Posts: 3,890
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 23
Solved Threads: 441
Colleague
Salem's Avatar
Salem Salem is offline Offline
Senior Poster

Re: Flowchart help Please!

  #2  
May 3rd, 2008
http://en.wikipedia.org/wiki/Flowchart
Draw some actions
Draw some decisions
Draw some arrows between them
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Reply With Quote  
Join Date: May 2008
Posts: 34
Reputation: twgood is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
twgood twgood is offline Offline
Light Poster

Re: Flowchart help Please!

  #3  
May 4th, 2008
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.
Reply With Quote  
Join Date: Dec 2005
Posts: 3,890
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 23
Solved Threads: 441
Colleague
Salem's Avatar
Salem Salem is offline Offline
Senior Poster

Re: Flowchart help Please!

  #4  
May 4th, 2008
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.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Reply With Quote  
Join Date: May 2008
Posts: 34
Reputation: twgood is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
twgood twgood is offline Offline
Light Poster

Re: Flowchart help Please!

  #5  
May 4th, 2008
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
Reply With Quote  
Join Date: Dec 2005
Posts: 3,890
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 23
Solved Threads: 441
Colleague
Salem's Avatar
Salem Salem is offline Offline
Senior Poster

Re: Flowchart help Please!

  #6  
May 5th, 2008
That doesn't seem too unreasonable, though I haven't seen the flowcharts.

Is the code the next step?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Reply With Quote  
Join Date: May 2008
Posts: 34
Reputation: twgood is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
twgood twgood is offline Offline
Light Poster

Re: Flowchart help Please!

  #7  
May 5th, 2008
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.
Reply With Quote  
Join Date: May 2008
Posts: 34
Reputation: twgood is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
twgood twgood is offline Offline
Light Poster

Re: Flowchart help Please!

  #8  
May 9th, 2008
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
Last edited by twgood : May 9th, 2008 at 1:33 pm. Reason: Wrong Attachment
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:32 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC