Course roster management in scheme Data to be managed – A class roster is list of student entries of the form (ID, name, grade) – Example (“001”, “John.

Slides:



Advertisements
Similar presentations
Welcome to WebCRD.
Advertisements

Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Click on the Tools and Help button to bring up Tools and Help.
Parts of a Computer.
In Campus Pipeline use the My Class Rosters link appropriate for your computer and follow the directions to browse to your roster files. Copy and paste.
Shell Script Assignment 1.
P3- Represent how data flows around a computer system
CPU GROUP Chapter 7. Manage ment Management Report Inquiry Responses Management Inquiries.
Module R2 Overview. Process queues As processes enter the system and transition from state to state, they are stored queues. There may be many different.
Haiku Gradebook Tutorial
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 17: Linked Lists.
Algorithms. Software Development Method 1.Specify the problem requirements 2.Analyze the problem 3.Design the algorithm to solve the problem 4.Implement.
Algorithms. Software Development Method 1.Specify the problem requirements 2.Analyze the problem 3.Design the algorithm to solve the problem 4.Implement.
1 Data Structures Data Structures Topic #2. 2 Today’s Agenda Data Abstraction –Given what we talked about last time, we need to step through an example.
Adding a Syllabus Link. Let’s add the syllabus to the homepage. Return to the homepage Click “Add File” To get to the homepage, click the Course Content.
Chapter 12 Information Systems. 2 Chapter Goals Define the role of general information systems Explain how spreadsheets are organized Create spreadsheets.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech June 2011.
Capture-Replay and Test Automation Models and Analysis of Software Lecture 9 Copyright,
Please use the up & down keys to navigate through his presentation.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Spreadsheet Operations These increase the efficiency of data entry, the performing of calculations, and the presentation of information.
CS 326 Programming Languages, Concepts and Implementation Instructor: Mircea Nicolescu Lecture 7.
Scheme & Functional Programming. ( ) >> 64 ( ) >> 666 (* ) >> 1200 (+ (* 3 5) (- 10 6)) >> 19.
Week 7. Lecture 2 Functions, Arrays, PHP&MySQL. Function with More than one argument and a return statement For a function to return a value, the return.
Introduction to Computers Lesson 10B. home Database A collection of related data or facts.
EduBrite Training for Group Admins. Dashboard Reports Groups Enrolled courses More items under this menu.
Teach Yourself Windows 95 Module 4: Using Microsoft Exchange for Faxes and .
All Unit Charter Renewals are due at the respective District’s Roundtable Meeting in November Last Updated 9/29/15.
Processing Lab 1 – Loading the data into Vista Bryce Hutchinson Objectives: 1.to make sure everyone has an valid user ID in the CIF lab 2.To make sure.
To access our web services, go to……. Click on Customer Login.
DATABASE SYSTEMS. DATABASE u A filing system for holding data u Contains a set of similar files –Each file contains similar records Each record contains.
David Evans CS200: Computer Science University of Virginia Computer Science Class 17: Mutation M. C. Escher, Day and Night.
Instructor User Student User Course Registration Form (#8) Grade report (#14)Class list (#13) Grade Entry Form (#10)
Silent Dismissal Classroom Quick Start Guide. Sign In Enter your site address in the browser, e.g., yourschool.sdcs99.com Enter your User ID, Password.
C++ Programming: From Problem Analysis to Program Design, Second Edition Chapter 17: Linked Lists.
Getting Started with GradeQuick. Logging In to GradeQuick Shortcut on the Start Menu First time users enter first initial last name like this (ccornwell)
Using Text Files in Excel File I/O Methods. Working With Text Files A file can be accessed in any of three ways: –Sequential access: By far the most common.
Pascal Programming Today Chapter 11 1 Chapter 11.
Exercise 2 Introduction to C# CIS Create a class called Employee that contains the following private instance variables: Social Securitystring.
SUCCESSFULLY PREPARING ALL STUDENTS FOR THEIR FUTURES SE 256 TH STREET, KENT, WA | SKYWARD BASICS FOR SECONDARY TEACHERS.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Milestone #2 e-Class Roster System University of Macau Faculty of Science and Technology Department.
Python Let’s get started!.
Migrant Student Information Exchange (MSIX) MSIX Reports March 3, 2011 Sponsored by: U.S. Department of Education Deloitte Consulting LLP.
Chapter 5 Linked List by Before you learn Linked List 3 rd level of Data Structures Intermediate Level of Understanding for C++ Please.
More Sequences. Review: String Sequences  Strings are sequences of characters so we can: Use an index to refer to an individual character: Use slices.
C++ Programming: Program Design Including Data Structures, Fourth Edition Chapter 17: Linked Lists (part 3)
Creating a mystic meg program A simple program asking the user questions and using their answers to build up a fortune telling in a list.
1 The Transaction Filter function provides payee information and the ability to view and filter on specific transaction types and claimants associated.
Functional Programming. Some Functional Languages Lisp Scheme - a dialect of Lisp Haskell Miranda.
Logic Programming (Control and Backtracking). Contents Logic Programming –sans Control –with Backtracking Streams.
Computer Eng. Software Lab II , Semester 2, Who I am: Andrew Davison CoE, WiG Lab Office Functional Programming.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
EduBrite Training for Group Admins. Dashboard Reports Groups Enrolled courses More items under this menu.
Looking at WEPS – a Moodle based course management system.
Data Types and Structures
Getting Started with Lisp
Lab Week 3 HW 1 Collect body height and weight from 5 of your friends
LINEAR NOISE ATTENUATION
Data Structures – 1D Lists
Files [Computing] Computing.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Remembering lists of values lists
Linked List and Selection Sort
Directions slide: 1. Complete the title slide.
Introduction to Programming with Python
Directions slide: 1. Complete the title slide.
Hint idea 2 Split into shorter tasks like this.
Directions slide: 1. Complete the title slide.
Presentation transcript:

Course roster management in scheme Data to be managed – A class roster is list of student entries of the form (ID, name, grade) – Example (“001”, “John Smith”, 59) (“010”, “Amy M. Sosa”, 100) (“500”, “Mike Harris”, 80) In scheme, this data structure will be represented as a list: ((“001” “John Smith” 59) (“010” “Amy M. Sosa” 100) (“500” “Mike Harris” 80))

Course roster management in scheme The roster management system supports the following functions (in the menu): 0. Reset roster 1. Load roster from file 2. Store roster to file 3. Display roster sorted by ID 4. Display roster sorted by name 5. Display roster sorted by grade 6. Display student info 7. Add a student to roster 8. Remove a student from roster 9. Exit

How to maintain the roster? There is no storage (variables) in scheme – The roster has either to be an argument to a function or a return value. – The function to print a menu needs to have an argument for the roster. Menu (roster)

Menu system Display the menu Read input from user Perform some operation on the roster and continue. How to do this in scheme? See t1.scm.

Dealing with input Read 2 items (id and grade) and return the list of just two items just read? (define read-2-items (lambda () (begin (display “input id and grade: “) (list (read) (read)) ) Let us say if we want to append this item into the roster list, what to do? See t2.scm

Load from file and store to file Straight-forward – (write object file) to write the whole roster to a file. – (read file) to read the whole roster from a file.

Sorting A function (insert item sorted_list) – How? (Insertionsort l) – (insert (car l) (insertionsort (cdr l))

Order of software development Do NOT write the whole program in one shot!!!! – One function at a time. Test before considering the next function.