H:\>| WITH Ada.Text_IO; PROCEDURE Hello_Initials IS

Slides:



Advertisements
Similar presentations
Web TPAX Request for Advance. Create Request To request an advance, hover over the Create NewAdvance Request Create New tab, then select Advance Request.
Advertisements

Chap-7 Robust_Input. A Package for Robust Input Read input values by calls to procedure Get overloading “Get” procedure for Integer and Float values There.
Do Loops A Do..Loop terminates based on a condition that is specified Execution of a Do..Loop continues while a condition is True or until a condition.
Intro to Programming Part of Chapter 5. Algorithms An algorithm is an ordered set of executable steps that defines a terminating process. An algorithm.
» Your Voice Mail User ID is your 5-digit phone number. » Use the temporary PIN 2010 for this procedure.
CSP Annual Security Training Miranda Gregory, CSP Analyst Carroll County Department of Citizen Services.
1 Tax Anticipation Notes June 27, 2013 Michael E Finn.
THE BIG PICTURE. How does JavaScript interact with the browser?
Title, meta, link, script.  The title looks like:  The tag defines the title of the document in the browser toolbar.  It also: ◦ Provides a title for.
CPSC- 120 Principle of Computer Science I Computer = Hardware + Software.
Chapter 7 Other Loop forms, Procedures; Exception Handling.
Chap 7- Control Structures : The WHILE Statement.
System Structures b Package b Abstract Data Type.
Chapter 6 Counting Loops; Subtypes In preceding chapters, 1.Sequence and 2.Conditional structures In this chapter, 3.Repetition, or iteration.
ITEC 109 Lecture 7 Operations. Review Variables / Methods Functions Assignments –Purpose? –What provides the data? –What stores the data? –What type of.
Slide: 1 Copyright © AdaCore Your First Ada Program Presented by Quentin Ochem University.adacore.com.
TDD Example Test Driven – Koskela Chapter 2. Mail Template Test List 1.Evaluating template “Hello, ${name}” with the value “Reader” for variable “name”
Chapter 3 The General Structure of Ada Programs. General Form of an Ada Program With package1; With package2;... With packagen; Procedure pname IS - -
Writing Prompt: What Do I like about Labor Day? __________________________________________ __________________________________________ __________________________________________.
WITH Ada.Text_IO; PROCEDURE Three_Days IS | Finds yesterday and tomorrow, given today.
 If you want to open an already existing file select file->open on the menu and then choose the program you want to modify. If you want to open a new.
