| | |
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
![]() |
•
•
Join Date: Dec 2008
Posts: 6
Reputation:
Solved Threads: 0
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.
C++ Syntax (Toggle Plain Text)
Currency Conversion Design Main module Declare ItemName As String Declare Currency type As Real Call Welcome message module Call Input Data module Call Perform Calculations module Call Output Results module Write “Welcome to the currency convertor database,” End Program Input Data module Write “Enter the item’s name?” Input ItemName Write “What is the currency type?” Input currency dollar amount End Input Data module Perform Calculations module If sourceCurrency is Dollar Then Assign sourceRate to 1.4680 dollars ElseIf sourceCurrency is Pound Then Assign sourceRate to 1.6433 Pounds ElseIf sourceCurrency is Yen Then Assign sourceRate to 104.9200 yen ElseIf sourceCurrency is Francs Then Assign sourceRate to 6.2561 francs End If Output Results module Write “The currency is”: ItemName
•
•
Join Date: Dec 2008
Posts: 6
Reputation:
Solved Threads: 0
Re: I need feed back on how to correct my pseudo code....Can someone help me please?
0
#2 Dec 16th, 2008
C++ Syntax (Toggle Plain Text)
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> </ul><ul><li>Mexican pesos (rate: 1 U.S. dollar = 9.5085 pesos)</li> </ul><ul><li>English pounds (rate: 1.6433 U.S. dollars = 1 pound)</li> </ul><ul><li>Japanese yen (rate: 1 U.S. dollar = 104.9200 yen)</li> </ul><ul><li>French francs (rate: 1 U.S. dollar = 6.2561 francs)</li> </ul>
•
•
Join Date: Aug 2008
Posts: 77
Reputation:
Solved Threads: 16
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
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
•
•
Join Date: Dec 2008
Posts: 6
Reputation:
Solved Threads: 0
Re: I need feed back on how to correct my pseudo code....Can someone help me please?
0
#4 Dec 16th, 2008
C++ Syntax (Toggle Plain Text)
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 of what they are being used for" What does he mean by this statement?
•
•
Join Date: Jan 2008
Posts: 3,813
Reputation:
Solved Threads: 501
Re: I need feed back on how to correct my pseudo code....Can someone help me please?
0
#5 Dec 16th, 2008
•
•
•
•
C++ Syntax (Toggle Plain Text)
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 of what they are being used for" What does he mean by this statement?
carName better or something. ![]() |
Other Threads in the C++ Forum
- Previous Thread: Help asap
- Next Thread: Binary tree coding
| Thread Tools | Search this Thread |
api array based binary c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






