合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

        代寫(xiě)CMPSC 221 UML and Class Creation

        時(shí)間:2024-03-05  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)


        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.
        請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

        掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
      1. 上一篇:代寫(xiě)DTS203TC、C++,Java程序語(yǔ)言代做
      2. 下一篇:CS 435代做、代寫(xiě)Matlab編程設(shè)計(jì)
      3. 無(wú)相關(guān)信息
        合肥生活資訊

        合肥圖文信息
        出評(píng) 開(kāi)團(tuán)工具
        出評(píng) 開(kāi)團(tuán)工具
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話24小時(shí)官網(wǎng)400(全國(guó)服務(wù)熱線)
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話24小時(shí)官網(wǎng)
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話24小時(shí)服務(wù)熱線
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話2
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國(guó)24小時(shí)客服熱線
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國(guó)24小時(shí)
        海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
        合肥機(jī)場(chǎng)巴士4號(hào)線
        合肥機(jī)場(chǎng)巴士4號(hào)線
        合肥機(jī)場(chǎng)巴士3號(hào)線
        合肥機(jī)場(chǎng)巴士3號(hào)線
      4. 短信驗(yàn)證碼 酒店vi設(shè)計(jì)

        99在线热播精品免费99热| 亚洲日韩图片专区第1页| 久久精品99久久香蕉国产色戒 | 无码国产69精品久久久久网站 | 国产精品成熟老妇女| 国产精品激情综合久久| 精品动漫一区二区无遮挡| 成人精品视频一区二区三区不卡 | 日韩制服国产精品一区| 99re这里有免费视频精品| 亚洲欧美日韩国产精品一区| 久草视频这里只有精品| 青青青在线观看国产精品| 国产精品自产拍在线观看| 亚洲国产精品久久66| 国99精品无码一区二区三区| 国产成人精品三上悠亚久久| 久久亚洲精品无码播放| 国产精品igao视频| 亚洲精品无码成人片在线观看 | 无码精品A∨在线观看十八禁 | 日韩电影中文字幕在线观看| 人妻在线日韩免费视频| 午夜精品久久久久久久99热| 国产精品先锋资源站先锋影院 | 久久精品无码一区二区app| heyzo高无码国产精品| 国产精品高清在线观看| 国产成人1024精品免费| 丁香六月婷婷精品免费观看| 无码人妻精品一区二| 无码人妻精品一区二| 国产成人精品一区二区三区| 亚洲综合国产精品第一页 | 综合国产精品第一页| 国产精品一区二区av| 久久精品男人影院| 久久精品一品道久久精品9| 亚洲精品综合一二三区在线| 99无码精品二区在线视频| 亚洲午夜精品国产电影在线观看|