WITH Ada.Text_IO; PROCEDURE Three_Days IS --------------------------------------------------------------- - --| Finds yesterday and tomorrow, given today.

Slides:



Advertisements
Similar presentations
Calendar.
Advertisements

Learn all about the year.
Handy Time Vocab 2 - Days of the week With Miss Digitally Angry Clock-Face.
SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY
Grade 2 Created by; Kim Smith
Year 10 ISA Controlled assessment Week starting March 4 th 2013.
Operation Research By Anitha Chandran Chitra.R Radha.R Sudhit Sethi.
Today Is Sunday By Dr Jean.
Problem of the Week! Max was in charge of getting the equipment for the 14 people on his baseball team. He made sure he had 8 bats and 38 baseballs. He.
Days, Times, Dates, Months, and Years By : Novita Riyanti ( )
TEST YOUR READING SKILLS : See a day of the week written in French. Say what you think it is. Click to check your answer.
Ain't It A Shame 1-4 Aint it a shame to work on Sunday, Aint it a shame, (a working shame,) Aint it a shame to work on Sunday, Aint it a shame, (a working.
1 The seven days of the week. 2 Monday is our washing day. Scrub, scrub, scrub.
Center Guide Monday Week 3 Geography Penmanship. Center Guide Tuesday Week 3 Geography Penmanship.
QUESTION 1 What day is it today? A) I’m Tuesday. B) I have Tuesday. C) Tuesday. D) It’s Tuesday.
The Months and The Seasons Prepared by Claudia Doria and Terra Myers.
2012 CALENDAR. JANUARY 2012 Sunday 日 Monday 月 Tuesday 火 Wednesday 水 Thursday 木 Friday 金 Saturday 土
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt CalendarTime.
January 2012 Monday Tuesday Wednesday Thursday Friday Sat/ Sun / /8 14/15 21/22 28/
The days of the week Saturday Sunday Monday Tuesday Wednesday Thursday
Saturday May 02 PST 4 PM. Saturday May 02 PST 10:00 PM.
MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAYSUNDAY WEEK WEEK WEEK WEEK WEEK CALENDAR PROJECT.
ARISE Summer Institute UC Davis June 17-June 22, 2011.
Class Schedule Template SundayMondayTuesdayWednedayThursdayFridaySaturday 6 AM 7 AM 8 AM 9 AM 10 AM 11 AM 12 AM 1 PM 2 PM 3 PM 4 PM 5 PM 6 PM Title Classroom.
What day is today? What`s the date?. Sunday Monday Tuesday Wednesday Thursday Friday Saturday What day is today?
Days of the week instructions. Children can; Order the days of the week. Use sentence strips and activity cards to write sentences about what they do on.
(Tentative) Plan for Last Days of School. Friday 5/8 / Monday 5/11 Work on empathy final project Tuesday 5/12 / Wednesday 5/13 (MIN.) Work on empathy.
 pop-up poetry  Conference reflection:  Writing conference  Hw: paper redos- by Monday 3/8  Monday: pop-up poetry, writing conference  Tuesday: writing.
BR Quiz – Wolverine Wednesday. Transformations, Day 2 10/8/2014.
The Meeting Place Second Grade Saxon Math Lesson 30B.
The Meeting Place Second Grade Saxon Math Lesson 34.
PART OF SPEECH DEFINITION SYNONYM SENTENCE WORD ORIGIN NAME TEACHER AND DATE1 WORDS OF THE WEEK.
小学四年级英语 Unit 2 Did Dad cook lunch? 授课人:刘志文. Yesterday Grandma cooked fish.
10/14/10 BR – What type of Chart is this? Be sure to hand in this week’s bellringers!
ALPHABET АНГЛИЙСКИЙ АЛФАВИТ A a B b C c D d E e.
Click the button to begin. 12:25 What time does this clock show? 5:00 4:00.
A Dog for Each Day Written by: Rosie Portera, M.S., CCC-SLP.
Chapter 6 Counting Loops; Subtypes In preceding chapters, 1.Sequence and 2.Conditional structures In this chapter, 3.Repetition, or iteration.
Radio Alarm Radio Alarm Project. 시나리오 메인화면 Set alarm Play radio Add radio channel.
Habitat for Humanity Winter Break Winter Break Logistics Taking 15 people (includes 1 adviser and site leader) Depart: Sunday, January 9 th, 2011.
7 th Grade Language Arts Monday, October 5, 2015 No DOL this week Harris and Me Begin writing assessment- “Seventh Grade” Must be submitted by Friday at.
Problem of the Week! Winton went shopping for school clothes. He bought 2 pairs of jeans that cost $29 each. He also bought a shirt for $18 and a pair.
ENGLISH CLASS TODAY IS MONDAY APRIL 7TH OF 2014 DAYS OF THE WEEK MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY YESTERDAY WAS.
Got a reason Got a reason for living again, got a reason for laughing again got a reason for loving again, I‘ve got the love of God in my heart. No reason.
DAYS, MONTHS, SEASONS Class 1B time…. DAYS OF THE WEEK ordine 1. Metti in ordine a b c d e f g.
 Teacher’s Presentations Assiut Governorate Aboutig Educational Directorate Bany S.Primary school.
Good morning. Joti Bosu Roy Assistant teacher, Jougaon Government Primary School. Ranisonkail, Thakurgaon. Joti Bosu Roy Assistant teacher, Jougaon Government.
Good morning. Presented by Roksana Khanum Rimu Assistant Teacher Vagobanpur Government Primary School Sadullapur,Gaibandddha.
Class Time Modules for the Semester Calendar Additional Senate Discussion
TODAY IS MONDAY THE 16 th OF NOVEMBER 2015 ON MONDAY WE ARE WORKING WITH THE LAPTOP.
Expense Report Total Miles MONDAY 5 5 TUESDAY WEDNESDAY 6 6 THURSDAY FRIDAY SATURDAY 0 SUNDAY0 TOTAL 23.
Time. Here is a clock. Clocks show us time. This is an hourglass. Hourglasses show us time, too. Click here.
ANNOUNCEMENTS ANNOUNCEMENTS WEDNESDAY, NOVEMBER 4, 2015 TODAY IS A “B” DAY.
Days Of The week © 2015 albert-learning.com DAYS OF THE WEEK There are 7 days in one week.
The birthday calendar 2B : Unit 6 Days of the week Days of the week.
Computer Programming Lab 6. Exercise 1 Sample Runs.
Happy Days by Charles Fox and Norman Gimbel PowerPoint by Camille Page.
The Calendar.
Daily Math Review September 2-6, Monday Solve the following problems with strategies and/or algorithms 5, = 9, = 3, =
Days of the week and my activities. Oscar Sada ESL 1 Mrs. Echeverry
Days of the Week and Months of the Year ESL Vocabulary Mrs. Coverdale.
8 th Grade Language Arts Monday, October 5, 2015 No DOL this week Far North Begin essay assessment- “Charles” Must be submitted by Friday at 9 P.M.
My Plan to Go to Around the world By: Benedict/5C.
EVERY WEEK Every week has seven days, See how many you can say.
PART OF SPEECH DEFINITION SYNONYM SENTENCE NAME TEACHER AND DATE1 WORDS OF THE WEEK.
PART OF SPEECH DEFINITION SYNONYM SENTENCE NAME TEACHER AND DATE1 WORDS OF THE WEEK.
H:\>| WITH Ada.Text_IO; PROCEDURE Hello_Initials IS
C:\> sort_3_numbers.exe |
Presentation transcript:

WITH Ada.Text_IO; PROCEDURE Three_Days IS | Finds yesterday and tomorrow, given today --| Author: Michael Feldman, The George Washington University --| Last Modified: June TYPE Days IS (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday); PACKAGE Day_IO IS NEW Ada.Text_IO.Enumeration_IO (Enum => Days); Yesterday : Days; Today : Days; Tomorrow : Days; BEGIN -- Three_Days -- prompt user to enter a day abbreviation Ada.Text_IO.Put (Item => "Enter the name of a day of the week > "); Day_IO.Get (Item => Today); C:\> three_days.exe |

WITH Ada.Text_IO; PROCEDURE Three_Days IS | Finds yesterday and tomorrow, given today --| Author: Michael Feldman, The George Washington University --| Last Modified: June TYPE Days IS (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday); PACKAGE Day_IO IS NEW Ada.Text_IO.Enumeration_IO (Enum => Days); Yesterday : Days; Today : Days; Tomorrow : Days; BEGIN -- Three_Days -- prompt user to enter a day abbreviation Ada.Text_IO.Put (Item => "Enter the name of a day of the week > "); Day_IO.Get (Item => Today); C:\> three_days.exe | Day_IO :Package...

WITH Ada.Text_IO; PROCEDURE Three_Days IS | Finds yesterday and tomorrow, given today --| Author: Michael Feldman, The George Washington University --| Last Modified: June TYPE Days IS (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday); PACKAGE Day_IO IS NEW Ada.Text_IO.Enumeration_IO (Enum => Days); Yesterday : Days; Today : Days; Tomorrow : Days; BEGIN -- Three_Days -- prompt user to enter a day abbreviation Ada.Text_IO.Put (Item => "Enter the name of a day of the week > "); Day_IO.Get (Item => Today); C:\> three_days.exe | Yesterday :Days Today :Days Tomorrow :Days Day_IO :Package...

BEGIN -- Three_Days -- prompt user to enter a day abbreviation Ada.Text_IO.Put (Item => "Enter the name of a day of the week > "); Day_IO.Get (Item => Today); -- find yesterday IF Today = Days'First THEN Yesterday := Days'Last; ELSE Yesterday := Days'Pred(Today); END IF; Ada.Text_IO.Put (Item => "Yesterday was "); Day_IO.Put (Item => Yesterday); Ada.Text_IO.New_Line; Ada.Text_IO.Put (Item => "Today is "); Day_IO.Put (Item => Today); Ada.Text_IO.New_Line; -- find tomorrow IF Today = Days'Last THEN Tomorrow := Days'First; ELSE Tomorrow := Days'Succ(Today); END IF; C:\> three_days.exe Enter the name of a day of the week > | Yesterday :Days Today :Days Tomorrow :Days Day_IO :Package...

BEGIN -- Three_Days -- prompt user to enter a day abbreviation Ada.Text_IO.Put (Item => "Enter the name of a day of the week > "); Day_IO.Get (Item => Today); -- find yesterday IF Today = Days'First THEN Yesterday := Days'Last; ELSE Yesterday := Days'Pred(Today); END IF; Ada.Text_IO.Put (Item => "Yesterday was "); Day_IO.Put (Item => Yesterday); Ada.Text_IO.New_Line; Ada.Text_IO.Put (Item => "Today is "); Day_IO.Put (Item => Today); Ada.Text_IO.New_Line; -- find tomorrow IF Today = Days'Last THEN Tomorrow := Days'First; ELSE Tomorrow := Days'Succ(Today); END IF; C:\> three_days.exe Enter the name of a day of the week > Monday | Yesterday :Days MONDAY Today :Days Tomorrow :Days Day_IO :Package...

BEGIN -- Three_Days -- prompt user to enter a day abbreviation Ada.Text_IO.Put (Item => "Enter the name of a day of the week > "); Day_IO.Get (Item => Today); -- find yesterday IF Today = Days'First THEN Yesterday := Days'Last; ELSE Yesterday := Days'Pred(Today); END IF; Ada.Text_IO.Put (Item => "Yesterday was "); Day_IO.Put (Item => Yesterday); Ada.Text_IO.New_Line; Ada.Text_IO.Put (Item => "Today is "); Day_IO.Put (Item => Today); Ada.Text_IO.New_Line; -- find tomorrow IF Today = Days'Last THEN Tomorrow := Days'First; ELSE Tomorrow := Days'Succ(Today); END IF; C:\> three_days.exe Enter the name of a day of the week > Monday | Yesterday :Days MONDAY Today :Days Tomorrow :Days Day_IO :Package...

BEGIN -- Three_Days -- prompt user to enter a day abbreviation Ada.Text_IO.Put (Item => "Enter the name of a day of the week > "); Day_IO.Get (Item => Today); -- find yesterday IF Today = Days'First THEN Yesterday := Days'Last; ELSE Yesterday := Days'Pred(Today); END IF; Ada.Text_IO.Put (Item => "Yesterday was "); Day_IO.Put (Item => Yesterday); Ada.Text_IO.New_Line; Ada.Text_IO.Put (Item => "Today is "); Day_IO.Put (Item => Today); Ada.Text_IO.New_Line; -- find tomorrow IF Today = Days'Last THEN Tomorrow := Days'First; ELSE Tomorrow := Days'Succ(Today); END IF; C:\> three_days.exe Enter the name of a day of the week > Monday | Yesterday :Days MONDAY Today :Days Tomorrow :Days Day_IO :Package... SUNDAY

BEGIN -- Three_Days -- prompt user to enter a day abbreviation Ada.Text_IO.Put (Item => "Enter the name of a day of the week > "); Day_IO.Get (Item => Today); -- find yesterday IF Today = Days'First THEN Yesterday := Days'Last; ELSE Yesterday := Days'Pred(Today); END IF; Ada.Text_IO.Put (Item => "Yesterday was "); Day_IO.Put (Item => Yesterday); Ada.Text_IO.New_Line; Ada.Text_IO.Put (Item => "Today is "); Day_IO.Put (Item => Today); Ada.Text_IO.New_Line; -- find tomorrow IF Today = Days'Last THEN Tomorrow := Days'First; ELSE Tomorrow := Days'Succ(Today); END IF; C:\> three_days.exe Enter the name of a day of the week > Monday Yesterday was SUNDAY | Yesterday :Days MONDAY Today :Days Tomorrow :Days Day_IO :Package... SUNDAY

-- find yesterday IF Today = Days'First THEN Yesterday := Days'Last; ELSE Yesterday := Days'Pred(Today); END IF; Ada.Text_IO.Put (Item => "Yesterday was "); Day_IO.Put (Item => Yesterday); Ada.Text_IO.New_Line; Ada.Text_IO.Put (Item => "Today is "); Day_IO.Put (Item => Today); Ada.Text_IO.New_Line; -- find tomorrow IF Today = Days'Last THEN Tomorrow := Days'First; ELSE Tomorrow := Days'Succ(Today); END IF; Ada.Text_IO.Put (Item => "Tomorrow is "); Day_IO.Put (Item => Tomorrow); Ada.Text_IO.New_Line; END Three_Days; C:\> three_days.exe Enter the name of a day of the week > Monday Yesterday was SUNDAY Today is MONDAY | Yesterday :Days MONDAY Today :Days Tomorrow :Days Day_IO :Package... SUNDAY

-- find yesterday IF Today = Days'First THEN Yesterday := Days'Last; ELSE Yesterday := Days'Pred(Today); END IF; Ada.Text_IO.Put (Item => "Yesterday was "); Day_IO.Put (Item => Yesterday); Ada.Text_IO.New_Line; Ada.Text_IO.Put (Item => "Today is "); Day_IO.Put (Item => Today); Ada.Text_IO.New_Line; -- find tomorrow IF Today = Days'Last THEN Tomorrow := Days'First; ELSE Tomorrow := Days'Succ(Today); END IF; Ada.Text_IO.Put (Item => "Tomorrow is "); Day_IO.Put (Item => Tomorrow); Ada.Text_IO.New_Line; END Three_Days; C:\> three_days.exe Enter the name of a day of the week > Monday Yesterday was SUNDAY Today is MONDAY | Yesterday :Days MONDAY Today :Days Tomorrow :Days Day_IO :Package... SUNDAY

-- find yesterday IF Today = Days'First THEN Yesterday := Days'Last; ELSE Yesterday := Days'Pred(Today); END IF; Ada.Text_IO.Put (Item => "Yesterday was "); Day_IO.Put (Item => Yesterday); Ada.Text_IO.New_Line; Ada.Text_IO.Put (Item => "Today is "); Day_IO.Put (Item => Today); Ada.Text_IO.New_Line; -- find tomorrow IF Today = Days'Last THEN Tomorrow := Days'First; ELSE Tomorrow := Days'Succ(Today); END IF; Ada.Text_IO.Put (Item => "Tomorrow is "); Day_IO.Put (Item => Tomorrow); Ada.Text_IO.New_Line; END Three_Days; C:\> three_days.exe Enter the name of a day of the week > Monday Yesterday was SUNDAY Today is MONDAY | TUESDAY Yesterday :Days MONDAY Today :Days Tomorrow :Days Day_IO :Package... SUNDAY

-- find yesterday IF Today = Days'First THEN Yesterday := Days'Last; ELSE Yesterday := Days'Pred(Today); END IF; Ada.Text_IO.Put (Item => "Yesterday was "); Day_IO.Put (Item => Yesterday); Ada.Text_IO.New_Line; Ada.Text_IO.Put (Item => "Today is "); Day_IO.Put (Item => Today); Ada.Text_IO.New_Line; -- find tomorrow IF Today = Days'Last THEN Tomorrow := Days'First; ELSE Tomorrow := Days'Succ(Today); END IF; Ada.Text_IO.Put (Item => "Tomorrow is "); Day_IO.Put (Item => Tomorrow); Ada.Text_IO.New_Line; END Three_Days; C:\> three_days.exe Enter the name of a day of the week > Monday Yesterday was SUNDAY Today is MONDAY Tomorrow is TUESDAY | Yesterday :Days MONDAY Today :Days Tomorrow :Days Day_IO :Package... SUNDAYTUESDAY