Site icon Doc Sity

UNCG Java Programming Worksheet

UNCG Java Programming Worksheet

Description

Unformatted Attachment Preview

CSC 230: Elementary Data Structures and Algorithms
Test #1
General Notes
Use only the material covered in CSC 230. You may use your notes from class, your textbook, Java’s
documentation, and any material from the Modules in Canvas. If you go above the objectives, it will cause
suspicion that you plagiarized. You should be able to clearly explain every line of your code if your instructor
requests you to do so.
Creating correct NetBeans projects, zipping your project folder, and testing it before uploading are your
responsibilities. If any of these steps fails, you will receive a grade of zero.
Assignment:
(14 points) Create a NetBeans project with the name TestSpring2023. Inside the TestSpring2023
package, create an inner package called testPackage. Inside of this testPackage, you will create the
following classes and interfaces based on the UML diagram shown on page 3 of these instructions. The
abstract methods are shown in bold italics. The method bodies that you will use are also explained.
You will add a main method class to your inner package that you will call Main. This main method will
use the methods from the appropriate classes to give the following expected output of program:
Run
This is Test #1.
The program uses abstract classes, regular classes, and interfaces.
It demonstrates inheritance
Christine Kikuchi
Test #1
CSC 230, Sec #
Cats eat cat food & birds
Cats have soft & silky hair
That birds have backbones is true
That birds are warm blooded is true
Birds eat birdseed & worms
Bluebirds have blue feathers
CSC 230
Test #1 Hands-on
Page 1 of 3
In the main class (Main):
1. Above the class header, write a javadoc comment containing the integrity policy statement. Under the
statement, but still in the block, type your first and last name for the signature, press Tab and type the
date. You will not need to use underlining. You can see the integrity policy statement by going to
Canvas: Modules: Help Files> Integrity Policy Statement.
2. Under the integrity statement, add comments on your program that show the title of the program (Test
#1), your first and last name, and the course name (CSC 230, Sec #). You may choose to use single line
comments or a multiline docstring. Sec # will be your section #.
3. As the first print lines for your program under the main method, make sure that the run screen also prints
the title of the program (Test #1), your first and last name, and the course name (CSC 230, Sec #), and
the program information as shown in the sample run screen.
CSC 230
Test #1 Hands-on
Page 2 of 3
Test #1 UML
•
ƒats inherits from Mammal and also implements Vertebrates
Birds inherits from Mammal and also implements Vertebrates
BlueBird inherits from Birds.
Methods: implementation
eats()
System.out.println(name + “appropriate messageJhasHair()
System.out.println(name + “appropriate messageJhasFeathers()
System.out.println(name + “appropriate messageJhaveBackbones()
Set a Boolean variable to true & return the variable
warmBlooded()
Set a Boolean variable to true & return the variable
CSC 230
Test #1 Hands-on
Page 3 of 3

Purchase answer to see full
attachment
Explanation & Answer:
1 Script
User generated content is uploaded by users for the purposes of learning and should be used following our honor code & terms of service.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version