Preview

It210 Week 4 Psuedocode

Good Essays
Open Document
Open Document
584 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
It210 Week 4 Psuedocode
Program Pseudocode
Currency_Convertor Main Module
Delcare USDollars As Float

Declare Rate1 As Float
Declare Rate2 As Float
Declare Rate3 As Float
Declare Rate4 As Float
Declare Rate5 As Float

Declare Candian_Dollars As Float
Declare Mexican_Pesos As Float
Declare English_Pounds As Float
Declare Japanese_Yen As Float
Declare French_Francs As Float

Declare Display_Selection As Int
Declare Currency_Type As String
Declare Display_Selection As Int
Declare GIV as Float
Declare DRInput As String
Declare aa As String

Set Rate1 = 1.4680
Set Rate2 = 9.5085
Set Rate3 = 1.6433
Set Rate4 = 104.9200
Set Rate5 = 6.2561

Call Display_Menu Module
Call Get_Int_Value Module
Call Convert_Currency Module
Call Display_Results Module
End Currency_Convertor Main Module

Quit_Program Module Set QuitNow As String Write: “Are you sure you would like to exit this program?” Write: “Enter Yes or No.” Input QuitNow While QuitNow != Yes || yes|| No || no Write: “That is not a correct entry!” Write: “Please enter Yes or No.” Input QuitNow End While If
QuitNow = Yes || yes Then End Display_Menu Module End Get_Int_Value Module End Convert_Currency Module End Display_Results Module End Currency_Convertor Module Else QuitNow = No || no Then Write: “Let’s start then.” Call Display_Menu End If
End Quit_Program Display_Menu Module
Write: “*Welcome to the Currency Convertor*”
Write: “Please select the currency you would like to convert to U.S. Dollars.”
Write: “Enter 1 to convert Canadian dollars to U.S. Dollars.”
Write: “Enter 2 to convert Mexican Pesos to U.S. Dollars.”
Write: “Enter 3 to convert English Pounds to U.S. Dollars.”
Write: “Enter 4 to convert Japanese Yen to U.S. Dollars.”
Write: “Enter 5 to convert French Francs to U.S. Dollars.”
Write: “Enter 6 if you would like to Quit now.”
Input Display_Selection
While Display_Selection != 1 || 2|| 3 || 4 || 5 || 6 Write: “That is an invalid

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Netw310 Week #4

    • 313 Words
    • 2 Pages

    Yes we can, we must follow all the rules prior to being allowed to make the trench, which is getting all the required permits.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    If Currency Type >= 1 AND currency Type <= 5 then Set continue = false Else if currency Type = 6 Display “Quitting Currency Conversion” Continue = false Else Display “Error 1: Invalid menu selection.” Continue = true End If End While End Display Menu Get International Value Declare value as integer Declare continue as…

    • 1386 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    You are entering the currency converter Quit ? You are exiting the currency converter Get user input Yes No Calculate Foreign currency to dollars Display equal value U.S dollar amount End -------------------------------------------------…

    • 585 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    TCO #1– Given a simple business problem, design and desk-check a solution algorithm that is expressed in terms of pseudocode or program notes and input-process-output (IPO) analysis leading to a flow chart.…

    • 393 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PT1420week5exdkinney

    • 404 Words
    • 2 Pages

    If you want to display your currency values to two decimal places with a dollar sign and commas when applicable you would use the Format() function. This returns a Variant (convertible to a String) data type formatted to look the way you need. Programmers would also use the strFormat function to format values. For example:…

    • 404 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    It 210 Final Project

    • 733 Words
    • 3 Pages

    3. User data should be requested in clear and concise means. “Please Enter Amount of Foreign Currency (Whole amounts only please”…

    • 733 Words
    • 3 Pages
    Good Essays
  • Better Essays

    endfor = np; } } else { if(stbck == NULL) stbck = endbck = np; else { endbck->nxt =…

    • 401 Words
    • 2 Pages
    Better Essays
  • Satisfactory Essays

    Pt1420 week 2

    • 320 Words
    • 3 Pages

    1. Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.…

    • 320 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    As the user is deciding which they would like to select an international currency type. When the user enters a number between 5 and 26 corresponding with a currency type, then the program is set to false. If 26 is selected the program displays “Quitting Currency Conversion.” But if the user does not enter a number between 5 and 26 the program displays “Error 4: Invalid Menu Selection” and the set it true.…

    • 1052 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Control Flow Diagram—Main Control [pic] Control Flow Diagram—Display Menu | | |[pic] | Control Flow Diagram—Get_Int_Value | | |[pic] | Control Flow Diagram—Convert Currency | | |[pic] | Control Flow Diagram—Display_Results |[pic] | Pseudocode Example Main Module Declare currencyType as Integer Declare internationalValue as real Declare USValue as real currencyType = 1 \ Comment: set currencyType to some number less than 6 \ to drop into the Do While loop below Do While currencyType < 6 Call Display Menu \Comment: if the user selects 6 in the Display Menu \ module then the user wants to Quit. If currencyType >= 1 and currencyType 6 \ to drop into the Do While loop) Do While (currencyType < 1 OR currencyType > 6) Display "Currency conversion program" Display "Please make a selection" Display "1: Canadian Dollars" Display "2: Mexican Pesos" Display "3: English Pounds" Display "4: Japanese Yen"…

    • 389 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Psy 315 Week 4 Test Paper

    • 2152 Words
    • 9 Pages

    Consider the following research title: “cooperation among nursery school children: the role of teachers age”. In this study the IV is…

    • 2152 Words
    • 9 Pages
    Good Essays
  • Satisfactory Essays

    PSY 202 Week 2 Assignment

    • 787 Words
    • 2 Pages

    The one situation where that as a college student, I am facing I would have to say would be getting to a place there is a computer to use for school assignments. There are some days that I don’t feel like leaving my house, I use my willpower however to tell myself if I want to get a good job and do work I love then I have to go to school and work for it. There are days it’s too cold or snowy…

    • 787 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Psy 230 Week 4 Quiz

    • 370 Words
    • 2 Pages

    Please label the following adjectives with the appropriate match according to the NEO-PI-R (2 matches per trait). Feel free to simply use O, C, E, A, N.…

    • 370 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Psy/201 Week 1 Assignment

    • 337 Words
    • 2 Pages

    Working for a big company, there is always something new to learn and new work that comes our way. There are many different personalities. We were always training and learning new material and tools to use to make our work more effective and productive. We would have meetings that were hours long so everyone can train on the new work and tools we had coming our way. Most of the people were struggling to learn the new tools. I was taking a class in which we were learning about peoples’ different learning styles. I thought all the training we were doing would be a great project for the class I was taking. I brought it to my bosses’ attention that I think that people are not learning because everyone has a different learning style. She was convinced that people were just tired and busy that’s why they could not understand the material. I wanted to test this theory. I suggested if we can give the employees on our team a learning test to see which way they better leaned. The results were exactly what I thought they were. Everyone had different learning styles. It turns out that most of the people on our team learned best Hands-On. Others were visual and the rest learned best by reading the material. This type of research method is best described as Correlation Research (positive correlation) because I was determining if two sets of variables are associated and if the variables increase or decrease. In this case when people used a learning method that fit best for them, they had better results for learning. When they were using a learning method that was not best for them, they were not learning the material. If I could have done anything different it would have been to test peoples’ personalities to determine if certain personalities learned a certain way. This would have gone more in depth as to why people learn the way they…

    • 337 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Psy 220 Week1 Checkpoint

    • 389 Words
    • 2 Pages

    When researchers refer to Subjective well-being or SWB it is life satisfaction, the presence of positive affect, and a relative absence of negative affect. SWB is one’s view of his own personal idea of happiness. This defines how one experiences the quality of life through emotional reactions feelings and moods and cognitive judgments about what an individual thinks of his life satisfaction in global terms as a whole or specifics such as career or relationships.…

    • 389 Words
    • 2 Pages
    Good Essays