![]() |
|
#1
|
|||
|
|||
C++ object oriented programming & file processingcan anybody out there help me to do this program??
your kindly heart is appreciated...!!!! thanks a lot... WXES1111: PRINCIPLES OF OBJECT-ORIENTED PROGRAMMING SEM 1, 2006/2007 GROUP PROJECT 2 This problem is intended to be solved in a closed-lab session with your selected group member (2 persons). The problem is divided into FOUR parts: - 1. Lab Objectives 2. Description of the problem 3. Some examples of the menus 4. Problem-Solving Tips Lab Objectives This lab was designed to test your problem-solving skills and to reinforce your programming concepts from WXES1108 till WXES1111. In this lab, you will practice how to build real-life applications using the concepts learnt in object-oriented programming and in C++ file processing. It is crucial that you go through the software process life cycle, which is: - • understanding the problem given • analyzing and defining the requirements • defining your analysis model, e.g. What are the text files that your require? What are the classes that you require to solve this problem? etc • designing your solution, using either pseudo-code or flow chart • coding your solution • testing your solution Description of the Problem DVD Rental Shop System You are a programmer working for XYZ Computing Network. You were assigned by your boss to build a simple C++ system for a client’s DVD Rental Shop. The DVD Rental Shop is owned by Encik Zuhaizy. In order to obtain the requirements of the system that needs to be built, you interviewed Encik Zuhaizy in order to gather the functions that he wants the system to have. After the interview session, you made a list of the system requirements, as shown below: - • Encik Zuhaizy would like to be able to enter information on new DVD titles that his shop has purchased, along with the number of copies for each DVD. An example of this information is given below: - DVD Title : SHREK 2 Genre : Comedy No. of copies : 5 • Encik Zuhaizy would like to display the list of DVD titles that is currently in his stock. He wants this information in a table format, as shown below: - DVD Title No. of Copies 1. SHREK 2 5 2. THE INCREDIBLES 4 etc.. • Encik Zuhaizy would also like to be able to display the DVD titles under the same genre. For example: - Genre: Comedy DVD Titles: SHREK 2 THE INCREDIBLES SHREK 1 • Encik Zuhaizy would also like to be able to display the current number of DVD copies in stock. For example: - DVD Title: SHREK 2 No of copies (total): 5 No of copies (in stock): 3 • Encik Zuhaizy would like to use the system to record a customer’s loan of a DVD. Before a customer can loan a DVD, Encik Zuhaizy needs to first register the customer into the system. The information that is required for each customer is given below: - Name: Abu Bakar bin Kasim Selamat IC No: 679987-08-6632 Address: NO 16, Jalan Seta Kasih 3, Taman Seri Setia, 50603, Kuala Lumpur Tel. no: 012-111222 • Once a customer has been registered, Encik Zuhaizy can now enter the DVD rental that the customer has requested. This process involves checking whether the DVD title is currently in stock. If there is a copy, then the customer may rent the DVD at RM3 per copy. If there are no copies left, an error message will be displayed showing that the shop currently has no copies of the DVD. The information needed for this transaction are: - DVD Title : SHREK 2 IC No. : 679987-08-6632 Rental Date : 22 November 2004 Due Date : 27 November 2004 The list that you have made above is the requirements that you need to have in your system. But you may add other additional features into your system, as needed, such as displaying the list of registered customer, displaying the DVD titles that a customer has rented etc. Some examples of the menu: - ZUHAIZY DVD RENTAL SHOP ====== Main Menu ========= 1. CUSTOMER 2. DVD 3. RENTAL 4. EXIT Enter your choice (1-4): 1 ZUHAIZY DVD RENTAL SHOP ===== Customer Menu ====== 1. ADD NEW CUSTOMER 2. DELETE CUSTOMER 3. DISPLAY CUSTOMER INFORMATION 4. DISPLAY ALL CUSTOMER 5. EXIT Enter your choice (1-4): Problem-Solving Tips 1. In order to ensure that your system is able to perform the necessary functions, you need to use C++ file processing. You need 3 test files: - o A file to store customer’s information o A file to store the DVD information o A file to store the customer’s rental information 2. Use the example given below, to aid to in implementing file processing. CPP / C++ / C Code:
The text file: name.txt Timmy Rush Venesa Paradise Britney Spears Ronald McDonald Last edited by LuciWiz : 26-Sep-2006 at 05:56.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
||||
|
||||
Re: C++ object oriented programming & file processingSenior members might not reply to this thread if you:
We encourage you to post again once you've done that. __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#3
|
|||
|
|||
Re: C++ object oriented programming & file processingOr at least offer some money to do the homework, come on!
lol, jk. Seriously, do your own homework, otherwise you'll bomb on the tests and if you do manage to struggle through your degree, it wont be worth much. |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| Object Oriented Programming? | jake_jeckel | C++ Forum | 8 | 30-Oct-2005 13:25 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 11:53 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 16:13 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 12:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The