Ranjit S. Mann Exam 1 CSE-670 Day OF Week. Day OF Week int dayofweek (int year, int month, int day) { int a = (14 - month)/12; int y = year - a; int m.

Slides:



Advertisements
Similar presentations
Learn all about the year.
Advertisements

Grade 2 Created by; Kim Smith
FINAL EXAMINATION SCHEDULE SPRING 2009 MAY 15 – MAY 22 NOTE: A class that meets at more than one of the times on this final examination schedule will take.
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.
TEST YOUR READING SKILLS : See a day of the week written in French. Say what you think it is. Click to check your answer.
DAYS OF THE WEEK YENNY ROCIO GONZALES COLEGIO VIDA NUEVA.
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.
Ministery for Education, Ireland Department for Learning
 Monday – lunes  Tuesday – martes  Wednesday – miercoles  Thursday – jueves  Friday – vienrenes  Saturday – sabado  Sunday – domingo.
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.
Multiplication Discussion Multiplier Binary Multiplication 4 x 4 Multiplier.
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/
Multiplication Discussion Multiplier Binary Multiplication 4 x 4 Multiplier.
Lecture L6.2 VHDL Multiply Operator (*)
The days of the week Saturday Sunday Monday Tuesday Wednesday Thursday
Saturday May 02 PST 4 PM. Saturday May 02 PST 10:00 PM.
Sequential Multiplication Lecture L6.4. Multiplication 13 x = 8Fh 1101 x
Time Zones The World is divided up into 24 time zones. Each time zone is approximately 15 degrees of longitude wide. The time within each time zone has.
MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAYSUNDAY WEEK WEEK WEEK WEEK WEEK CALENDAR PROJECT.
On Sunday, it was 59° at 10:00. From 8:00 until 10:00 it had cooled off by 4 degrees. What was the temperature at 8:00?
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.
CPCCPC tv. MONDAY SUNDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY CPC tv What’s “Going On” this week? Welcome to your Weekly Guide. Read about what’s.
PART OF SPEECH DEFINITION SYNONYM SENTENCE WORD ORIGIN NAME TEACHER AND DATE1 WORDS OF THE WEEK.
 Smart Skills Week 11 Map 3. Monday What do the different colors represent on this map? World Population Distribution People Per Sq. Mile Per Nation.
Morning Work Week 3. Monday Multiplication Rule: REVIEW 10x6=2x9=5x7=11x3=0x4=1x5=10x3= 2x7=5x8=11x9=0x10=1x7=5x5=2x5=
小学四年级英语 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!
Garside: SNC2D. The following schedule is for Period 2 Class:
Click the button to begin. 12:25 What time does this clock show? 5:00 4:00.
Calendar Review Math Review Lesson By: Mrs. Moody, FLE.
Part B Read and write. Monday, Tuesday, Wednesday, Thursday, Friday. Days for school. Saturday and Sunday, Days for fun. Happy time, fun time, for everyone.
Question of the Day! Week 18 5/22 – 5/26. Question of the Day! Monday, May 22nd Which type of cloud is easiest to spot and why?
A Dog for Each Day Written by: Rosie Portera, M.S., CCC-SLP.
Radio Alarm Radio Alarm Project. 시나리오 메인화면 Set alarm Play radio Add radio channel.
Non Leap YearLeap Year DateDay NumberMod 7Day NumberMod 7 13-Jan Feb Mar Apr May Jun Jul
By Monica Hilgemann Second Grade Teacher
Mean, Median, and Mode An Introduction to Data Management: Measures of Central Tendencies.
Habitat for Humanity Winter Break Winter Break Logistics Taking 15 people (includes 1 adviser and site leader) Depart: Sunday, January 9 th, 2011.
Weather Forecasts Prepared by Claudia Doria and Terra Myers.
This week’s lessons are designed to reinforce the content standards of: Click the mouse for the next screen.
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. 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.
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.
January 18 – 22, 2016 Week Home of the Mighty Eagles! Mission High School.
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
My Plan to Go to Around the world By: Benedict/5C.
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.
Multiplication Discussion 11.1.
Presentation transcript:

Ranjit S. Mann Exam 1 CSE-670 Day OF Week

Day OF Week int dayofweek (int year, int month, int day) { int a = (14 - month)/12; int y = year - a; int m = month + 12*a -2; return (day + y + y/4 - y/100 + y/400 + (31*m)/12) % 7; } /* 0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday */ Ranjit S. Mann

DATA PATH SW(1 to 8) 8 demux4g regb dayrega monthregc year aloadbloadcload yearin monthin dayin rege yregf dayfloadeloadregg moutgloadregh monthhload a = (14 - month)/12 m= month+12*a-2 (31*m)/12 mout (day + y/4 - y/100 + y/400 + m) % 7 mux4g m1sel d1msel binbcd x7seg a monthcalc m mout month day year dayOFweek r d y Note: century value is fixed at 2000 m

Controller controller datapath Sw1… Sw8 aload bload cload eload fload gload hload d1msel month day year dayOFweek mux4g binbcd x7seg

State Machine sA sB sC sD sE sF sG s0 s1 s2 s3 1 Wait for BTN4 down month <= SW display month 0 Wait for BTN4 up Wait for BTN4 down day <= SW display day Wait for BTN4 up 1 Wait for BTN4 down year<= SW display year Wait for BTN4 up a = (14 - month)/12 m= month+12*a-2 mout =(31*m)/12 (day + y/4 - y/100 + y/400 + mout) % 7 0/1 display dayOFweek