Lecture Five The Project 1. Wen Yu BNUZ LIMS Description Design a simple Library Information Management System (LIMS) for an university The system includes.

Slides:



Advertisements
Similar presentations
CSCC69: Operating Systems
Advertisements

Composition CMSC 202. Code Reuse Effective software development relies on reusing existing code. Code reuse must be more than just copying code and changing.
Mississippi Department of Education Textbook Inventory Management System.
CS320n –Visual Programming LabVIEW Foundations. Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Hand back and review the midterm Look at.
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 3: Primitive Data Types.
VBA Modules, Functions, Variables, and Constants
Understanding Arrays and Pointers Object-Oriented Programming Using C++ Second Edition 3.
Program design example Task: Develop an algorithm expressed in pseudocode for a specified problem specified problem.
1 CSE1301 Computer Programming: Lecture 25 Software Engineering 2.
1 Lab Session-III CSIT-120 Spring 2001 Revising Previous session Data input and output While loop Exercise Limits and Bounds GOTO SLIDE 13 Lab session.
Creating FrontPage Tasks The task view allows you to add information about what you want to accomplish when creating your Web site.
Programming with Microsoft Visual Basic th Edition
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Chapter 5: Control Structures II (Repetition)
CHAPTER 5: CONTROL STRUCTURES II INSTRUCTOR: MOHAMMAD MOJADDAM.
ECE 264 Object-Oriented Software Development Instructor: Dr. Honggang Wang Fall 2012 Lecture 3: Requirements Specification, C++ Basics.
/* Documentations */ Pre process / Linking statements Global declarations; main( ) { Local Declarations; Program statements / Executable statements; }
Chapter 5: Control Structures II (Repetition). Objectives In this chapter, you will: – Learn about repetition (looping) control structures – Learn how.
Lecture 161 Lets examine a SPIM program in detail. io.asm This program is a simple routine which demonstrates input/output using assembly code. SPIM.
Hannah Hawlk MEDT 7478 Fall 2012 From the opening menu, click on the “catalog” tab to open the catalog module.
Purchasing Office POISE Distributed Purchasing System (DPS)
1 Becoming More Effective with C++ … Day Two Stanley B. Lippman
Week 12 - Monday.  What did we talk about last time?  Defining classes  Class practice  Lab 11.
Special Methods in Java. Mathematical methods The Math library is extensive, has many methods that you can call to aid you in your programming. Math.pow(double.
OPERATORS IN C CHAPTER 3. Expressions can be built up from literals, variables and operators. The operators define how the variables and literals in the.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
SCP1103 Basic C Programming SEM1 2010/2011 Arithmetic Expressions Week 5.
Crawling When the Google visit your website for the purpose of tracking, Google does this with help of machine, known as web crawler, spider, Google bot,
Journal of Mountain Science (JMS)
Arithmetic Expressions
Chapter 4: Looping Structures LECTURER : MRS ROHANI HASSAN
Project Management: Messages
Winter 2009 Tutorial #6 Arrays Part 2, Structures, Debugger
User-Written Functions
REPETITION CONTROL STRUCTURE
What Actions Do We Have Part 1
ANNOUNCEMENT The missed lecture will be made up this Monday evening in the Tech PC classroom (MG51). A tentative time interval is 6:30-8:00. The exact.
Creating LOVs and Editors
Introduction To Repetition The for loop
C++ Standard Library.
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
Objectives Identify the built-in data types in C++
WEB TUTORIALS.
Introduction to C Topics Compilation Using the gcc Compiler
Keyboard Input and Screen Display ––––––––––– Interactive Programming
Chapter 4: Making Decisions.
User-Defined Functions
Visit for more Learning Resources
Recommended Budget Reductions
The SMS Query Menu System for the iSeries
NextGen Purchasing Calendar Year End 1099 Process
Creating and Modifying Queries
Software John Sum Institute of Technology Management
Microsoft Office Access 2003
Introduction To Programming Information Technology , 1’st Semester
Lesson Three: Charting in Task Lists
Introduction to C++ Programming
Single Sign On Brown Bag Session 2
Overlays.
Looping III (do … while statement)
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
Advanced Database Concepts: Reports & Views
Functions continued.
Fundamental Programming
Data Structures & Algorithms
Course Outcomes of Programming In C (PIC) (17212, C203):
Python Creating a calculator.
Presentation transcript:

Lecture Five The Project 1

Wen Yu BNUZ LIMS Description Design a simple Library Information Management System (LIMS) for an university The system includes information of books and readers 2

Wen Yu BNUZ LIMS Description The fundamental functions for this system include adding, updating, deleting and querying a book, borrowing and returning a book for a user, querying a reader, and any other optional functions 3

Wen Yu BNUZ LIMS Description The information for a book includes isbn, which is unique for a book bName (book name) author price status 4

Wen Yu BNUZ LIMS Description Assume that all readers are students and their information includes sNumber (student number), which is unique for a reader sName (student name) borrowed (books borrowed) 5

Wen Yu BNUZ LIMS Description The details for each function are add : adding a book to the system update : updating a book info according to the isbn of the book delete : deleting a book from the system according to the isbn of the book queryBook : displaying the info of a book and the info of the reader who borrowed the book (if the book is borrowed by someone), according to the isbn of the book 6

Wen Yu BNUZ LIMS Description borrow : borrowing a book (isbn) for a reader (sNumber) return : returning a book (isbn) for a reader (sNumber) queryReader : display a reader’s info according to the sNumber, including the books borrowed 7

Wen Yu BNUZ LIMS Description When the system executes, a menu including main functions should be displayed, letting users to choose The menu should including the function that let users exit the system When a user selects a function to perform, the system should prompt the user enters necessary data to accomplish the task 8

Wen Yu BNUZ LIMS Description The system should display the operation the system is performing and let the user confirm the operation (such as deleting and updating) When an operation is finished, the result of the operation should displayed and the user should have options of continuing the current operation or returning back to the main menu 9

Wen Yu BNUZ Assumptions Assumptions can be made to reduce the complexity of the system The maximal number of books the system can have is 20 The maximal number of readers the system can have is 20 The maximal number of books a reader can borrow is 5 There is only one copy for each book in the system 10

Wen Yu BNUZ Implementation The system can have following data Five arrays to represent books A number indicating the current number of books the system contains Three arrays to represent readers A number indicating the current number of readers the system contains The maximal number of books, the maximal number of readers and the maximal number of books a reader can borrow can be global constants 11

Wen Yu BNUZ Implementation The detailed data structure for a book The isbn can be an int The book name and author can be strings The price can be a float or a double The status of a book refers to the info of the borrower, which can be set to be an integer value. If the book is borrowed by a reader, the student number can be assigned to the status; otherwise a special value (such as -1) is assigned 12

Wen Yu BNUZ Implementation The detailed data structure for a reader The student number can be an int or a long The reader’s name can be a string The books borrowed by the student can be an array of integers, representing the ISBNs of books borrowed A special value (such as -1) can be assigned to some elements of the array to indicate that the reader borrowed less than the maximal number of books he can borrowed 13

Wen Yu BNUZ Suggestions It is suggested that you develop the system incrementally Step 1 Write a control function (main function) To simplify the system, you can assign some initial values to the books and readers in the system in your control function Let the system contain book info Add an operation for book one by one Once you finish one function, test its correctness by invoking it in your main function 14

Wen Yu BNUZ Suggestions Step 3 Add user info to your system Add operations related to users incrementally Once you finish one function, test its correctness by invoking it in your main function Step 3 Use files to store book info and reader info instead of initializing them in the main function, so the change you made remains 15