DEVRY CIS 115 Week 7 Lab Fireworks Stand Checkout Check this A+ tutorial guideline at
Hello Educational presentation.
Modify Existing User Accounts
Logging Into Windows XP for first time (labs only!)
The EBSCO eBooks App Authenticating the App
Material Number (DOT#) Search DPI Vehicle Fleet Management IM-5
Subtype Enumeration type
Modify Existing User Accounts
Quiz # 02 Design a data type Date to hold date
Chapter 3: Variables, Functions, Math, and Strings
CDER: An Overview of the System
¡Vamos a crear cómicas!.
Open AvgLoop. It should provide SOME guidance for today’s assignment, but don’t just copy-paste….THINK.
Making the Most of the Ellucian Support Center
The SMS Query Menu System for the iSeries
CDER: An Overview of the System
Routing and Approval University of Washington
Question prompts This is a useful prompt to ensure that Reading is covered and taught effectively towards the month age.
BRIA Android Configuration
Basic Input and Output C++ programs can read and write information using streams A simple input stream accepts typed data from a keyboard A simple output.
Chapter 8 The Loops By: Mr. Baha Hanene.
copyright © Michael B. Feldman, All Rights Reserved
HELLO THERE. THIS IS A TEST SLIDE SLIDE NUMBER 1.
Introduction to C Topics Compilation Using the gcc Compiler
VB.Net Programming Console Application
Class Examples.
Input from the Console This video shows how to do CONSOLE input.
Зан ба насанд хүрэх Character and adult
Algebra Tutor User’s manual.
User Registration.
Jeff West - Quiz Section 4
Modify Existing User Accounts
JavaScript.
Using screens and adding two numbers - addda.cbl
Introduction to C Topics Compilation Using the gcc Compiler
A LESSON IN LOOPING What is a loop?
Initialize Use Case for Encounter
Modify Existing User Accounts
MVC Controllers.
C:\> sort_3_numbers.exe |
SOCIAL INFLUENCE This is the process whereby a person’s attitudes, beliefs or behaviours are modified by the presence or actions of others. In other words,
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Literary Analysis Writing
Modified at -
Analogy Prompt Ask students to create comparisons using information they are studying. (Topic/idea/concept) is like _________ because ____________________.
Array Fundamentals A simple example program will serve to introduce arrays. This program, REPLAY, creates an array of four integers representing the ages.
GCSE Computing.
Module 1.4 Roles and User Management
Module 2.2 Approval Workflows
Presentation transcript:

H:\>| WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; H:\>|

H:\>F:\Examples\hello_initials\hello_initials.exe | WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; H:\>F:\Examples\hello_initials\hello_initials.exe |

H:\>F:\Examples\hello_initials\hello_initials.exe | WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; H:\>F:\Examples\hello_initials\hello_initials.exe |

WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character H:\>F:\Examples\hello_initials\hello_initials.exe |

Initial1 :Character Initial2 :Character WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character Initial2 :Character H:\>F:\Examples\hello_initials\hello_initials.exe |

Enter your two initials> | WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character Initial2 :Character H:\>F:\Examples\hello_initials\hello_initials.exe Enter your two initials> |

C Initial1 :Character Initial2 :Character WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character C Initial2 :Character H:\>F:\Examples\hello_initials\hello_initials.exe Enter your two initials> CR |

C R Initial1 :Character Initial2 :Character WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character C Initial2 :Character R H:\>F:\Examples\hello_initials\hello_initials.exe Enter your two initials> CR |

C R Initial1 :Character Initial2 :Character WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character C Initial2 :Character R H:\>F:\Examples\hello_initials\hello_initials.exe Enter your two initials> CR Hello |

C R Initial1 :Character Initial2 :Character WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character C Initial2 :Character R H:\>F:\Examples\hello_initials\hello_initials.exe Enter your two initials> CR Hello C|

C R Initial1 :Character Initial2 :Character WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character C Initial2 :Character R H:\>F:\Examples\hello_initials\hello_initials.exe Enter your two initials> CR Hello CR|

C R Initial1 :Character Initial2 :Character WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character C Initial2 :Character R H:\>F:\Examples\hello_initials\hello_initials.exe Enter your two initials> CR Hello CR. Enjoy studying Ada!|

C R Initial1 :Character Initial2 :Character WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; Initial1 :Character C Initial2 :Character R H:\>F:\Examples\hello_initials\hello_initials.exe Enter your two initials> CR Hello CR. Enjoy studying Ada! |

Enter your two initials> CR Hello CR. Enjoy studying Ada! H:\>| WITH Ada.Text_IO; PROCEDURE Hello_Initials IS ------------------------------------------------------------ --| Requests, then displays, user's first and last initials. --| Author: Michael Feldman, The George Washington University --| Last Modified: June 1998 Initial1 : Character; -- objects that hold initials Initial2 : Character; BEGIN -- Hello_Initials -- Prompt for (request user to enter) user's initials Ada.Text_IO.Put(Item => "Enter your two initials> "); Ada.Text_IO.Get(Item => Initial1); Ada.Text_IO.Get(Item => Initial2); -- Display user's initials, with a greeting Ada.Text_IO.Put(Item => "Hello "); Ada.Text_IO.Put(Item => Initial1); Ada.Text_IO.Put(Item => Initial2); Ada.Text_IO.Put(Item => ". Enjoy studying Ada!"); Ada.Text_IO.New_Line; END Hello_Initials; H:\>F:\Examples\hello_initials\hello_initials.exe Enter your two initials> CR Hello CR. Enjoy studying Ada! H:\>|