I need feed back on how to correct my pseudo code....Can someone help me please?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 6
Reputation: clb8372 is an unknown quantity at this point 
Solved Threads: 0
clb8372 clb8372 is offline Offline
Newbie Poster

I need feed back on how to correct my pseudo code....Can someone help me please?

 
0
  #1
Dec 16th, 2008
I was given feed back from my instructor and I am not sure how to implement these changes. Here is the feedback:
  • In you MAIN module you call a WELCOME MESSAGE module but you don't have one defined in the code.
  • Why do you have a variable named ItemName? Variable names should be descriptive
    of what the are being used for.
  • In your INPUT module you first ask for the items name but not for the name of
    the currency you want to convert. You then ask for the currency type but input the currency amount.
  • Your PERFORM CALCULATIONS module does not perform any calculations. You do set the sourcerate variable to different rates (but only for 4 of the specified currencies) You never perform the currency conversion.
  1. Currency Conversion Design
  2.  
  3.  
  4. Main module
  5.  
  6. Declare ItemName As String
  7. Declare Currency type As Real
  8.  
  9. Call Welcome message module
  10. Call Input Data module
  11. Call Perform Calculations module
  12. Call Output Results module
  13.  
  14. Write “Welcome to the currency convertor database,”
  15.  
  16. End Program
  17.  
  18. Input Data module
  19.  
  20. Write “Enter the item’s name?”
  21.  
  22. Input ItemName
  23.  
  24. Write “What is the currency type?”
  25.  
  26. Input currency dollar amount
  27.  
  28. End Input Data module
  29.  
  30. Perform Calculations module
  31.  
  32. If sourceCurrency is Dollar Then
  33. Assign sourceRate to 1.4680 dollars
  34.  
  35. ElseIf sourceCurrency is Pound Then
  36. Assign sourceRate to 1.6433 Pounds
  37.  
  38. ElseIf sourceCurrency is Yen Then
  39. Assign sourceRate to 104.9200 yen
  40.  
  41. ElseIf sourceCurrency is Francs Then
  42. Assign sourceRate to 6.2561 francs
  43.  
  44. End If
  45.  
  46. Output Results module
  47. Write “The currency is”: ItemName
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 6
Reputation: clb8372 is an unknown quantity at this point 
Solved Threads: 0
clb8372 clb8372 is offline Offline
Newbie Poster

Re: I need feed back on how to correct my pseudo code....Can someone help me please?

 
0
  #2
Dec 16th, 2008
  1. I had forgot to show the currency conversion I am using:[LIST]<ul><li>Canadian dollars (rate: 1 U.S. dollar = 1.4680 Canadian dollars)</li>
  2. </ul><ul><li>Mexican pesos (rate: 1 U.S. dollar = 9.5085 pesos)</li>
  3. </ul><ul><li>English pounds (rate: 1.6433 U.S. dollars = 1 pound)</li>
  4. </ul><ul><li>Japanese yen (rate: 1 U.S. dollar = 104.9200 yen)</li>
  5. </ul><ul><li>French francs (rate: 1 U.S. dollar = 6.2561 francs)</li>
  6. </ul>
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 77
Reputation: mahlerfive is an unknown quantity at this point 
Solved Threads: 16
mahlerfive mahlerfive is offline Offline
Junior Poster in Training

Re: I need feed back on how to correct my pseudo code....Can someone help me please?

 
0
  #3
Dec 16th, 2008
Your instructor's feedback is extremely straight forward...
Also he did miss some things:
- The US dollar to English pound conversion in your code is incorrect, take a closer look at the conversion list to see why..
- Your output module only outputs the currency type... are you sure that's all you're supposed to output?
- You do not end the output module in pseudocode
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 6
Reputation: clb8372 is an unknown quantity at this point 
Solved Threads: 0
clb8372 clb8372 is offline Offline
Newbie Poster

Re: I need feed back on how to correct my pseudo code....Can someone help me please?

 
0
  #4
Dec 16th, 2008
  1. I understand that my instructors feed back is straight forward, but I am new to creating pseudo codes and I am just not sure how the corrections are suppose to look, for example "Why do you have a variable named ItemName? Variable names should be descriptive
  2. of what they are being used for" What does he mean by this statement?
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,813
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: I need feed back on how to correct my pseudo code....Can someone help me please?

 
0
  #5
Dec 16th, 2008
Originally Posted by clb8372 View Post
  1. I understand that my instructors feed back is straight forward, but I am new to creating pseudo codes and I am just not sure how the corrections are suppose to look, for example "Why do you have a variable named ItemName? Variable names should be descriptive
  2. of what they are being used for" What does he mean by this statement?
Maybe he doesn't like the word "item". What types of items are there? If they're all cars, maybe he'd like carName better or something.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC