Pseudocode: A LATEX Style File for Displaying Algorithms D.L. Kreher Department of Mathematical Sciences Michigan Technological University Houghton‚ MI 49931 kreher@mtu.edu and D.R. Stinson Department of Combinatorics and Optimization University of Waterloo Waterloo ON‚ N2L 3G1 dstinson@uwaterloo.ca 1 Introduction This paper describes a LATEX environment named pseudocode that can be used for describing algorithms in pseudocode form. This is the style used in our textbook Combinatorial Algorithms:
Premium Algorithm Statement Programming language
Assignment: Currency Conversion Test Procedure Purpose of Assignment Students generate a set of test inputs and expected results for the Currency Conversion program. Display Menu Test Cases Test Case 1: Valid Menu Selection = Canadian Dollars Inputs: Menu Selection = 1 Expected Outputs: “Do you want to continue with the conversion‚ Y = Yes‚ N = No” Currency_Type = 1 Test Case 2: Valid Menu Selection = Quit Inputs: Menu Selection =
Premium Currency Output Input
Assignment: Currency Conversion Test Procedure Test Procedure: Begin Test Procedure Menu Error Testing Test Case 1: Inputs: Currency Type = “5” Expected Output: Invalid currency selection. Please try again Test Case 2: Inputs: Currency Type = “9” Expected Output: Invalid currency selection. Please try again Test Case 3: Inputs: Currency Type = “88” Expected Output: Invalid currency selection. Please try again Currency Conversion Testing Test Case 1: Valid International Currency = Canadian
Premium United States dollar Currency
Pseudocode (pronounced SOO-doh-kohd) is a detailed yet readable description of what a computer program or algorithm must do‚ expressed in a formally-styled natural language rather than in a programming language. Pseudocode is sometimes used as a detailed step in the process of developing a program. It allows designers or lead programmers to express the design in great detail and provides programmers a detailed template for the next step of writing code in a specific programming language. Because
Premium Programming language Algorithm Computer programming
Phoenix. All rights reserved. Course Description This course provides students with a basic understanding of programming practices. Concepts covered include flowcharting‚ pseudocode methodologies‚ and an understanding of programming practices. Students will learn how these concepts‚ when properly applied‚ improve program design. Policies Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents: • • University
Premium Object-oriented programming Programming language
~Application-Level Requirements List~ 1. Menu-Driven Program 2. User has option to select 1 of 5 international currency types. (Canadian dollars‚ Mexican pesos‚ English pounds‚ Japanese yen‚ and French francs) 3. Program converts foreign currency to U.S. dollars if values provided are valid. 4. Program displays the equivalent dollar amount. 5. Program returns to main menu‚ user has option to enter another conversion or quit the program. ~Input-Process-Output Chart~ Input Process Output
Premium
Appendix A IT210 Associate Program Material Appendix A Final Project Overview and Timeline Final Project Overview The final project consists of a currency conversion application. This application—similar to simple‚ practical programs on many travel or financial websites—includes the following elements: • Complete requirements analysis • Design • Verification • Validation and test documentation The currency conversion application is a menu-driven program that allows users
Premium United States dollar Currency Pound sterling
Currency Conversion Design Assignment—Hierarchy Chart Complete a hierarchy chart for the application by typing into the textboxes below. Main Module Display_Results Module Get_Int_Value Module Display_MenuModule Convert_Currency Module Currency Conversion Development Assignment—Flowcharts Complete the flowcharts for the assignment by typing into the textboxes below. Control Flow Diagram—Main Control ------------------------------------------------- Begin Do you want to
Premium
Pseudocode building blocks http://youtu.be/Xg6alMKCQXU – part 1 http://youtu.be/NaFrBLgRyWY – part 2 - Reading material pseudocode does not match up with answer key. - Pseudocode can more closely model real world languages as is shown below. Sequential Commands [Module Name] Module - Keyword - Must have an End Tag - Must be one word Example: Main Module … End Main Module Declare [DataVariableName] As [DataType] - DataVariableName can be any name chosen as long as it is one word
Premium Statement Programming language
What is Pseudocode First‚ you need to understand that pseudocode is not a programming language. Pseudocode cannot be compiled nor executed on a computer‚ and there is no real formatting or syntax rules. It is simply one step‚ a very important step‚ in producing the final code. The benefit of pseudocode is that it enables the designer to concentrate on the algorithms without worrying about all the syntactic details of a programming language. In fact‚ you can write pseudocode without even knowing
Premium Programming language