亚洲天堂免费在线,丰满人妻在公车被猛烈进入电影,国产又黄又潮娇喘视频在线观看 ,久久黄色大片,国产女人伦码一区二区三区不卡,校花娇荡吟喘上课,亚洲区中文字幕在线不卡电影,亚洲黄色网页

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫CMPSC 221 UML and Class Creation

時間:2024-03-05  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


CMPSC 221

Assignment 1

Individual Assignment (100 points)

Assignment Title: Library Management System with OOP in JAVA.

Instructions: In this assignment, you will demonstrate your understanding of core Object-Oriented   Programming (OOP) concepts, including objects, classes, methods, loops, and various data types, as well as more advanced concepts such as inheritance and polymorphism. Additionally, you will practice creating classes based on UML diagrams and declaring functions.

Part 1: UML and Class Creation (30 points)

Assume that you have to develop a class diagram that represents a library system with books, members, and librarians. The UML diagram will include:

1.    A Book class with attributes such as title, author, ISBN, number of available copies, and other attributes.

2.    Create subclasses of the Book class, such as Fiction, Nonfiction, and magazines with additional attributes and methods relevant to their type

3.    A Library Member class with attributes such as name, library card number, a list of borrowed books, and other attributes.

4.    A librarian class with name, position, email, password, and other attributes

5.    Appropriate method names for classes to perform actions. For Example, the book class must check out and return book methods with parameters. Eg: public void checkOut(Member member){}

Other attributes that you think need to be added. Pleaseadd at least 1/2 attribute of your own.

Develop a UML diagram based on the above requirements.

Part 2: Declaration of Classes, Attributes & Methods (30 points)

Create all the classes mentioned in the UML diagram you answered in Part 1 to simulate a library system. Your program should:

•    Write all classes, attributes, and methods definitions.

•    Write a few methods declaration.

o Allow a user to add books to the library system using Constructor.

o Allow a user to add members to the library system using Constructor.

o Allow a user to checkout books using a method under Book class.

o Allow a user to return books using a method under Book class.

Ensure each function has a printout as the following code. You do not need to have full functionality.


//Constructor

Book(parameter){

System.out.println(“Add book method created and ready for call”);

// code goes here

}


Part 3: Inheritance and Polymorphism (20 points)

Extend the classes from Part 2 to demonstrate inheritance and polymorphism. Create subclasses of the Book class, such as  Fiction,  Nonfiction  Books,  and  magazines  with  additional attributes  and  methods relevant to their type. Implement at least 2 polymorphic behaviors to handle different book types in your library system.

Example of Polymorphic behaviors: Think of your superclass that has a method called checkoutBook() is applicable for 7 days for return for all books. However, Subclasses have their own implementation of the checkoutBook() method with variable length days for return. For Example, magazines can be returned within 14 days.

Part 4: Report (20 points)

The report Should have the following sections:

•    UML Class Design (Part 1): Provide the UML diagram you created.

•    Declaration of Classes, Attributes & Methods (Part 2): Explain different classes and their methods task in your design. Include code snippets to highlight the key parts of your program.

•    Inheritance and Polymorphism (Part 3): Describe how you extended the classes to demonstrate inheritance. Explain how you implemented polymorphism to handle different book types. Include code examples that showcase the inheritance and polymorphism in your program.

Submission Guidelines:

•    Submit your Java code files.

•    Submit a report as a PDF file.

Total Points: 100 points

Note: Make sure to follow the best practices for OOP. Feel free to seek assistance from Dr. Sayed Reza during office hours if needed. Office hours are available in Syllabus.
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

掃一掃在手機打開當前頁
  • 上一篇:代寫DTS203TC、C++,Java程序語言代做
  • 下一篇:CS 435代做、代寫Matlab編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    仿真分析咨詢外包服務-結構 / 熱 / CFD流體 / 電磁 / 光學CAE代做
    仿真分析咨詢外包服務-結構 / 熱 / CFD流體
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
  • 豆包網頁版入口 Trae 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045