Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
Lab guide - chapter 4 Lab guide for chapter 4 Instructions Read and work through the whole of chapter 4. (If using the 5th edition skip section 4.16 Fixed-size Collections - we'll come back to this topic later.) Attempt all exercises on a computer. Skip the challenge exercises until after you have finished the chapter. and only attempt them if you're ahead of schedule (e.g. you completed chapter 4 midway through week 4). Aim to finish the chapter before the end of week 4. If you finish early, make a start on chapter 6 (chapter 5 if using the 5th edition). Assessment The assessment for chapter 4 involves the products project exercises 4.56-4.58 on pages 146-147. (If using the 5th edition see exercises 4.56-4.58 on pages 137-138.) Demonstrate your solution to a lecturer or lab assistant by performing the steps below. It will save time if steps (1-6) are performed before asking the lecturer/assistant to check your work:   Clear the BlueJ terminal window. Create a StockManager object. Create three Product objects. Choose any names you like but use the id numbers 10, 20 and 30. Increase the quantities to 100, 200 and 300 respectively by invoking method increaseQuantity for each product in turn. Add each of your products to the StockManager by invoking method addProduct. Invoke method printProductDetails. Invoke method numberInStock with the product id 20 (should be 200 if working correctly). Save a copy of your final version of the above project in folder:     \\raptor\exports\proj\comp8810\files\login\4-products See Submitting code for assessed exercises for further info. < back to chapter 3 | forward to chapter 6 >