0% found this document useful (0 votes)
26 views2 pages

OOP - Assignment 1: Submission Requirements

The document provides the requirements for Assignment 1 in OOP class. Students must submit a compressed file with source code comments including their details by the due date of September 12, 2009. The assignment will not be graded if submitted late, copied from others, or files cannot be opened. The tasks involve designing a Book class to hold code, name, price, and quantity, and a program to create sample books, add new books, search by name, list all books, and list books sorted by price.

Uploaded by

dhuynh08T4
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

OOP - Assignment 1: Submission Requirements

The document provides the requirements for Assignment 1 in OOP class. Students must submit a compressed file with source code comments including their details by the due date of September 12, 2009. The assignment will not be graded if submitted late, copied from others, or files cannot be opened. The tasks involve designing a Book class to hold code, name, price, and quantity, and a program to create sample books, add new books, search by name, list all books, and list books sorted by price.

Uploaded by

dhuynh08T4
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

OOP - Assignment 1

Submission Requirements: Compress the all related files to a (.zip) or (.rar) file and submit to the address http://10.11.1.13/fpt At the beginning of all your source file, include comments reflecting accurate information for you in the format as below: /* Assignment 1 Class ID : SE0412 Student ID : 00400 Student Name : Nguyen Minh Duc Due Date : 12 September 2009 I declare that this assignment is my own work in accordance with FPT Policy. */ It should be clear that the assignment will not get any mark if : o o o The assignment is submitted after due date. The assignment is copied from/to other students or the Internet. The assignment files cannot open or execute.

Task 1:
Design a C++ class to hold information of a Book. The information includes Book Code, Book Name, Unit Price, and Quantity. Book Code contains exactly 6 characters, which the 2 first characters are the upper-case letter (A-Z) and the 4 next characters are digits (0-9). Book Name contains no more than 30 characters and there is no special characters (@#$%^&*) in the book name. Unit Price is double type, and the price must be positive and less than or equal $100000 (<=100000). And Quantity is a positive integer number.

Tasks 2:
Write a C++ program to do the below tasks: 1. 2. 3. 4. 5. Create default 4 books with their information Add new books Search book by name List all books List all books after sorting by book price

Tasks 2.1:
When user choose this task, the program create 4 books by default. Then the list of books currently have 4 books.

Task 2.2:
Allow users to add new information of as many books as they want. After check validation of all data (including that the code could not be duplicated), save those information into the program.

Task 2.3:
Search book by name from all books that was created in task 2.1 and books which are added in task 2.2. Then display the result.

Task 2.4:
Display all information of books that was created in task 2.1 and books which are added in task 2.2.

Task 2.5:
Sort by book price and display all information of books that was created in task 2.1 and books which are added in task 2.2.

You might also like