Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

could someone pls help me out with this pratice lab please part 1 to 3 please and thank you. Im really struggling! . . Part

image text in transcribed
image text in transcribed
image text in transcribed could someone pls help me out with this pratice lab please part 1 to 3 please and thank you. Im really struggling!
. . 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 (gets sets). Document your design using a detailed UML 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. Create a second class with an identifier that follows these instructions: . O Part 3 Test the class you created, using a main method in a separate class. o Create a second class with an identifier that follows these instructions: o FullNameLabExamiSection Number 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 AbcXyzLabExam1Section 123.java o Using this class with a method main, write some simple program tests to verify your designed class. Instantiate one object based on your designed class using the default constructor 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. 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 Use the testing values given above as part of the word problem UML Class Diagram for testing class. FullNameLabExam 1 Section Number Replace "FullName" with your full name as seen in ACSIS and renlace Section Number 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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions