Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

could someone pls help me out with dis problem by using a UML class diagram also by helping me out from part 1 to 3

image text in transcribed
image text in transcribed
image text in transcribed could someone pls help me out with dis problem by using a UML class diagram also by helping me out from part 1 to 3 using informatiom from the problem. Im really strugglin, as soon as possible would be good. Thank you!
Part 1 Understand the Problem and Class Design with UML The client needs a program to store data on Paper Shredders, including brand name, type, max sheet capacity Testing values for get and set methods are brand name: "Stumples, type: "straight cut", max sheet capacity 5 Testing values for overloaded constructor are brand name: "Office Co", type: "cross cut", max sheet capacity 10 . Using the word problem above, design a class with the needed fields, a no parameter constructor, an overloaded constructor with three parameters, and needed methods (sets sets). Document your design using a detailed UMI. Class diagram. . . . Part 2 Write the Java code for the class Follow your UML class diagram and code the class you designed. Use Java coding conventions for identifiers: class, constructor, field, variable, and method names Mark fields private, constructor and methods public. Select and use appropriate data types for the fields as well as method parameters as needed. Comment your code as requested and demonstrated in the course. Part 3 Test the class you created, using a main method in a separate class. Creatorernnd clase with an identifier that follows these instructions: . O Part 3 Test the class you created, using a main method in a separate class. Create a second class with an identifier that follows these instructions: o FullNameLabExamiSection Number o For example, a student with first name "Abc" and last name "Xyz" in section 123 would name the class as: AbcXyzLabExam1Section123, with resulting file name AbcXyzLabExam1Section123.java o Using this class with a method main, write some simple program tests to verify your designed class. o instantiate one object based on your designed class using the default constructty and output the field values using the get methods. Set a value into each field of the object, get a value from each field printing the field value(s) on screen o instantiate a new object based on your designed class using the overloaded constructor and output the field values using the get methods. O There is no need for user input to the program, use literal values in the source code of your test program (within method main). Ensure that your full name is written out on screen after the tests above are run O Use the testing values given above as part of the word problem, UML Class Diagram for testing class UML Class Diagram for testing class FullNameLabExam 1 Section Number Replace "FullName" with your full name as seen in ACSIS and replace "SectionNumber" with the section number for your lab period +main(args String(void when you create this class with method main. For example a student named "Abc Xyz" in lab section 123 would name this class: AbcxyzLabExam 1Section123

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

u = 5 j , v = 6 i Find the angle between the vectors.

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago