Intro Programming with Java - Information Systems
In this course, you will learn and practice the fundamentals of the Java programming language. You will learn and apply variables, operators, literals, and how to combine them to create expressions. You will study and develop the different types of Java statements like the assignment, selection, and looping statements. You will also apply the Java build-in array data structures in your applications. And you will practice some of Java object-oriented features like defining classes and instantiating them into objects.
10 Assessment needs to be done by 10/17
Budget $250
™
INTRODUCTION TO
JAVA
PROGRAMMING AND
DATA STRUCTURES
COMPREHENSIVE VERSION
Twelfth Edition
Y. Daniel Liang
Georgia Southern University
A01_LIAN9966_12_SE_FM.indd 1 28/09/19 3:26 PM
To Samantha, Michael, and Michelle
LLE ISBN
ISBN-10: 0-13-651996-2
ISBN-13: 978-0-13-651996-6
SE
ISBN-10: 0-13-652023-5
ISBN-13: 978-0-13-652023-8
Microsoft and/or its respective suppliers make no representations about the suitability of the information contained
in the documents and related graphics published as part of the services for any purpose. All such documents and
related graphics are provided “as is” without warranty of any kind. Microsoft and/or its respective suppliers hereby
disclaim all warranties and conditions with regard to this information, including all warranties and conditions of
merchantability, whether express, implied or statutory, fitness for a particular purpose, title and non-infringement.
In no event shall Microsoft and/or its respective suppliers be liable for any special, indirect or consequential
damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract,
negligence or other tortious action, arising out of or in connection with the use or performance of information
available from the services.
The documents and related graphics contained herein could include technical inaccuracies or typographical errors.
Changes are periodically added to the information herein. Microsoft and/or its respective suppliers may make
improvements and/or changes in the product(s) and/or the program(s) described herein at any time. Partial screen
shots may be viewed in full within the software version specified.
Microsoft® and Windows® are registered trademarks of the Microsoft Corporation in the U.S.A. and other
countries. This book is not sponsored or endorsed by or affiliated with the Microsoft Corporation.
Copyright © 2020, 2018, 2015 by Pearson Education, Inc. or its affiliates, 221 River Street, Hoboken, NJ 07030.
All Rights Reserved. Manufactured in the United States of America. This publication is protected by copyright, and
permission should be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system,
or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise. For
information regarding permissions, request forms, and the appropriate contacts within the Pearson Education Global
Rights and Permissions department, please visit www.pearsoned.com/permissions/.
Acknowledgments of third-party content appear on the appropriate page within the text
PEARSON, ALWAYS LEARNING, and MYLAB are exclusive trademarks owned by Pearson Education, Inc. or
its affiliates in the U.S. and/or other countries.
Unless otherwise indicated herein, any third-party trademarks, logos, or icons that may appear in this work are the
property of their respective owners, and any references to third-party trademarks, logos, icons, or other trade dress
are for demonstrative or descriptive purposes only. Such references are not intended to imply any sponsorship,
endorsement, authorization, or promotion of Pearson’s products by the owners of such marks, or any relationship
between the owner and Pearson Education, Inc., or its affiliates, authors, licensees, or distributors.
Library of Congress Cataloging-in-Publication Data
Names: Liang, Y. Daniel, author.
Title: Java programming and data structures / Y. Daniel Liang, Georgia
Southern University.
Other titles: Introduction to Java programming and data structures
Description: Twelfth edition. Comprehensive version | Hoboken, NJ :
Pearson, 2019. | Revised edition of: Introduction to Java programming
and data structures / Y. Daniel Liang, Georgia Southern
University. Eleventh edition. Comprehensive version. 2018. | Includes
bibliographical references and index.
Identifiers: LCCN 2019038073 | ISBN 9780136520238 (paperback)
Subjects: LCSH: Java (Computer program language)
Classification: LCC QA76.73.J38 L52 2019 | DDC 005.13/3–dc23
LC record available at https://lccn.loc.gov/2019038073
ScoutAutomatedPrintCode
A01_LIAN9966_12_SE_FM.indd 2 28/09/19 3:26 PM
iii
Dear Reader,
Many of you have provided feedback on earlier editions of this book, and your comments and
suggestions have greatly improved the book. This edition has been substantially enhanced in
presentation, organization, examples, exercises, and supplements.
The book is fundamentals first by introducing basic programming concepts and techniques
before designing custom classes. The fundamental concepts and techniques of selection
statements, loops, methods, and arrays are the foundation for programming. Building this
strong foundation prepares students to learn object-oriented programming and advanced Java
programming.
This book teaches programming in a problem-driven way that focuses on problem solv-
ing rather than syntax. We make introductory programming interesting by using thought-
provoking problems in a broad context. The central thread of early chapters is on problem
solving. Appropriate syntax and library are introduced to enable readers to write programs for
solving the problems. To support the teaching of programming in a problem-driven way, the
book provides a wide variety of problems at various levels of difficulty to motivate students.
To appeal to students in all majors, the problems cover many application areas, including
math, science, business, financial, gaming, animation, and multimedia.
The book seamlessly integrates programming, data structures, and algorithms into one text.
It employs a practical approach to teach data structures. We first introduce how to use various
data structures to develop efficient algorithms, and then show how to implement these data
structures. Through implementation, students gain a deep understanding on the efficiency of
data structures and on how and when to use certain data structures. Finally, we design and
implement custom data structures for trees and graphs.
The book is widely used in the introductory programming, data structures, and algorithms
courses in the universities around the world. This comprehensive version covers fundamen-
tals of programming, object-oriented programming, GUI programming, data structures, algo-
rithms, concurrency, networking, database, and Web programming. It is designed to prepare
students to become proficient Java programmers. A brief version (Introduction to Java Pro-
gramming, Brief Version, Twelfth Edition) is available for a first course on programming,
commonly known as CS1. The brief version contains the first 18 chapters of the comprehen-
sive version. An AP version of the book is also available for high school students taking an
AP Computer Science course.
The best way to teach programming is by example, and the only way to learn programming
is by doing. Basic concepts are explained by example and a large number of exercises with
various levels of difficulty are provided for students to practice. For our programming courses,
we assign programming exercises after each lecture.
Our goal is to produce a text that teaches problem solving and programming in a broad
context using a wide variety of interesting examples. If you have any comments on and
suggestions for improving the book, please email me.
Sincerely,
Y. Daniel Liang
[email protected]
www.pearsonhighered.com/liang
fundamentals-first
problem-driven
data structures
comprehensive version
brief version
AP Computer Science
examples and exercises
PREFACE
A01_LIAN9966_12_SE_FM.indd 3 28/09/19 3:26 PM
iv Prefa ce
ACM/IEEE Curricular 2013 and ABET
Course Assessment
The new ACM/IEEE Computer Science Curricular 2013 defines the Body of Knowledge
organized into 18 Knowledge Areas. To help instructors design the courses based on this
book, we provide sample syllabi to identify the Knowledge Areas and Knowledge Units.
The sample syllabi are for a three semester course sequence and serve as an example for
institutional customization. The sample syllabi are accessible from the Instructor Resource
Website.
Many of our users are from the ABET-accredited programs. A key component of the
ABET accreditation is to identify the weakness through continuous course assessment
against the course outcomes. We provide sample course outcomes for the courses and sam-
ple exams for measuring course outcomes on the Instructor Resource Website.
What’s New in This Edition?
This edition is completely revised in every detail to enhance clarity, presentation, content,
examples, and exercises. The major improvements are as follows:
■■ Updated to Java 9, 10, and 11. Examples are improved and simplified by using the new
features in Java 9, 10, 11.
■■ The GUI chapters are updated to JavaFX 11. The examples are revised. The user interfaces
in the examples and exercises are now resizable and displayed in the center of the window.
■■ More examples and exercises in the data structures chapters use Lambda expressions to
simplify coding.
■■ Both Comparable and Comparator are used to compare elements in Heap, Priority-
Queue, BST, and AVLTree. This is consistent with the Java API and is more useful and
flexible.
■■ String matching algorithms are introduced in Chapter 22.
■■ VideoNotes are updated.
■■ Provided additional exercises not printed in the book. These exercises are available for
instructors only.
Please visit www.pearsonhighered.com/liang for a complete list of new features as well as
correlations to the previous edition.
Pedagogical Features
The book uses the following elements to help students get the most from the material:
■■ The Objectives at the beginning of each chapter list what students should learn from
the chapter. This will help them determine whether they have met the objectives after
completing the chapter.
■■ The Introduction opens the discussion with a thought-provoking question to motivate the
reader to delve into the chapter.
■■ Key Points highlight the important concepts covered in each section.
■■ Check Points provide review questions to help students track their progress as they read
through the chapter and evaluate their learning.
A01_LIAN9966_12_SE_FM.indd 4 28/09/19 3:26 PM
Preface v
■■ Problems and Case Studies, carefully chosen and presented in an easy-to-follow style,
teach problem solving and programming concepts. The book uses many small, simple, and
stimulating examples to demonstrate important ideas.
■■ The Chapter Summary reviews the important subjects that students should understand
and remember. It helps them reinforce the key concepts they have learned in the chapter.
■■ Quizzes are accessible online, grouped by sections, for students to do self-test on
programming concepts and techniques.
■■ Programming Exercises are grouped by sections to provide students with opportunities
to apply the new skills they have learned on their own. The level of difficulty is rated as
easy (no asterisk), moderate (*), hard (**), or challenging (***). The trick of learning
programming is practice, practice, and practice. To that end, the book provides a great
many exercises. Additionally, more than 200 programming exercises with solutions are
provided to the instructors on the Instructor Resource Website. These exercises are not
printed in the text.
■■ Notes, Tips, Cautions, and Design Guides are inserted throughout the text to offer
valuable advice and insight on important aspects of program development.
Note
Provides additional information on the subject and reinforces important concepts.
Tip
Teaches good programming style and practice.
Caution
Helps students steer away from the pitfalls of programming errors.
Design Guide
Provides guidelines for designing programs.
Flexible Chapter Orderings
The book is designed to provide flexible chapter orderings to enable GUI, exception handling,
recursion, generics, and the Java Collections Framework to be covered earlier or later.
The diagram on the next page shows the chapter dependencies.
Organization of the Book
The chapters can be grouped into five parts that, taken together, form a comprehensive intro-
duction to Java programming, data structures and algorithms, and database and Web pro-
gramming. Because knowledge is cumulative, the early chapters provide the conceptual basis
for understanding programming and guide students through simple examples and exercises;
subsequent chapters progressively present Java programming in detail, culminating with the
development of comprehensive Java applications. The appendixes contain a mixed bag of
topics, including an introduction to number systems, bitwise operations, regular expressions,
and enumerated types.
A01_LIAN9966_12_SE_FM.indd 5 28/09/19 3:26 PM
C
h
ap
te
r
39
J
av
aS
er
ve
r
F
ac
es
C
h
ap
te
r
40
R
M
I
C
h
ap
te
r
41
W
eb
S
er
vi
ce
s
C
h
ap
te
r
44
T
es
ti
n
g
U
si
n
g
JU
n
it
C
h
ap
te
r
38
J
av
aS
er
ve
r
P
ag
es
C
h
ap
te
r
25
B
in
ar
y
S
ea
rc
h
T
re
es
C
h
ap
te
r
26
A
V
L
T
re
es
C
h
ap
te
r
29
W
ei
gh
te
d
G
ra
p
h
s
an
d
A
p
p
li
ca
ti
o
n
s
C
h
ap
te
r
28
G
ra
p
h
s
an
d
A
p
p
li
ca
ti
o
n
s
C
h
ap
te
r
21
S
et
s
an
d
M
ap
s
C
h
ap
te
r
22
D
ev
el
o
p
p
in
g
E
ff
ic
ie
n
t
A
lg
o
ri
th
m
s
C
h
ap
te
r
1
In
tr
o
d
u
ct
io
n
t
o
C
o
m
p
u
te
rs
, P
ro
gr
am
s,
a
n
d
J
av
a
C
h
ap
te
r
2
E
le
m
en
ta
ry
P
ro
gr
am
m
in
g
C
h
ap
te
r
5
L
o
o
p
s
C
h
ap
te
r
7
S
in
gl
e-
D
im
en
si
o
n
al
A
rr
ay
s
C
h
ap
te
r
8
M
u
lt
id
im
en
si
o
n
al
A
rr
ay
s
C
h
ap
te
r
4
M
at
h
em
at
ic
al
F
u
n
ct
io
n
s,
C
h
ar
ac
te
rs
,
a
n
d
S
tr
in
gs
P
ar
t
I:
F
u
n
d
am
en
ta
ls
o
f
P
ro
gr
am
m
in
g
C
h
ap
te
r
3
S
el
ec
ti
o
n
s
C
h
ap
te
r
9
O
b
je
ct
s
an
d
C
la
ss
es
C
h
ap
te
r
17
B
in
ar
y
I/
O
N
o
te
: C
h
ap
te
rs
1
–1
8
ar
e
in
t
h
e
b
ri
ef
v
er
si
o
n
o
f
th
is
b
o
o
k
.
N
o
te
: C
h
ap
te
rs
1
–3
0
ar
e
in
t
h
e
co
m
p
re
h
en
si
ve
v
er
si
o
n
.
N
o
te
: C
h
ap
te
rs
3
1–
44
a
re
b
o
n
u
s
ch
ap
te
rs
a
va
il
ab
le
f
ro
m
t
h
e
C
o
m
p
an
io
n
W
eb
si
te
.
C
h
ap
te
r
10
T
h
in
k
in
g
in
O
b
je
ct
s
C
h
ap
te
r
11
I
n
h
er
it
an
ce
a
n
d
P
o
ly
m
o
rp
h
is
m
C
h
ap
te
r
12
E
xc
ep
ti
o
n
H
an
d
li
n
g
a
n
d
T
ex
t
I/
O
C
h
ap
te
r
13
A
b
st
ra
ct
C
la
ss
es
a
n
d
I
n
te
rf
ac
es
C
h
ap
te
r
6
M
et
h
o
d
s
P
ar
t
II
: O
b
je
ct
-O
ri
en
te
d
P
ro
gr
am
m
in
g
C
h
ap
te
r
32
M
u
lt
it
h
re
ad
in
g
an
d
P
ar
al
le
l P
ro
gr
am
m
in
g
C
h
ap
te
r
36
I
n
te
rn
at
io
n
al
iz
at
io
n
C
h
ap
te
r
33
N
et
w
o
rk
in
g
C
h
ap
te
r
34
J
av
a
D
at
ab
as
e
P
ro
gr
am
m
in
g
C
h
ap
te
r
35
A
d
va
n
ce
d
J
av
a
D
at
ab
as
e
P
ro
gr
am
m
in
g
C
h
ap
te
r
37
S
er
vl
et
s
P
ar
t
V
: A
d
va
n
ce
d
J
av
a
P
ro
gr
am
m
in
g
C
h
ap
te
r
14
J
av
aF
X
B
as
ic
s
C
h
ap
te
r
15
E
ve
n
t-
D
ri
ve
n
P
ro
gr
am
m
in
g
an
d
A
n
im
at
io
n
s
C
h
ap
te
r
20
L
is
ts
, S
ta
ck
s,
Q
u
eu
es
,
a
n
d
P
ri
o
ri
ty
Q
u
eu
es
C
h
ap
te
r
16
J
av
aF
X
C
o
n
tr
o
ls
a
n
d
M
u
lt
im
ed
ia
C
h
ap
te
r
31
A
d
va
n
ce
d
J
av
aF
X
a
n
d
F
X
M
L
P
ar
t
II
I:
G
U
I
P
ro
gr
am
m
in
g
C
h
ap
te
r
18
R
ec
u
rs
io
n
C
h
7
C
h
ap
te
r
19
G
en
er
ic
s
C
h
ap
te
r
24
I
m
p
le
m
en
ti
n
g
L
is
ts
,
S
ta
ck
s,
Q
u
eu
es
, a
n
d
P
ri
o
ri
ty
Q
u
eu
es
P
ar
t
IV
: D
at
a
S
tr
u
ct
u
re
s
an
d
A
lg
o
ri
th
m
s
C
h
1
3
C
h
1
6
C
h
9
C
ha
pt
er
3
0
A
gg
re
ga
te
O
pe
ra
ti
on
s
an
d
C
o
ll
ec
ti
o
n
S
tr
ea
m
s
C
h
ap
te
r
42
2
-4
T
re
es
a
n
d
B
-
T
re
es
C
h
ap
te
r
43
R
ed
-B
la
ck
T
re
es
C
h
ap
te
r
27
H
as
h
in
g
C
h
ap
te
r
23
S
o
rt
in
g
vi Preface
A01_LIAN9966_12_SE_FM.indd 6 28/09/19 3:27 PM
Part I: Fundamentals of Programming (Chapters 1–8)
The first part of the book is a stepping stone, preparing you to embark on the journey of
learning Java. You will begin to learn about Java (Chapter 1) and fundamental programming
techniques with primitive data types, variables, constants, assignments, expressions, and operators
( Chapter 2), selection statements (Chapter 3), mathematical functions, characters, and strings
(Chapter 4), loops (Chapter 5), methods (Chapter 6), and arrays (Chapters 7–8). After Chapter 7,
you can jump to Chapter 18 to learn how to write recursive methods for solving inherently
recursive problems.
Part II: Object-Oriented Programming (Chapters 9–13, and 17)
This part introduces object-oriented programming. Java is an object-oriented program-
ming language that uses abstraction, encapsulation, inheritance, and polymorphism to pro-
vide great flexibility, modularity, and reusability in developing software. You will learn
programming with objects and classes (Chapters 9–10), class inheritance (Chapter 11),
polymorphism ( Chapter 11), exception handling (Chapter 12), abstract classes (Chapter
13), and interfaces (Chapter 13). Text I/O is introduced in Chapter 12 and binary I/O is
discussed in Chapter 17.
Part III: GUI Programming (Chapters 14–16 and Bonus Chapter 31)
JavaFX is a new framework for developing Java GUI programs. It is not only useful for
developing GUI programs, but also an excellent pedagogical tool for learning object-oriented
programming. This part introduces Java GUI programming using JavaFX in Chapters 14–16.
Major topics include GUI basics (Chapter 14), container panes (Chapter 14), drawing shapes
(Chapter 14), event-driven programming (Chapter 15), animations (Chapter 15), and GUI
controls (Chapter 16), and playing audio and video (Chapter 16). You will learn the architecture
of JavaFX GUI programming and use the controls, shapes, panes, image, and video to develop
useful applications. Chapter 31 covers advanced features in JavaFX.
Part IV: Data Structures and Algorithms (Chapters 18–30 and Bonus Chapters 42–43)
This part covers the main subjects in a typical data structures and algorithms course. Chapter 18
introduces recursion to write methods for solving inherently recursive problems. Chapter 19 presents
how generics can improve software reliability. Chapters 20 and 21 introduce the Java Collection
Framework, which defines a set of useful API for data structures. Chapter 22 discusses measur-
ing algorithm efficiency in order to choose an appropriate algorithm for applications. Chapter 23
describes classic sorting algorithms. You will learn how to implement several classic data struc-
tures lists, queues, and priority queues in Chapter 24. Chapters 25 and 26 introduce binary search
trees and AVL trees. Chapter 27 presents hashing and implementing maps and sets using hashing.
Chapters 28 and 29 introduce graph applications. Chapter 30 introduces aggregate operations for
collection streams. The 2-4 trees, B-trees, and red-black trees are covered in Bonus Chapters 42–43.
Part V: Advanced Java Programming (Chapters 32-41, 44)
This part of the book is devoted to advanced Java programming. Chapter 32 treats the use of
multithreading to make programs more responsive and interactive and introduces parallel pro-
gramming. Chapter 33 discusses how to write programs that talk with each other from different
hosts over the Internet. Chapter 34 introduces the use of Java to develop database projects.
Chapter 35 delves into advanced Java database programming. Chapter 36 covers the use of
internationalization support to develop projects for international audiences. Chapters 37 and
38 introduce how to use Java servlets and JavaServer Pages to generate dynamic content from
Web servers. Chapter 39 introduces modern Web application development using JavaServer
Faces. Chapter 40 introduces remote method invocation and Chapter 41 discusses Web ser-
vices. Chapter 44 introduces testing Java programs using JUnit.
Preface vii
A01_LIAN9966_12_SE_FM.indd 7 28/09/19 3:27 PM
Appendixes
This part of the book covers a mixed bag of topics. Appendix A lists Java keywords. Appendix B
gives tables of ASCII characters and their associated codes in decimal and in hex. Appen-
dix C shows the operator precedence. Appendix D summarizes Java modifiers and their usage.
Appendix E discusses special floating-point values. Appendix F introduces number systems and
conversions among binary, decimal, and hex numbers. Finally, Appendix G introduces bitwise
operations. Appendix H introduces regular expressions. Appendix I covers enumerated types.
Java Development Tools
You can use a text editor, such as the Windows Notepad or WordPad, to create Java programs
and to compile and run the programs from the command window. You can also use a Java
development tool, such as NetBeans or Eclipse. These tools support an integrated develop-
ment environment (IDE) for developing Java programs quickly. Editing, compiling, building,
executing, and debugging programs are integrated in one graphical user interface. Using these
tools effectively can greatly increase your programming productivity. NetBeans and Eclipse
are easy to use if you follow the tutorials. Tutorials on NetBeans and Eclipse can be found in
the supplements on the Companion Website www.pearsonhighered.com/liang.
Student Resource Website
The Student Resource Website (www.pearsonhighered.com/liang) contains the following resources:
■■ Answers to CheckPoint questions
■■ Solutions to majority of even-numbered programming exercises
■■ Source code for the examples in the book
■■ Interactive quiz (organized by sections for each chapter)
■■ Supplements
■■ Debugging tips
■■ Video notes
■■ Algorithm animations
■■ Errata
Supplements
The text covers the essential subjects. The supplements extend the text to introduce additional
topics that might be of interest to readers. The supplements are available from the Companion
Website.
Instructor Resource Website
The Instructor Resource Website, accessible from www.pearsonhighered.com/liang, contains the
following resources:
■■ Microsoft PowerPoint slides with interactive buttons to view full-color, syntax-highlighted
source code and to run programs without leaving the slides.
■■ Solutions to majority of odd-numbered programming exercises.
IDE tutorials
viii Prefa ce
A01_LIAN9966_12_SE_FM.indd 8 28/09/19 3:27 PM
■■ More than 200 additional programming exercises and 300 quizzes organized by chapters.
These exercises and quizzes are available only to the instructors. Solutions to these
exercises and quizzes are provided.
■■ Web-based quiz generator. (Instructors can choose chapters to generate quizzes from a
large database of more than two thousand questions.)
■■ Sample exams. Most exams have four parts:
■■ Multiple-choice questions or short-answer questions
■■ Correct programming errors
■■ Trace programs
■■ Write programs
■■ Sample exams with ABET course assessment.
■■ Projects. In general, each project gives a description and asks students to analyze, design,
and implement the project.
Some readers have requested the materials from the Instructor Resource Website. Please
understand that these are for instructors only. Such requests will not be answered.
Online Practice and Assessment
with MyProgrammingLab
MyProgrammingLab helps students fully grasp the logic, semantics, and syntax of
programming. Through practice exercises and immediate, personalized feedback, MyPro-
grammingLab improves the programming competence of beginning students who often
struggle with the basic concepts and paradigms of popular high-level programming
languages.
A self-study and homework tool, a MyProgrammingLab course consists of hundreds of small
practice problems organized around the structure of this textbook. For students, the system auto-
matically detects errors in the logic and syntax of their code submissions and offers targeted
hints that enable students to figure out what went wrong—and why. For instructors, a compre-
hensive gradebook tracks correct and incorrect answers and stores the code inputted by students
for review.
MyProgrammingLab is offered to users of this book in partnership with Turing’s Craft, the
makers of the CodeLab interactive programming exercise system. For a full demonstration,
to see feedback from instructors and students, or to get started using MyProgrammingLab in
your course, visit www.myprogramminglab.com.
Video Notes
We are excited about the new Video Notes feature that is found in this new edition. These
videos provide additional help by presenting examples of key topics and showing how
to solve problems completely from design through coding. Video Notes are available from
www.pearsonhighered.com/liang.
Algorithm Animations
We have provided numerous animations for algorithms. These are valuable pedagogical tools
to demonstrate how algorithms work. Algorithm animations can be accessed from the Com-
panion Website.
VideoNote
Preface ix
Animation
A01_LIAN9966_12_SE_FM.indd 9 28/09/19 3:27 PM
Acknowledgments
I would like to thank Georgia Southern University for enabling me to teach what I write and
for supporting me in writing what I teach. Teaching is the source of inspiration for continuing
to improve the book. I am grateful to the instructors and students who have offered comments,
suggestions, corrections, and praise. My special thanks go to Stefan Andrei of Lamar Univer-
sity and William Bahn of University of Colorado Colorado Springs for their help to improve
the data structures part of this book.
This book has been greatly enhanced thanks to outstanding reviews for this and previous editions.
The reviewers are: Elizabeth Adams (James Madison University), Syed Ahmed (North Georgia
College and State University), Omar Aldawud (Illinois Institute of Technology), Stefan Andrei
(Lamar University), Yang Ang (University of Wollongong, Australia), Kevin Bierre (Rochester
Institute of Technology), Aaron Braskin (Mira Costa High School), David Champion (DeVry Insti-
tute), James Chegwidden (Tarrant County College), Anup Dargar (University of North Dakota),
Daryl Detrick (Warren Hills Regional High School), Charles Dierbach (Towson University), Frank
Ducrest (University of Louisiana at Lafayette), Erica Eddy (University of Wisconsin at Parkside),
Summer Ehresman (Center Grove High School), Deena Engel (New York University), Henry A.
Etlinger (Rochester Institute of Technology), James Ten Eyck (Marist College), Myers Foreman
(Lamar University), Olac Fuentes (University of Texas at El Paso), Edward F. Gehringer (North
Carolina State University), Harold Grossman (Clemson University), Barbara Guillot (Louisiana
State University), Stuart Hansen (University of Wisconsin, Parkside), Dan Harvey (Southern Ore-
gon University), Ron Hofman (Red River College, Canada), Stephen Hughes (Roanoke College),
Vladan Jovanovic (Georgia Southern University), Deborah Kabura Kariuki (Stony Point High
School), Edwin Kay (Lehigh University), Larry King (University of Texas at Dallas), Nana Kofi
(Langara College, Canada), George Koutsogiannakis (Illinois Institute of Technology), Roger Kraft
(Purdue University at Calumet), Norman Krumpe (Miami University), Hong Lin (DeVry Institute),
Dan Lipsa (Armstrong State University), James Madison (Rensselaer Polytechnic Institute), Frank
Malinowski (Darton College), Tim Margush (University of Akron), Debbie Masada (Sun Microsys-
tems), Blayne Mayfield (Oklahoma State University), John McGrath (J.P. McGrath Consulting),
Hugh McGuire (Grand Valley State), Shyamal Mitra (University of Texas at Austin), Michel Mitri
(James Madison University), Kenrick Mock (University of Alaska Anchorage), Frank Murgolo
(California State University, Long Beach), Jun Ni (University of Iowa), Benjamin Nystuen (Univer-
sity of Colorado at Colorado Springs), Maureen Opkins (CA State University, Long Beach), Gavin
Osborne (University of Saskatchewan), Kevin Parker (Idaho State University), Dale Parson (Kutz-
town University), Mark Pendergast (Florida Gulf Coast University), Richard Povinelli (Marquette
University), Roger Priebe (University of Texas at Austin), Mary Ann Pumphrey (De Anza Junior
College), Pat Roth (Southern Polytechnic State University), Amr Sabry (Indiana University), Ben
Setzer (Kennesaw State University), Carolyn Schauble (Colorado State University), David Scuse
(University of Manitoba), Ashraf Shirani (San Jose State …
Syllabus
· Welcome to your Capella University online course, IT-FP2249 – Introduction to Programming with Java.
In this course, you will learn and practice the fundamentals of the Java programming language. You will learn and apply variables, operators, literals, and how to combine them to create expressions. You will study and develop the different types of Java statements like the assignment, selection, and looping statements. You will also apply the Java build-in array data structures in your applications. And you will practice some of Java object-oriented features like defining classes and instantiating them into objects.
Software Preparation and Technology Access
In this course, you will be using software and technology that is needed to complete designated assessments. There is no additional cost for this software and technology. Some software packages will be made available to you at no additional cost through Capella’s subscription with Microsoft, while other software packages are available for free download through open-source licensing.
Capella University requires learners to meet certain minimum computer requirements. Please note that some software required for a course may exceed these minimum requirements. Check the requirements for the software you may need to download and install to make sure it will work on your device. Most software will require a Windows PC. If you use a Mac, refer to Installing a Virtual Environment and Windows on a Mac.
The software and technologies in this course are strongly recommended to support you in completing the course objectives. If you have access to other tools that you believe may still meet the requirements of this course, please discuss your selected alternatives with faculty.
If you use assistive technology or any alternative communication methods to access course content, please contact Disability Services with any access-related questions or to request accommodations.
· Toggle Drawer
Course Competencies
To successfully complete this course, you will be expected to:
1. Explain the responsibilities of a programmer in software development.
2. Identify fundamental programming processes, logic, and constructs.
3. Design simple Java console programs according to specifications.
4. Code Java console applications using foundational Java features.
5. Apply tools and testing for successful program execution.
6. Explain Java program design decisions or strategies to stakeholders or team members.
7. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
Writing at Capella
Throughout your program, you will develop five core writing skills aligned to the Capella Writing Standards. In addition to the scoring guides that your faculty will use to assess your writing assignments, your faculty may also use the Writing Feedback Tool. The Writing Feedback Tool presents feedback related to Capellas five core writing skills:
· Address assignment Purpose
· Develop strong Organization
· Integrate appropriate Evidence
· Use scholarly Tone
· Develop grammatically sound Sentence Structure
Through use of the Writing Feedback Tool, your faculty will provide you with guidance and resources to target writing skill development. You are encouraged to study the Capella Writing Standards and to incorporate additional Writing Center resources and live support into your writing process.
Assessment 1.docx
In this assessment, you will articulate the roles played by team members in a software development project. You will explain how the Java programming language and development environment enable you to perform your role as a software programmer/developer in a development project.
In software development projects, a team is formed to carry out the project. The team is made of several members, each with a distinct role and responsibilities. Examples of these roles include the client, the project manager, the software architect, and the software programmer/developer roles.
Please refer to the resources of this assessment to learn about the software development process and the roles played in a typical software development project.
You may wish to reference these resources in your assessment.
Follow these steps to complete this assessment:
1. Research the software development process and the roles played by the development team members in software development projects. This research may include the readings suggested with this assessment, or you may conduct additional research.
2. Create a PDF or Word document named “U1A1_SWRoles” of 1–2 pages in which you:
a. Describe the software development process and its phases.
b. Explain at least four of the roles played by team members in a software development project and examine their corresponding responsibilities. The four roles must include the role of the software developer/programmer.
c. As an aspiring Java programmer, articulate how the Java programming language and the Java development environment enable you to perform the role of a Java developer in a software development project.
Your document should follow APA style and guidelines, including proper spelling and grammar. APA guides are available in the assessment resources.
Deliverables
Submit your paper as Word document named as U1A1_SWRoles.doc (a PDF is also acceptable).Your document should follow APA style and guidelines, including proper spelling and grammar.
By successfully completing this assessment, you will demonstrate your proficiency in the following course competencies and assessment criteria:
1. Describe the software development process and its phases.
2. Explain roles and responsibilities of the developer/programmer teams.
3. Articulate how the programming language and development environment enable the role of a developer/programmer.
4. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
cf_week_x_submission_template.docx
IT-FP2249 Assignment Submission Template
Unit 1, Part 1 Assignment Instructions
Name:
Date:
Course: IT-FP2249
Unit:
1
When you submit your assignment, attach the complete, zipped NetBeans project (not just the .java file) to your submission and attach a completed copy of this submission template as a second attachment. (Please do not embed the zip file in this document.)
For u03a1, u06a1, u08a1, and u10a1: Be sure to turn in the zip file with code that you have completed—not the original zip file downloaded from Resources.
Insert here a copy of your *.java source code text that you used here (copy and paste source code here, do not simply insert *.java files):
2
Insert screenshot(s) here showing the result of testing your application as directed by the assignment instructions. (Programs with more than one possible outcome require screen shots to show that the different possible outcomes work as required.)
3
Describe your approach to complete the coding for this assignment and explain the major decisions you made in designing a program that meets the specified requirements.
As part of your explanation, be sure to identify the Java constructs you used that are specific and relevant to your program. Depending on the program, these may include the mechanisms for output, input, selection statements, loops, methods, and so forth. In Units 9 and 10, be sure to discuss the classes used in the application. (Please do not just list Java keywords or snippets of code without indicating why they are important.)
Capella University Proprietary and Confidential 1
Capella Proprietary and Confidential
ShortDoc_Internal.doc
Last updated: 11/7/2018 12:56 PM 2
Add and Multiply Three Integers Scoring Guide.pdf
Add and Multiply Three Integers Scoring Guide
CRITERIA NON-PERFORMANCE BASIC PROFICIENT DISTINGUISHED
Design a program that
meets Java arithmetic
operator requirements.
Does not design a
program that meets
Java arithmetic
operator
requirements.
Designs a program that
partially meets given
specifications, or meets
some but not all of the
specifications.
Designs a
program that
meets Java
arithmetic
operator
requirements.
Designs a program that meets Java
arithmetic operator requirements.
Exceeds the given specifications with
appropriate extensions.
Code an application
that exercises
fundamental
constructs.
Does not code an
application that
exercises
fundamental
constructs.
Partially codes an
application that exercises
fundamental constructs.
Codes an
application that
exercises
fundamental
constructs.
Code an application that exercises
fundamental constructs. Source code
is well organized and well
documented.
Test the application and
document that testing.
Does not test the
application.
Partially tests the
application and
documents the result of
testing, or tests and
documentation are
inaccurate.
Tests the
application and
documents that
testing.
Tests the application and documents
that testing. Provides well-organized,
well-presented documentation of
testing steps.
Explain the approach
taken to develop the
application and the
major decisions made.
Does not explain
the approach taken
to develop the
application and the
major decisions
made.
Partially explains the
approach taken to
develop the application
and the major decisions
made.
Explains the
approach taken to
develop the
application and
the major
decisions made.
Explains the approach taken to
develop the application and the major
decisions made. Self-reflects on the
development process experience and
lessons learned.
Identify relevant
fundamental constructs
in a submitted program.
Does not identify
constructs in a
submitted program.
Identifies some relevant
fundamental constructs in
a submitted program, or
constructs are not
relevant or specific.
Identifies relevant
fundamental
constructs in a
submitted
program.
Identifies relevant fundamental
constructs in a submitted program,
and explains how they were used.
Communicate
efficiently, effectively,
and in an appropriate
manner for an IT
professional.
Does not
communicate
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently,
effectively, and in an
appropriate manner for an
IT professional; some
errors detract from
meaning.
Communicates
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently, effectively,
and in an appropriate manner for an
IT professional. Writing is well
organized, well formatted, and free of
grammatical and spelling errors.
Add and Multiply Three Integers.pdf
1
Add and Multiply Three Integers
In this assessment, you will design and code a simple Java application that reads in three
integer values and prints out both the sum and the product of these three values. You can use
either the Toolwire environment or your local Java development environment to complete this
assignment.
The requirements of this application are as follows: The application is to read three integer
numbers entered by the user from the keyboard. It assigns these three values to three int
variables respectively. The application then prints out the sum and the product of these three
integer variables.
Assume that the user always entered correct information so there is no need to validate user
input in your application.
Use these three input values to test your application: 10, 20, and 30.
Successful completion of this assignment will show the correct sum and product of the three
test values printed out when the application is run. Your program output should look like this
sample output:
Follow these steps to complete this assignment:
2
1. Create a NetBeans Java console application project called U2A1_AddMultiplyThreeInts.
2. Develop the application to meet the stated requirements.
3. Compile and test your application using the provided input data.
4. Make sure to document the result of your testing by taking screenshots of the result of
running your application similar to the provided sample output. One screenshot is
required for this assignment. NOTE: your screenshot should be included in ONE
document with your other deliverables.
5. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Deliverables
Use the submission template provided in the resources section
(WeekXSolutionSubmissionTemplate.docx) to complete and submit your deliverables. Your
deliverables in the attached submission template should include:
1. Your work (Netbeans project zip file + copy of *.java source code).
2. A screenshot of the result of testing your application. See the examples provided above.
3. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Assessment 2.docx
In this assessment, you will design and code a simple Java application that reads in three integer values and prints out both the sum and the product of these three values.
To start the project in NetBeans, go to the File menu in NetBeans and select New Project. When the New Project dialog box opens, under Categories select Java with Ant, and under Projects select Java Application. Click the Next button and give the project an appropriate name. Note the location where the project folder will be saved so you can locate the project and zip it when you are finished. Click the Finish button, and the Java source code file will open in the editor portion of the window.
Your program output should look like the sample output provided in the
Add and Multiply Three Integers Instructions [PDF]
course file resource. Full instructions for successfully completing this assessment are included in this resource. Use the
Week X Solution Submission Template [DOCX]
.
Your assessment will be scored on the following criteria:
1. Design a program that meets Java arithmetic operators requirements.
2. Code an application that exercises fundamental constructs.
3. Test the application and document that testing.
4. Explain the approach taken to develop the application and the major decisions made.
5. Identify relevant fundamental constructs in a submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
cf_week_x_submission_template.docx
IT-FP2249 Assignment Submission Template
Unit 1, Part 1 Assignment Instructions
Name:
Date:
Course: IT-FP2249
Unit:
1
When you submit your assignment, attach the complete, zipped NetBeans project (not just the .java file) to your submission and attach a completed copy of this submission template as a second attachment. (Please do not embed the zip file in this document.)
For u03a1, u06a1, u08a1, and u10a1: Be sure to turn in the zip file with code that you have completed—not the original zip file downloaded from Resources.
Insert here a copy of your *.java source code text that you used here (copy and paste source code here, do not simply insert *.java files):
2
Insert screenshot(s) here showing the result of testing your application as directed by the assignment instructions. (Programs with more than one possible outcome require screen shots to show that the different possible outcomes work as required.)
3
Describe your approach to complete the coding for this assignment and explain the major decisions you made in designing a program that meets the specified requirements.
As part of your explanation, be sure to identify the Java constructs you used that are specific and relevant to your program. Depending on the program, these may include the mechanisms for output, input, selection statements, loops, methods, and so forth. In Units 9 and 10, be sure to discuss the classes used in the application. (Please do not just list Java keywords or snippets of code without indicating why they are important.)
Capella University Proprietary and Confidential 1
Capella Proprietary and Confidential
ShortDoc_Internal.doc
Last updated: 10/8/2021 7:16 PM 2
Opening an Existing Project in NetBeans.pdf
1
Opening an Existing Project in NetBeans
Start by downloading the .zip file with the project to your desktop (or other location of your
choice on your computer).
On a computer running Windows, double click the zipped file to open it.
Drag the contents of the .zip file to the desired location.
On a Mac, double clicking on the .zip file will extract the contents to the same location as the
.zip file.
If you are using the Toolwire lab environment, be sure to extract the files to a folder on the U:
drive (My Files), otherwise they will be lost when your session ends or when you log out.
You should then see the extracted directory structure in a folder in the location to which you
dragged the contents in the previous step.
Inside this folder, you will find the directory structure containing the NetBeans projects files and
subdirectories.
Remove or Replace: Header Is Not Doc Title
2
You will need to open the project from within NetBeans, so start the NetBeans IDE, if you have
not already done so. After the program starts, go to the File menu and select Open Project…
Navigate to the directory with the extracted files.
Select the folder/directory containing the Java project (indicated by the coffee cup icon) and
click the Open Project button.
On the Projects tab in the pane on the left side of the NetBeans window you should see the tree
for the opened project.
Remove or Replace: Header Is Not Doc Title
3
Expand the Source Packages node and the node for the package below it. The package node
has an icon showing a package wrapped in brown paper and string. Below the expanded
package node is the .java source code file.
Open the Java source code (.java) file by double clicking on it.
Requirement -A2.docx
Required Resources
The following resources are required to complete the assessment.
·
Add and Multiply Three Integers Instructions [PDF]
.
·
Week X Solution Submission Template [DOCX]
.
Software
For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.
Open-Source Software
· Oracle. (n.d.).
Java SE development kit
(Version 16 or later) [Computer software]. https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
. Download the current version of the Oracle JDK. Install the program.
· Apache Software Foundation. (n.d.).
NetBeans
(Version 12.4) [Computer software]. https://netbeans.apache.org/download/nb124/nb124.html
. Download the installer for NetBeans 12.4 for your operating system. Run the installer.
If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.
SHOW LESS
Suggested Resources
The resources provided here are optional. You may use other resources of your choice to prepare for this assessment however, you will need to ensure that they are appropriate, credible, and valid. The Supplemental Resources and Research Resources, both linked from the left navigation menu in your courseroom, provide additional resources to help support you.
Capella Resources
·
Opening an Existing Project in NetBeans [PDF]
.
Suggested Skillsoft Resource
· Campbell, J. (2015).
Java SE 8 fundamentals: Working with data types [Video]
. Skillsoft Ireland.
VitalSource Resources
· Liang, Y. D. (2020). Introduction to Java programming and data structures (12th ed.). Pearson. Available in the courseroom via the VitalSource Bookshelf link.
. Chapter 2, Elementary Programming, pages 34–70.
Assessment 3.docx
In this assessment, you will debug and fix a given Java console application that uses if statements, but the application does not compile nor execute.
Your program output should look like the sample output provided in the Debug and Fix if Statements course file resource. Full instructions for successfully completing this assessment are included in this resource. Use the submission template (WeekXSolutionSubmissionTemplate.docx).
Your assessment will be scored on the following criteria:
1. Identify Java decision statement bugs in a program using development tools.
2. Code an application to fix all bugs.
3. Test the application and document that testing.
4. Explain the approach taken to complete the fix and the major decisions made.
5. Identify relevant fundamental constructs in a submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
cf_week_x_submission_template.docx
IT-FP2249 Assignment Submission Template
Unit 1, Part 1 Assignment Instructions
Name:
Date:
Course: IT-FP2249
Unit:
1
When you submit your assignment, attach the complete, zipped NetBeans project (not just the .java file) to your submission and attach a completed copy of this submission template as a second attachment. (Please do not embed the zip file in this document.)
For u03a1, u06a1, u08a1, and u10a1: Be sure to turn in the zip file with code that you have completed—not the original zip file downloaded from Resources.
Insert here a copy of your *.java source code text that you used here (copy and paste source code here, do not simply insert *.java files):
2
Insert screenshot(s) here showing the result of testing your application as directed by the assignment instructions. (Programs with more than one possible outcome require screen shots to show that the different possible outcomes work as required.)
3
Describe your approach to complete the coding for this assignment and explain the major decisions you made in designing a program that meets the specified requirements.
As part of your explanation, be sure to identify the Java constructs you used that are specific and relevant to your program. Depending on the program, these may include the mechanisms for output, input, selection statements, loops, methods, and so forth. In Units 9 and 10, be sure to discuss the classes used in the application. (Please do not just list Java keywords or snippets of code without indicating why they are important.)
Capella University Proprietary and Confidential 1
Capella Proprietary and Confidential
ShortDoc_Internal.doc
Last updated: 10/8/2021 7:16 PM 2
Debug and Fix if Statements Scoring Guide.pdf
Debug and Fix if Statements Scoring Guide
CRITERIA NON-PERFORMANCE BASIC PROFICIENT DISTINGUISHED
Identify Java decision
statement bugs in a
program using
development tools.
Does not identify
bugs.
Identifies some Java
decision statement bugs
in a program using
development tools but not
all bugs.
Identifies Java
decision
statement bugs in
a program using
development
tools.
Identifies all Java decision statement
bugs in a program using
development tools. Clearly
documents these bugs and their
causes.
Code an application to
fix all bugs.
Does not code an
application to fix
bugs.
Codes an application to
fix some, but not all, bugs.
Codes an
application to fix
all bugs.
Codes an application to fix all bugs.
Source code is well organized and
well documented.
Test the application and
document that testing.
Does not test the
application.
Tests the application and
partially documents that
testing, or documentation
is inaccurate or
unsuitable.
Tests the
application and
documents that
testing.
Tests the application and documents
that testing with appropriate
evidence. Provides well-organized,
well-presented documentation of
testing steps.
Explain the approach
taken to complete a fix
and the major
decisions made.
Does not explain
the approach taken
to complete a fix
and the major
decisions made.
Partially explains the
approach taken to
complete the fix and the
major decisions made.
Explains the
approach taken to
complete the fix
and the major
decisions made.
Explain the approach taken to
complete the fix, and the major
decisions made. Self-reflects on the
learning experience and lessons
learned.
Identify relevant
fundamental constructs
in a submitted program.
Does not identify
constructs in
submitted program.
Identifies some relevant
fundamental constructs in
a submitted program, or
constructs are not
relevant or specific.
Identifies relevant
fundamental
constructs in a
submitted
program.
Identifies relevant fundamental
constructs in a submitted program,
and explains how they were used.
Communicate
efficiently, effectively,
and in an appropriate
manner for an IT
professional.
Does not
communicate
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently,
effectively, and in an
appropriate manner for an
IT professional; some
errors detract from
meaning.
Communicates
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently, effectively,
and in an appropriate manner for an
IT professional. Writing is well
organized, well formatted, and free of
grammatical and spelling errors.
Debug and Fix If Statements.pdf
Debug and Fix If Statements
In this assessment, you will debug and fix a given Java console application that uses if statements,
but the application does not compile nor execute. You can use either the Toolwire environment or
your local Java development environment to complete this assignment.
The application has four bugs. Your assignment is to find these bugs and fix them so that the
application meets its stated requirements.
The requirements of this application are as follows: The application is to prompt the user to enter 3
integers representing three choices of numbers between 1 and 7. An integer value of zero means a
choice has not been made yet.
The application then determines and prints out the state of the choices made. That is the
application determines and prints out the number of choices made and their values.
The three choices have restrictions on them based on their order. The choices are made in order
such that if the user did not make a first choice of a number between 1 and 7 (first integer is zero),
the user cannot make a second or a third choice. An example of the three integers in this case
would be:
0 0 0
Similarly, if the user makes a first choice (first integer is non-zero), but did not make a second
choice (second integer is zero), the user cannot make a third choice. An example of the three
integers in this case would be:
2 0 0
and so on.
There is no need to validate the entered three integers to ensure they comply with the above rules.
(Choices are between 1 and 7 and are entered in order.) Assume the entered data will be valid.
Use these valid sets of data for testing: 0 0 0
2 0 0
1 4 0
7 5 7
Successful completion of this assignment will show the number of non-zero choices made by the user
and their values when the application is run. Your program output should look like this sample output:
Follow these steps to complete this assignment:
1. Unzip the attached NetBeans project zip file (U3A1_DebugFixIFStmts.zip) and load it into
your NetBeans IDE.
2. Debug and fix the application to meet its stated requirements.
3. Compile and test your application using the provided input data.
Make sure to document the result of your testing by taking screenshots of the result of
running your application similar to the provided sample output. Four screenshots are
required for this assignment.
Explain the approach you took to complete this assignment and the major decisions you made. As
part of your explanation, be sure to identify the fundamental Java constructs you used that were
specific and relevant to your submitted program.
5
Deliverables
Use the submission template provided in the resources
(WeekXSolutionSubmissionTemplate.docx) to complete and submit your deliverables. Your
deliverables in the attached submission template should include:
1. Your work. (Netbeans project zip file + copy of *.java source code.)
2. Screenshots of the result of testing your application. See the examples provided.
3. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Your work will be scored on the following criteria:
1. Identify bugs in a program using development tools.
2. Code an application to fix bugs.
3. Test the application and document testing.
4. Explain the approach taken to complete the fix and the major decisions made.
5. Identify relevant fundamental constructs in submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner as an IT professional.
Requirement 3.docx
Required Resources
The following resources are required to complete the assessment.
Capella Resources
· Debug and Fix if Statements Instructions [PDF].
· DebugFixIFStmts [ZIP].
· Week X Solution Submission Template [DOCX].
Software
For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.
Open-Source Software
· Oracle. (n.d.).
Java SE development kit
(Version 16 or later) [Computer software]. https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
. Download the current version of the Oracle JDK.
· Apache Software Foundation. (n.d.).
NetBeans
(Version 12.4) [Computer software]. https://netbeans.apache.org/download/nb124/nb124.html
. Download the installer for NetBeans 12.4 for your operating system.
If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.
SHOW LESS
Suggested Resources
The resources provided here are optional. You may use other resources of your choice to prepare for this assessment however, you will need to ensure that they are appropriate, credible, and valid. The Supplemental Resources and Research Resources, both linked from the left navigation menu in your courseroom, provide additional resources to help support you.
Capella Resources
· APA Module.
· Evidence and APA.
Optional Skillsoft Resource
· Campbell, J. (2015). Java SE 8 fundamentals: Compiling and running a program [Video]. Skillsoft Ireland.
VitalSource Resources
· Liang, Y. D. (2020). Introduction to Java programming and data structures (12th ed.). Pearson. Available in the courseroom via the VitalSource Bookshelf link.
. Chapter 3, Selections, pages 78–109.
U3A1_DebugFixIFStmts.zip
U3A1_DebugFixIFStmts/build.xml
Builds, tests, and runs the project U3A1_DebugFixIFStmts.
U3A1_DebugFixIFStmts/build/classes/.netbeans_automatic_build
U3A1_DebugFixIFStmts/build/classes/.netbeans_update_resources
U3A1_DebugFixIFStmts/build/classes/u3a1_debugfixifstmts/U3A1_DebugFixIFStmts.class
package u3a1_debugfixifstmts;
public synchronized class U3A1_DebugFixIFStmts {
public void U3A1_DebugFixIFStmts();
public static void main(String[]);
}
U3A1_DebugFixIFStmts/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
U3A1_DebugFixIFStmts/nbproject/build-impl.xml
Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar
Must set javac.includes
No tests executed.
Must set JVM to use for profiling in profiler.info.jvm
Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
Must select some files in the IDE or set javac.includes
To run this application from the command line without Ant, try:
java -jar ${dist.jar.resolved}
Must select one file in the IDE or set run.class
Must select one file in the IDE or set run.class
Must select one file in the IDE or set debug.class
Must select one file in the IDE or set debug.class
Must set fix.includes
This target only works when run from inside the NetBeans IDE.
Must select one file in the IDE or set profile.class
This target only works when run from inside the NetBeans IDE.
This target only works when run from inside the NetBeans IDE.
This target only works when run from inside the NetBeans IDE.
Must select one file in the IDE or set run.class
Must select some files in the IDE or set test.includes
Must select one file in the IDE or set run.class
Must select one file in the IDE or set applet.url
Must select some files in the IDE or set javac.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.class
Must select some method in the IDE or set test.method
Some tests failed; see details above.
Must select one file in the IDE or set test.class
Must select one file in the IDE or set test.class
Must select some method in the IDE or set test.method
Must select one file in the IDE or set applet.url
Must select one file in the IDE or set applet.url
U3A1_DebugFixIFStmts/nbproject/genfiles.properties
build.xml.data.CRC32=bb39b23f
build.xml.script.CRC32=aa413d5d
[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=bb39b23f
nbproject/build-impl.xml.script.CRC32=417e31dc
nbproject/[email protected]
U3A1_DebugFixIFStmts/nbproject/private/private.properties
compile.on.save=true
user.properties.file=C:\\Users\\omora\\AppData\\Roaming\\NetBeans\\8.1\\build.properties
U3A1_DebugFixIFStmts/nbproject/private/private.xml
U3A1_DebugFixIFStmts/nbproject/project.properties
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processor.options=
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# Files in build.classes.dir which should be excluded from distribution jar
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/U3A1_DebugFixIFStmts.jar
dist.javadoc.dir=${dist.dir}/javadoc
excludes=
includes=**
jar.compress=false
javac.classpath=
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.external.vm=true
javac.processorpath=\
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
main.class=u3a1_debugfixifstmts.U3A1_DebugFixIFStmts
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
U3A1_DebugFixIFStmts/nbproject/project.xml
org.netbeans.modules.java.j2seproject
U3A1_DebugFixIFStmts
U3A1_DebugFixIFStmts/src/u3a1_debugfixifstmts/U3A1_DebugFixIFStmts.java
U3A1_DebugFixIFStmts/src/u3a1_debugfixifstmts/U3A1_DebugFixIFStmts.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package
u3a1_debugfixifstmts
;
import
java
.
util
.
Scanner
;
/**
*
*
@author
omora
*/
public
class
U3A1_DebugFixIFStmts
{
/**
*
@param
args the command line arguments
*/
public
static
void
main
(
String
[]
args
)
{
// TODO code application logic here
System
.
out
.
println
(
Teachers Copy
);
Scanner
input
=
new
Scanner
(
System
.
in
);
// prompt the user to enter 3 ints
// and read them into
// firstChoice
//secondChoice
//thirdChoice
System
.
out
.
print
(
Enter three integers:
);
int
firstChoice
=
input
.
nextInt
();
int
secondChoice
=
input
.
nextInt
();
int
thirdChoice
=
input
.
nextInt
();
//Determine & print the state of choices made
if
(
firstChoice
==
0
)
System
.
out
.
println
(
State of choices: \n
+
no choices made yet
);
if
(
secondChoice
==
0
)
System
.
out
.
println
(
State of choices: \n
+
user made first choice (
+
firstChoice
+
)\n
+
number of choices = 1
);
else
if
(
thirdChoice
=
0
)
System
.
out
.
println
(
State of choices: \n
+
user made first choice (
+
firstChoice
+
)\n
+
user made second choice (
+
secondChoice
+
)\n
+
number of choices = 2
);
System
.
out
.
println
(
State of choices: \n
+
user made first choice (
+
firstChoice
+
)\n
+
user made second choice (
+
secondChoice
+
)\n
+
user made third choice (
+
thirdChoice
+
)\n
+
number of choices = 3
)
}
}
Assessment - 6.docx
In this assessment, you will complete the programming of a Java method in a console application that registers students for courses in a term of study. The application does compile and does run, but it does not produce the expected result as stated in its requirements.
Your program output should look like the sample output provided in the Complete the Programming of a Java Console Application Using Methods Instructions course file resource. Full instructions for successfully completing this assessment are included in this resource. Use the submission template (WeekXSolutionSubmissionTemplate.docx).
Your assessment will be scored on the following criteria:
1. Design a program that meets Java method invocation requirements.
2. Code an application that uses methods.
3. Test the application and document that testing.
4. Explain the approach taken to complete the application and the major decisions made.
5. Identify relevant fundamental constructs in a submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
Complete the Programming of a Java Console Application Using Methods Scoring Guide.pdf
Complete the Programming of a Java Console Application Using Methods Scoring Guide
CRITERIA NON-PERFORMANCE BASIC PROFICIENT DISTINGUISHED
Design a program that
meets Java method
invocation
requirements.
Does not design a
program that meets
given specifications.
Designs a program that
partially meets given
specifications.
Designs a
program that
meets Java
method invocation
requirements.
Design a program that meets Java
method invocation requirements.
Exceeds the given specifications with
appropriate extensions.
Code an application
that uses methods.
Does not code an
application that
uses methods.
Partially codes an
application that uses
methods.
Codes an
application that
uses methods.
Codes an application that uses
methods. Source code is well
organized and well documented.
Test the application and
document that testing.
Does not test the
application.
Partially tests and
documents the result of
testing, or tests and
documentation are
inaccurate.
Tests the
application and
documents that
testing.
Tests the application and documents
that testing by screenshots. Provides
well-organized, well-presented
documentation of testing steps.
Explain the approach
taken to complete the
application and the
major decisions made.
Does not explain
the approach taken
to complete the
application and the
major decisions
made.
Partially explains the
approach taken to
complete the application
and the major decisions
made.
Explains the
approach taken to
complete the
application and
the major
decisions made.
Explain the approach taken to
complete the application and the
major decisions made. Self-reflects
on the development experience and
lessons learned.
Identify relevant
fundamental constructs
in a submitted program.
Does not identify
constructs in a
submitted program.
Identifies some relevant
fundamental constructs in
a submitted program, or
constructs are not
relevant or specific.
Identifies relevant
fundamental
constructs in a
submitted
program.
Identifies relevant fundamental
constructs in a submitted program,
and explains how they were used.
Communicate
efficiently, effectively,
and in an appropriate
manner for an IT
professional.
Does not
communicate
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently,
effectively, and in an
appropriate manner for an
IT professional; some
errors detract from
meaning.
Communicates
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently, effectively,
and in an appropriate manner for an
IT professional. Writing is well
organized, well formatted, and free of
grammatical and spelling errors.
Complete the Programming of a Java Console Application Using Methods.pdf
1
Complete the Programming of a Java Console
Application Using Methods
In this assessment, you will complete the programming of a Java method in a console
application that registers students for courses in a term of study. The application does compile
and does run, but it does not produce the expected result as stated in its requirements. You can
use either the Toolwire environment or your local Java development environment to complete
this assignment.
You have been hired to complete the source code of this method such that the application
meets its stated requirements. Specifically, your added code should:
• Validate the user course selection for registration against the given registration business
rules
The requirements of this application are as follows. The application is register students for
courses in a term of study.
The assumptions used by the application are:
• Student enters only integers to select courses for registration from a menu. No data type
validation of the user menu selection is checked or required
• Each course carries 3 credit hours
• The program terminates only when the student closes it
The program must follow these registration business rules:
• No registration of other courses not displayed by the program
• No registration more than once for the same course
• No registration for more than 9 credit hours (e.g. no more than 3 courses)
The application uses Java methods for its implementation. Students select from a menu of
courses for which they wish to register. The program then validates the user selection against
the registration business rules. If the selection is valid, the program prints out a confirmation
message. Otherwise, the program prints an error message. In all cases, the program also prints
out the current list of registered classes. The program terminates when the user does not want
to register for classes any more.
The program uses the Java method ValidateChoice() to validate the user integer menu selection
and acts accordingly. If the user selection is valid against the registration business rules, the
program displays a registration confirmation message to the student for the selected course.
Otherwise, the program displays an error message explaining the reason of the invalidation of
the selection. The application maintains and displays a current list of registered courses.
Use these course codes, in this order, to test your application:
• IT2230 IT3349 IT2230 IT4782 IT4784
Successful completion of this assignment will display a valid message or an invalid message,
with reason, for the selected course code. In addition, the application should display and
2
update current list of registered courses. Your program interaction should look like the sample
interaction video in the resources, “Console Register for Course Result”.
Follow these steps to complete this assignment:
1. Unzip the NetBeans project zip file from
resources(U6A1_ConsoleRegisterForCourse.zip) and load it into your NetBeans IDE.
2. Complete the application programming (the ValidateChoice() ) to meet the stated
requirements.
3. Compile and test your application using the provided input data.
4. Make sure to document the result of your testing by taking screenshots of the result of
running your application similar to the provided sample output. Five screenshots are
required for this assignment (one for each course code of the provided input data)
5. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Deliverables
Use the submission template (WeekXSolutionSubmissionTemplate.docx) to complete and
submit your deliverables. Your deliverables in the attached submission template should include:
1. Your work (Netbeans project zip file + copy of *.java source code)
2. Screenshots of the result of testing your application. See the examples in the interaction
video.
3. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Requirement -A6.docx
Required Resources
The following resources are required to complete the assessment.
Capella Resources
· Complete the Programming of a Java Console Application Using Methods Instructions [PDF].
· ConsoleRegisterForCourse [ZIP].
· Week X Solution Submission Template [DOCX].
Software
For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.
Open-Source Software
· Oracle. (n.d.).
Java SE development kit
(Version 16 or later) [Computer software]. https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
. Download the current version of the Oracle JDK.
· Apache Software Foundation. (n.d.).
NetBeans
(Version 12.4) [Computer software]. https://netbeans.apache.org/download/nb124/nb124.html
. Download the installer for NetBeans 12.4 for your operating system.
If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.
SHOW LESS
Suggested Resources
The resources provided here are optional. You may use other resources of your choice to prepare for this assessment however, you will need to ensure that they are appropriate, credible, and valid. The Supplemental Resources and Research Resources, both linked from the left navigation menu in your courseroom, provide additional resources to help support you.
Capella Multimedia
· Console Register for Course Result | Transcript.
VitalSource Resources
· Liang, Y. D. (2020). Introduction to Java programming and data structures (12th ed.). Pearson. Available in the courseroom via the VitalSource Bookshelf link.
. Chapter 6, Methods, pages 206–235.
U6A1_ConsoleRegisterForCourse.zip
U6A1_ConsoleRegisterForCourse/build.xml
Builds, tests, and runs the project U6A1_ConsoleRegisterForCourse.
U6A1_ConsoleRegisterForCourse/build/classes/.netbeans_automatic_build
U6A1_ConsoleRegisterForCourse/build/classes/.netbeans_update_resources
U6A1_ConsoleRegisterForCourse/build/classes/u6a1_consoleregisterforcourse/U6A1_ConsoleRegisterForCourse.class
package u6a1_consoleregisterforcourse;
public synchronized class U6A1_ConsoleRegisterForCourse {
public void U6A1_ConsoleRegisterForCourse();
public static void main(String[]);
public static int getChoice(java.util.Scanner);
public static int ValidateChoice(int, int, int, int, int);
public static void WriteCurrentRegistration(int, int, int);
public static String ChoiceToCourse(int);
}
U6A1_ConsoleRegisterForCourse/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
U6A1_ConsoleRegisterForCourse/nbproject/build-impl.xml
Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar
Must set javac.includes
No tests executed.
Must set JVM to use for profiling in profiler.info.jvm
Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
Must select some files in the IDE or set javac.includes
To run this application from the command line without Ant, try:
java -jar ${dist.jar.resolved}
Must select one file in the IDE or set run.class
Must select one file in the IDE or set run.class
Must select one file in the IDE or set debug.class
Must select one file in the IDE or set debug.class
Must set fix.includes
This target only works when run from inside the NetBeans IDE.
Must select one file in the IDE or set profile.class
This target only works when run from inside the NetBeans IDE.
This target only works when run from inside the NetBeans IDE.
This target only works when run from inside the NetBeans IDE.
Must select one file in the IDE or set run.class
Must select some files in the IDE or set test.includes
Must select one file in the IDE or set run.class
Must select one file in the IDE or set applet.url
Must select some files in the IDE or set javac.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.class
Must select some method in the IDE or set test.method
Some tests failed; see details above.
Must select one file in the IDE or set test.class
Must select one file in the IDE or set test.class
Must select some method in the IDE or set test.method
Must select one file in the IDE or set applet.url
Must select one file in the IDE or set …
Assessment 5.docx
In this assessment, you will design and code a Java console application that takes as input five integer values and produces as output the lowest and highest values of these five integer values. The application uses Java looping constructs to implement its functionality.
To start the project in NetBeans, go to the File menu in NetBeans and select New Project. When the New Project dialog box opens, under Categories select Java with Ant, and under Projects select Java Application. Click the Next button, and on the next panel name the project. Click the Finish button, and the Java source code will open in the editing window.
Your program output should look like the sample output provided in the
Find Highest & Lowest of Five Integers Using Java Loops Instructions
course file resource. Full instructions for successfully completing this assessment are included in this resource. Use the
Week X Solution Submission Template
.
Your assessment will be scored according to the following criteria:
1. Design a program that meets Java looping statements requirements.
2. Code an application that exercises looping constructs.
3. Test the application and document that testing.
4. Explain the approach taken to develop the application and the major decisions made.
5. Identify relevant fundamental constructs in a submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
cf_week_x_submission_template.docx
IT-FP2249 Assignment Submission Template
Unit 1, Part 1 Assignment Instructions
Name:
Date:
Course: IT-FP2249
Unit:
1
When you submit your assignment, attach the complete, zipped NetBeans project (not just the .java file) to your submission and attach a completed copy of this submission template as a second attachment. (Please do not embed the zip file in this document.)
For u03a1, u06a1, u08a1, and u10a1: Be sure to turn in the zip file with code that you have completed—not the original zip file downloaded from Resources.
Insert here a copy of your *.java source code text that you used here (copy and paste source code here, do not simply insert *.java files):
2
Insert screenshot(s) here showing the result of testing your application as directed by the assignment instructions. (Programs with more than one possible outcome require screen shots to show that the different possible outcomes work as required.)
3
Describe your approach to complete the coding for this assignment and explain the major decisions you made in designing a program that meets the specified requirements.
As part of your explanation, be sure to identify the Java constructs you used that are specific and relevant to your program. Depending on the program, these may include the mechanisms for output, input, selection statements, loops, methods, and so forth. In Units 9 and 10, be sure to discuss the classes used in the application. (Please do not just list Java keywords or snippets of code without indicating why they are important.)
Capella University Proprietary and Confidential 1
Capella Proprietary and Confidential
ShortDoc_Internal.doc
Last updated: 10/8/2021 7:16 PM 2
Find Highest and Lowest of Five Integers Using Java Loops Scoring Guide.pdf
Find Highest and Lowest of Five Integers Using Java Loops Scoring Guide
CRITERIA NON-PERFORMANCE BASIC PROFICIENT DISTINGUISHED
Design a program that
meets Java looping
statements
requirements.
Does not design a
program that meets
given specifications.
Designs a program that
partially meets given
specifications.
Designs a
program that
meets Java
looping
statements
requirements.
Designs a program that meets Java
looping statements requirements.
Exceeds the given specifications with
appropriate extensions.
Code an application
that exercises looping
constructs.
Does not code an
application that
exercises looping
constructs.
Partially codes an
application that exercises
looping constructs, or
does not use appropriate
constructs.
Codes an
application that
exercises looping
constructs.
Codes an application that exercises
looping constructs. Source code is
well organized and well documented.
Test the application and
document that testing.
Does not test the
application.
Partially tests and
documents the result of
testing, or tests and
documentation are
inaccurate.
Tests the
application and
documents that
testing.
Tests the application and documents
that testing. Provides well-organized,
well-presented documentation of
testing steps.
Explain the approach
taken to develop the
application and the
major decisions made.
Does not explain
the approach taken
to develop the
application and the
major decisions
made.
Partially explains the
approach taken to
develop the application
and the major decisions
made.
Explains the
approach taken to
develop the
application and
the major
decisions made.
Explains the approach taken to
develop the application and the major
decisions made. Self-reflects on the
process, experience, and lessons
learned.
Identify relevant
fundamental constructs
in a submitted program.
Does not identify
constructs in a
submitted program.
Identifies some relevant
fundamental constructs in
a submitted program, or
constructs are not
relevant or specific.
Identifies relevant
fundamental
constructs in a
submitted
program.
Identifies relevant fundamental
constructs in a submitted program,
and explains how they were used.
Communicate
efficiently, effectively,
and in an appropriate
manner for an IT
professional.
Does not
communicate
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently,
effectively, and in an
appropriate manner for an
IT professional; some
errors detract from
meaning.
Communicates
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently, effectively,
and in an appropriate manner for an
IT professional. Writing is well
organized, well formatted, and free of
grammatical and spelling errors.
Find Highest and Lowest of Five Integers Using Java Loops.pdf
1
Find Highest and Lowest of Five Integers Using Java
Loops
In this assessment, you will design and code a Java console application that takes as input five
integer values and produces as output the lowest and highest values of these five integer
values. The application uses Java looping constructs to implement its functionality. You can use
either the Toolwire environment or your local Java development environment to complete this
assignment.
The requirements of this application are as follows: The application is to read five integer
numbers entered by the user from the keyboard using a Java looping construct. The application
then prints out the highest integer and the lowest integer numbers that were entered.
Use these five input values to test your application: 3 56 89 602 1
Successful completion of this assignment will show the correct highest and lowest integer values
that were entered printed out when the application is run. Your program output should look like
this sample output:
2
Follow these steps to complete this assignment:
1. Create a NetBeans Java console application project called “U5A1_
FindHighLowOfFiveInts”.
2. Develop the application to meet the stated requirements.
3. Compile and test your application using the provided input data.
4. Make sure to document the result of your testing by taking screenshots of the result of
running your application similar to the provided sample output. One screenshot is
required for this assignment.
5. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Deliverables
Use the provided submission template (WeekXSolutionSubmissionTemplate.docx)from the
resources to complete and submit your deliverables. Your deliverables in the attached
submission template should include:
1. Your work (Netbeans project zip file + copy of *.java source code)
2. A screenshot of the result of testing your application. See the examples above.
3. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Your work will be scored according to the following criteria:
1. Design a program that meets given specifications.
2. Code an application that exercises looping constructs.
3. Test the application and documents testing.
4. Explain the approach taken to develop the application and the major decisions made.
5. Identify relevant fundamental constructs in submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner as an IT professional.
Requirement - A5.docx
Required Resources
The following resources are required to complete the assessment.
Capella Resources
· Find Highest and Lowest of Five Integers Using Java Loops Instructions [PDF].
· Week X Solution Submission Template [DOCX].
Software
For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.
Open-Source Software
· Oracle. (n.d.).
Java SE development kit
(Version 16 or later) [Computer software]. https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
. Download the current version of the Oracle JDK.
· Apache Software Foundation. (n.d.).
NetBeans
(Version 12.4) [Computer software]. https://netbeans.apache.org/download/nb124/nb124.html
. Download the installer for NetBeans 12.4 for your operating system.
If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.
SHOW LESS
Suggested Resources
The resources provided here are optional. You may use other resources of your choice to prepare for this assessment however, you will need to ensure that they are appropriate, credible, and valid. The Supplemental Resources and Research Resources, both linked from the left navigation menu in your courseroom, provide additional resources to help support you.
VitalSource Resources
· Liang, Y. D. (2020). Introduction to Java programming and data structures (12th ed.). Pearson. Available in the courseroom via the VitalSource Bookshelf link.
. Chapter 5, Loops, pages 160–194.
2D Console Register for Course.url
[InternetShortcut]
URL=http://media.capella.edu/CourseMedia/IT2249/2-d-console/IT2249_2d_console-register.asp
Assessment 8.docx
In this assessment, you will debug and fix a given Java console application that uses two dimensional arrays, but the application does not compile nor execute.
Your program output should look like the sample output provided in the Debug and Fix a Two-Dimensional Array Java Console Application Instructions course file resource. Full instructions for successfully completing this assessment are included in this resource. Use the submission template (WeekXSolutionSubmissionTemplate.docx).
Your assessment will be scored on the following criteria:
1. Identify Java two-dimensional array bugs in a program using development tools.
2. Code an application to fix all bugs.
3. Test the application and document that testing.
4. Explain the approach taken to complete the application and the major decisions made.
5. Identify relevant fundamental constructs in a submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
cf_week_x_submission_template.docx
IT-FP2249 Assignment Submission Template
Unit 1, Part 1 Assignment Instructions
Name:
Date:
Course: IT-FP2249
Unit:
1
When you submit your assignment, attach the complete, zipped NetBeans project (not just the .java file) to your submission and attach a completed copy of this submission template as a second attachment. (Please do not embed the zip file in this document.)
For u03a1, u06a1, u08a1, and u10a1: Be sure to turn in the zip file with code that you have completed—not the original zip file downloaded from Resources.
Insert here a copy of your *.java source code text that you used here (copy and paste source code here, do not simply insert *.java files):
2
Insert screenshot(s) here showing the result of testing your application as directed by the assignment instructions. (Programs with more than one possible outcome require screen shots to show that the different possible outcomes work as required.)
3
Describe your approach to complete the coding for this assignment and explain the major decisions you made in designing a program that meets the specified requirements.
As part of your explanation, be sure to identify the Java constructs you used that are specific and relevant to your program. Depending on the program, these may include the mechanisms for output, input, selection statements, loops, methods, and so forth. In Units 9 and 10, be sure to discuss the classes used in the application. (Please do not just list Java keywords or snippets of code without indicating why they are important.)
Capella University Proprietary and Confidential 1
Capella Proprietary and Confidential
ShortDoc_Internal.doc
Last updated: 10/8/2021 7:16 PM 2
Requirement - A8.docx
Required Resources
The following resources are required to complete the assessment.
Capella Resources
· Debug and Fix a Two-Dimensional Array Java Console Application Instructions [PDF].
· 2DConsoleRegisterForCourse [ZIP].
· Week X Solution Submission Template [DOCX].
Software
For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.
Open-Source Software
· Oracle. (n.d.).
Java SE development kit
(Version 16 or later) [Computer software]. https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
. Download the current version of the Oracle JDK. Install the program.
· Apache Software Foundation. (n.d.).
NetBeans
(Version 12.4) [Computer software]. https://netbeans.apache.org/download/nb124/nb124.html
. Download the installer for NetBeans 12.4 for your operating system. Run the installer.
If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.
SHOW LESS
Suggested Resources
The resources provided here are optional. You may use other resources of your choice to prepare for this assessment however, you will need to ensure that they are appropriate, credible, and valid. The Supplemental Resources and Research Resources, both linked from the left navigation menu in your courseroom, provide additional resources to help support you.
Capella Multimedia
· 2D Console Register for Course | Transcript.
VitalSource Resources
· Liang, Y. D. (2020). Introduction to Java programming and data structures (12th ed.). Pearson. Available in the courseroom via the VitalSource Bookshelf link.
. Chapter 8,Multidimensional Arrays, pages 290–307.
Scoring Guide.pdf
Debug and Fix a Two-Dimensional Array Java Console Application Scoring Guide
CRITERIA NON-PERFORMANCE BASIC PROFICIENT DISTINGUISHED
Identify Java two-
dimensional array bugs
in a program using
development tools.
Does not identify
bugs.
Identifies some, but not
all, bugs in a program
using development tools.
Identifies Java
two-dimensional
array bugs in a
program using
development
tools.
Identifies all Java two-dimensional
array bugs in a program using
development tools. Clearly
documents these bugs and their
causes.
Code an application to
fix all bugs.
Does not code an
application to fix
bugs.
Codes an application to
fix some, but not all, bugs.
Codes an
application to fix
all bugs.
Codes an application to fix all bugs.
Source code is well organized and
well documented.
Test the application and
document that testing.
Does not test the
application.
Tests the application and
partially documents the
testing, or documentation
is inaccurate or
unsuitable.
Tests the
application and
documents that
testing.
Tests the application and documents
that testing with appropriate
evidence. Provides well-organized,
well-presented documentation of
testing steps.
Explain the approach
taken to complete the
application and the
major decisions made.
Does not explain
the approach taken
to complete the
application and the
major decisions
made.
Partially explains the
approach taken to
complete the application
and the major decisions
made.
Explains the
approach taken to
complete the
application and
the major
decisions made.
Explains the approach taken to
complete the application and the
major decisions made. Self-reflects
on the development experience and
lessons learned.
Identify relevant
fundamental constructs
in a submitted program.
Does not identify
constructs in a
submitted program.
Identifies some relevant
fundamental constructs in
a submitted program, or
constructs are not
relevant or specific.
Identifies relevant
fundamental
constructs in a
submitted
program.
Identifies relevant fundamental
constructs in a submitted program,
and explains how they were used.
Communicate
efficiently, effectively,
and in an appropriate
manner for an IT
professional.
Does not
communicate
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently,
effectively, and in an
appropriate manner for an
IT professional; some
errors detract from
meaning.
Communicates
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently, effectively,
and in an appropriate manner for an
IT professional. Writing is well
organized, well formatted, and free of
grammatical and spelling errors.
Assessment 10.docx
In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using the object-oriented features of the Java programming language. The application does compile and does run, but it does not produce the expected result as stated in its requirements.
Your program output should look like the sample output provided in the Complete the Programming of an Object-Oriented Console Application Instructions course file resource. Full instructions for successfully completing this assessment are included in this resource. Use the submission template (WeekXSolutionSubmissionTemplate.docx).
Your assessment will be scored on the following criteria:
1. Design a program that meets object-oriented design requirements.
2. Code an application that exercises object orientation.
3. Test the application and document that testing.
4. Explain the approach taken to develop the application and the major decisions made.
5. Identify relevant fundamental constructs in a submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
cf_week_x_submission_template.docx
IT-FP2249 Assignment Submission Template
Unit 1, Part 1 Assignment Instructions
Name:
Date:
Course: IT-FP2249
Unit:
1
When you submit your assignment, attach the complete, zipped NetBeans project (not just the .java file) to your submission and attach a completed copy of this submission template as a second attachment. (Please do not embed the zip file in this document.)
For u03a1, u06a1, u08a1, and u10a1: Be sure to turn in the zip file with code that you have completed—not the original zip file downloaded from Resources.
Insert here a copy of your *.java source code text that you used here (copy and paste source code here, do not simply insert *.java files):
2
Insert screenshot(s) here showing the result of testing your application as directed by the assignment instructions. (Programs with more than one possible outcome require screen shots to show that the different possible outcomes work as required.)
3
Describe your approach to complete the coding for this assignment and explain the major decisions you made in designing a program that meets the specified requirements.
As part of your explanation, be sure to identify the Java constructs you used that are specific and relevant to your program. Depending on the program, these may include the mechanisms for output, input, selection statements, loops, methods, and so forth. In Units 9 and 10, be sure to discuss the classes used in the application. (Please do not just list Java keywords or snippets of code without indicating why they are important.)
Capella University Proprietary and Confidential 1
Capella Proprietary and Confidential
ShortDoc_Internal.doc
Last updated: 10/8/2021 7:16 PM 2
Complete the Programming of an Object-Oriented Console Application.pdf
1
Complete the Programming of an Object-Oriented
Console Application
In this assessment, you will complete the programming of two Java class methods in a console
application that registers students for courses in a term of study. The application is written using
the Object-Oriented features of the Java programming language. The application does compile
and does run, but it does not produce the expected result as stated in its requirements. You can
use either the Toolwire environment or your local Java development environment to complete
this assignment.
You have been hired to complete the source code of these two methods such that the
application meets its stated requirements. Specifically, your added code should:
• In one method, prints out a list of courses available for registration and prompt the user
to select a course for which to register
• In the second method, prints out a current list of registered courses and their total credit
hours
The requirements of this application are as follows: The application is register students for
courses in a term of study.
The assumptions used by the application are:
• Student enter only integers to select courses for registration from a menu. No data type
validation of the user menu selection is checked or required
• The program terminates only when the student closes it
The program must follow these registration business rules:
• No registration of other courses not displayed by the program
• No registration more than once for the same course
• No registration for more than 9 credit hours (e.g. no more than 3 courses)
The application uses Java Object-Oriented features for its implementation. Students select from
a menu of courses for which they wish to register. The program then validates the user
selection against the registration business rules. If the selection is valid, the program prints out
a confirmation message. Otherwise, the program prints out the current list of registered classes
along with total registered credit hours. The program terminates when the user does not want to
register for classes any more.
There are two Java classes of this application:
1. Course.java. This Java class is complete and does not need any modification
2. U10A1_OOConsoleRegisterForCourse.java. This is the class with the two methods that
need to be completed
The two methods that need to be completed of the U10A1_OOConsoleRegisterForCourse.java
are:
1. getChoice() method. This method loops over an array of course objects and prints out
their attributes, one per line according to this format:
2
[selection number]Course Code (Course Credit Hours)
2. WriteCurrentRegistration() method. This method also loops over the array of course
objects and prints out a list of registered courses thus far. The list current registered
courses are enclosed inside a { } and separated by a ,. The methods also prints out the
total credit hours thus far
Use these course codes, in this order, to test your application:
• T2230
• IT2249 IT2230 IT3345
Successful completion of this assignment will display a menu of courses from which to select to
register in the format of
[selection number]Course Code (Course Credit Hours)
In addition, the application should display and update current list of registered courses and their
total credit hours. Your program interaction should look like the sample interaction video, “OO
Console Register for Course”
Follow these steps to complete this assignment:
1. Unzip the NetBeans project zip file available in the resources
(U10A1_OOConsoleRegisterForCourse.zip) and load it into your NetBeans IDE.
2. Complete the application programming (the getChoice() and the
WriteCurrentRegistration() method) to meet the stated requirements.
3. Compile and test your application using the provided input data. Make sure to document
the result of your testing by taking screenshots of the result of running your application
similar to the provided sample output. Four screenshots are required for this assignment
(one for each course code of the provided input data).
4. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Deliverables
Use the submission template available in the
resources(WeekXSolutionSubmissionTemplate.docx) to complete and submit your deliverables.
Your deliverables in the submission template should include:
1. Your work (Netbeans project zip file + copy of *.java source code)
2. Screenshots of the result of testing your application. See the examples in the interaction
video.
3. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
OO Console Register For Course.url
[InternetShortcut]
URL=http://media.capella.edu/CourseMedia/IT2249/OO-console/it2249_oo_console-register.asp
Requirement - A10.docx
Required Resources
The following resources are required to complete the assessment.
Capella Resources
· Complete the Programming of an Object-Oriented Console Application Instructions [PDF].
· OOConsoleRegisterForCourse [ZIP].
· Week X Solution Submission Template [DOCX].
Software
For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.
Open-Source Software
· Apache Software Foundation. (n.d.).
NetBeans
(Version 12.4) [Computer software]. https://netbeans.apache.org/download/nb124/nb124.html
. Download the installer for NetBeans 12.4 for your operating system.
· Oracle. (n.d.).
Java SE development kit
(Version 16 or later) [Computer software]. https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
. Download the current version of the Oracle JDK.
If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.
SHOW LESS
Suggested Resources
The resources provided here are optional. You may use other resources of your choice to prepare for this assessment however, you will need to ensure that they are appropriate, credible, and valid. The Supplemental Resources and Research Resources, both linked from the left navigation menu in your courseroom, provide additional resources to help support you.
Capella Multimedia
· OO Console Register For Course | Transcript.
VitalSource Resources
· Liang, Y. D. (2020). Introduction to Java programming and data structures (12th ed.). Pearson. Available in the courseroom via the VitalSource Bookshelf link.
. Chapter 10, Object-Oriented Thinking, pages 368–401.
Scoring Guide.pdf
Complete the Programming of an Object-Oriented Console Application Scoring Guide
CRITERIA NON-PERFORMANCE BASIC PROFICIENT DISTINGUISHED
Design a program that
meets object-oriented
design requirements.
Does not design a
program that meets
given specifications.
Designs a program that
partially meets given
specifications.
Designs a
program that
meets object-
oriented design
requirements.
Designs a program that meets
object-oriented design requirements.
Exceeds the given specifications with
appropriate extensions.
Code an application
that exercises object
orientation.
Does not code an
application that
exercises object
orientation.
Partially codes an
application that exercises
object orientation.
Codes an
application that
exercises object
orientation.
Codes an application that exercises
object orientation. Source code is
well organized and well documented.
Test the application and
document that testing.
Does not test the
application.
Tests the application and
partially documents that
testing, or documentation
is inaccurate or
unsuitable.
Tests the
application and
documents that
testing.
Tests the application and documents
that testing with appropriate
evidence. Provides well-organized,
well-presented documentation of
testing steps.
Explain the approach
taken to develop the
application and the
major decisions made.
Does not explain the
approach taken to
develop the
application and the
major decisions
made.
Partially explains the
approach taken to
develop the application
and the major decisions
made.
Explains the
approach taken to
develop the
application and
the major
decisions made.
Explains the approach taken to
develop the application and the
major decisions made. Self-reflects
on the process, experience, and
lessons learned.
Identify relevant
fundamental constructs
in a submitted program.
Does not identify
constructs in a
submitted program.
Identifies some relevant
fundamental constructs in
a submitted program, or
constructs are not
relevant or specific.
Identifies relevant
fundamental
constructs in a
submitted
program.
Identifies relevant fundamental
constructs in a submitted program,
and explains how they were used.
Communicate
efficiently, effectively,
and in an appropriate
manner for an IT
professional
Does not
communicate
efficiently,
effectively, and in an
appropriate manner
for as an IT
professional.
Communicates efficiently,
effectively, and in an
appropriate manner for an
IT professional; some
errors detract from
meaning.
Communicates
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently, effectively,
and in an appropriate manner for an
IT professional. Writing is well
organized, well formatted, and free of
grammatical and spelling errors.
U10A1_OOConsoleRegisterForCourse.zip
U10A1_OOConsoleRegisterForCourse/build.xml
Builds, tests, and runs the project U10A1_OOConsoleRegisterForCourse.
U10A1_OOConsoleRegisterForCourse/build/classes/.netbeans_automatic_build
U10A1_OOConsoleRegisterForCourse/build/classes/.netbeans_update_resources
U10A1_OOConsoleRegisterForCourse/build/classes/u10a1_ooconsoleregisterforcourse/Course.class
package u10a1_ooconsoleregisterforcourse;
public synchronized class Course {
private String code;
private int creditHour;
private boolean isRegisterdFor;
public void Course(String, int);
public void setCode(String);
public String getCode();
public void setCrditHour(int);
public int getCreditHour();
public void setIsRegisteredFor(boolean);
public boolean getIsRegisteredFor();
}
U10A1_OOConsoleRegisterForCourse/build/classes/u10a1_ooconsoleregisterforcourse/U10A1_OOConsoleRegisterForCourse.class
package u10a1_ooconsoleregisterforcourse;
public synchronized class U10A1_OOConsoleRegisterForCourse {
public void U10A1_OOConsoleRegisterForCourse();
public static void main(String[]);
public static int getChoice(Course[], java.util.Scanner);
public static int ValidateChoice(int, int, Course[]);
public static boolean IsRegisteredBefore(int, Course[]);
public static void WriteCurrentRegistration(Course[], int);
}
U10A1_OOConsoleRegisterForCourse/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
U10A1_OOConsoleRegisterForCourse/nbproject/build-impl.xml
Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar
Must set javac.includes
No tests executed.
Must set JVM to use for profiling in profiler.info.jvm
Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
Must select some files in the IDE or set javac.includes
To run this application from the command line without Ant, try:
java -jar ${dist.jar.resolved}
Must select one file in the IDE or set run.class
Must select one file in the IDE or set run.class
Must select one file in the IDE or set debug.class
Must select one file in the IDE or set debug.class
Must set fix.includes
This target only works when run from inside the NetBeans IDE.
Must select one file in the IDE or set profile.class
This target only works when run from inside the NetBeans IDE.
This target only works when run from inside the NetBeans IDE.
This target only works when run from inside the NetBeans IDE.
Must select one file in the IDE or set run.class
Must select some files in the IDE or set test.includes
Must select one file in the IDE or set run.class
Must select one file in the IDE or set applet.url
Must select some files in the IDE or set javac.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.class
Must select some method in the IDE or set test.method
Some tests failed; see details above.
Must select one file in the IDE or set test.class
Must select one file in the IDE or set test.class
Must select some method in the IDE or set test.method
Must select one file in the IDE or set applet.url
Must select one file in the IDE or set applet.url
U10A1_OOConsoleRegisterForCourse/nbproject/genfiles.properties
build.xml.data.CRC32=4e3f342c
build.xml.script.CRC32=2ee794bd
[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=4e3f342c
nbproject/build-impl.xml.script.CRC32=b5bbdb0c
nbproject/[email protected]
U10A1_OOConsoleRegisterForCourse/nbproject/private/private.properties
compile.on.save=true
user.properties.file=C:\\Users\\omora\\AppData\\Roaming\\NetBeans\\8.1\\build.properties
U10A1_OOConsoleRegisterForCourse/nbproject/private/private.xml
U10A1_OOConsoleRegisterForCourse/nbproject/project.properties
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processor.options=
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# Files in build.classes.dir which should be excluded from distribution jar
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/U10A1_OOConsoleRegisterForCourse.jar
dist.javadoc.dir=${dist.dir}/javadoc
excludes=
includes=**
jar.compress=false
javac.classpath=
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.external.vm=true
javac.processorpath=\
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
main.class=u10a1_ooconsoleregisterforcourse.U10A1_OOConsoleRegisterForCourse
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
U10A1_OOConsoleRegisterForCourse/nbproject/project.xml
org.netbeans.modules.java.j2seproject
U10A1_OOConsoleRegisterForCourse
U10A1_OOConsoleRegisterForCourse/src/u10a1_ooconsoleregisterforcourse/Course.java
U10A1_OOConsoleRegisterForCourse/src/u10a1_ooconsoleregisterforcourse/Course.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package
u10a1_ooconsoleregisterforcourse
;
/**
*
*
@author
omora
*/
public
class
Course
{
private
String
code
=
;
private
int
creditHour
=
0
;
private
boolean
isRegisterdFor
=
false
;
public
Course
(
String
code
,
int
creditHour
){
this
.
code
=
code
;
this
.
creditHour
=
creditHour
;
}
public
void
setCode
(
String
code
){
this
.
code
=
code
;
}
public
String
getCode
()
{
return
this
.
code
;
}
public
void
setCrditHour
(
int
creditHour
)
{
this
.
creditHour
=
creditHour
;
}
public
int
getCreditHour
()
{
return
this
.
creditHour
;
}
public
void
setIsRegisteredFor
(
boolean
trueOrFalse
){
this
.
isRegisterdFor
=
trueOrFalse
;
}
public
boolean
getIsRegisteredFor
()
{
return
this
.
isRegisterdFor
;
}
}
U10A1_OOConsoleRegisterForCourse/src/u10a1_ooconsoleregisterforcourse/U10A1_OOConsoleRegisterForCourse.java
U10A1_OOConsoleRegisterForCourse/src/u10a1_ooconsoleregisterforcourse/U10A1_OOConsoleRegisterForCourse.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package
u10a1_ooconsoleregisterforcourse
;
import
java
.
util
.
Scanner
;
/**
*
*
@author
omora
*/
public
class
U10A1_OOConsoleRegisterForCourse
{
/**
*
@param
args the command line arguments
*/
public
static
void
main
(
String
[]
args
)
{
// TODO code application logic here
System
.
out
.
println
(
Teachers Copy
);
Scanner
input
=
new
Scanner
(
System
.
in
);
//Courses is an array of course objects
//see the Course.java source code for members of Course
Course
[]
courses
=
{
new
Course
(
IT1006
,
6
),
new
Course
(
IT4782
,
3
),
new
Course
(
IT4789
,
3
),
new
Course
(
IT4079
,
6
),
new
Course
(
IT2230
,
3
),
new
Course
(
IT3345
,
3
),
new
Course
(
IT2249
,
6
)
};
//choice is the number selected by the user
int
choice
;
int
totalCredit
=
0
;
String
yesOrNo
=
;
do
{
choice
=
getChoice
(
courses
,
input
);
switch
(
ValidateChoice
(
choice
,
totalCredit
,
courses
))
{
case
-
1
:
System
.
out
.
println
(
**Invalid** - Your selection of
+
choice
+
is not a recognized course.
);
break
;
case
-
2
:
System
.
out
.
println
(
**Invalid** - You have already registerd for this
+
courses
[
choice
-
1
].
getCode
()
+
course.
);
break
;
case
-
3
:
System
.
out
.
println
(
**Invalid** - You can not register for more than 9 credit hours.
);
break
;
case
0
:
System
.
out
.
println
(
Registration Confirmed for course
+
courses
[
choice
-
1
].
getCode
()
);
totalCredit
+=
courses
[
choice
-
1
].
getCreditHour
();
courses
[
choice
-
1
].
setIsRegisteredFor
(
true
);
break
;
}
WriteCurrentRegistration
(
courses
,
totalCredit
);
System
.
out
.
print
(
\nDo you want to try again? (Y|N)? :
);
yesOrNo
=
input
.
next
().
toUpperCase
();
}
while
(
yesOrNo
.
equals
(
Y
));
System
.
out
.
println
(
Thank you for registering with us
);
}
//This method prints out the selection menu to the user in the form of
//[selection number]Course Code (Course Credit Hours)
//from the courses array one per line
//and then prompts the user to make a number selection
public
static
int
getChoice
(
Course
[]
courses
,
Scanner
input
)
{
System
.
out
.
println
(
Please type the number inside the [] to register for a course
);
System
.
out
.
println
(
The number inside the () is the credit hours for the course
);
// TO DO
// loop over the courses array and print out the attributes of its
//objects in the format of
//[selection number]Course Code (Course Credit Hours)
//one per line
System
.
out
.
print
(
Enter your choice :
);
return
(
input
.
nextInt
());
}
//This method validates the user menu selection
//against the given registration business rules
//it returns the following code based on the validation result
// -1 = invalid, unrecognized menu selection
// -2 = invalid, alredy registered for the course
// -3 = invalid, No more than 9 credit hours allowed
// 0 = menu selection is valid
public
static
int
ValidateChoice
(
int
choice
,
int
totalCredit
,
Course
[]
courses
)
{
if
(
choice
<
1
||
choice
>
7
)
return
-
1
;
else
if
(
IsRegisteredBefore
(
choice
,
courses
)
)
return
-
2
;
else
if
(
(
totalCredit
+
courses
[
choice
-
1
].
getCreditHour
())
>
9
)
return
-
3
;
return
0
;
}
//This method checks the courses array of course object to
//see if the course has already been registered for or not
public
static
boolean
IsRegisteredBefore
(
int
choice
,
Course
[]
courses
)
{
for
(
int
i
=
0
;
i
<
courses
.
length
;
i
++
)
if
(
courses
[
choice
-
1
].
getIsRegisteredFor
()
==
true
)
return
true
;
return
false
;
}
//This method prints the current list of registered courses thus far
//from the courses array separated by , and enclosed inside { }
//It also prints the total credit registered for thus far
public
static
void
WriteCurrentRegistration
(
Course
[]
courses
,
int
totalCredit
)
{
System
.
out
.
print
(
Current course registration: {
);
// TO DO
// loop over the courses array, determine which courses are registered
//for thus and print them out in the format of
//{ list of courses separated by , }
System
.
out
.
println
(
}
);
System
.
out
.
println
(
Current registration total credit =
+
totalCredit
);
}
}
Assessment - 7.docx
In this assessment, you will design and code a Java console application that reads in seven integer values and prints out the number of occurrences of each value. The application uses the Java single dimension array construct to implement its functionality.
To start the project in NetBeans, go to the File menu in NetBeans and select New Project. When the New Project dialog box opens, under Categories select Java with Ant, and under Projects select Java Application. Click the Next button, and on the next panel name the project. Click the Finish button, and the Java source code will open in the editing window.
Your program output should look like the sample output provided in the
Count Occurrences in Seven Integers Using Java Single Dimension Arrays Instructions
course file resource. Full instructions for successfully completing this assessment are included in this resource. Use the
Week X Solution Submission Template
.
Your assessment will be scored on the following criteria:
1. Design a program that meets Java single dimensional arrays requirements.
2. Code an application that exercises single array constructs.
3. Test the application and document that testing.
4. Explain the approach taken to develop the application and the major decisions made.
5. Identify relevant fundamental constructs in a submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
cf_week_x_submission_template.docx
IT-FP2249 Assignment Submission Template
Unit 1, Part 1 Assignment Instructions
Name:
Date:
Course: IT-FP2249
Unit:
1
When you submit your assignment, attach the complete, zipped NetBeans project (not just the .java file) to your submission and attach a completed copy of this submission template as a second attachment. (Please do not embed the zip file in this document.)
For u03a1, u06a1, u08a1, and u10a1: Be sure to turn in the zip file with code that you have completed—not the original zip file downloaded from Resources.
Insert here a copy of your *.java source code text that you used here (copy and paste source code here, do not simply insert *.java files):
2
Insert screenshot(s) here showing the result of testing your application as directed by the assignment instructions. (Programs with more than one possible outcome require screen shots to show that the different possible outcomes work as required.)
3
Describe your approach to complete the coding for this assignment and explain the major decisions you made in designing a program that meets the specified requirements.
As part of your explanation, be sure to identify the Java constructs you used that are specific and relevant to your program. Depending on the program, these may include the mechanisms for output, input, selection statements, loops, methods, and so forth. In Units 9 and 10, be sure to discuss the classes used in the application. (Please do not just list Java keywords or snippets of code without indicating why they are important.)
Capella University Proprietary and Confidential 1
Capella Proprietary and Confidential
ShortDoc_Internal.doc
Last updated: 10/8/2021 7:16 PM 2
Count Occurrences in Seven Integers Using Java Single Dimension Arrays.pdf
1
Count Occurrences in Seven Integers Using Java
Single Dimension Arrays
In this assessment, you will design and code a Java console application that reads in seven
integer values and prints out the number of occurrences of each value. The application uses the
Java single dimension array construct to implement its functionality. You can use either the
Toolwire environment or your local Java development environment to complete this
assignment.
The requirements of this application are as follows: The application is to read seven integer
numbers entered by the user from the keyboard. Using Java single dimension arrays, the
application counts the number of occurrences of each of the seven values. The application then
the prints out the number of occurrences of each of the seven values to the screen.
Assume that the user always entered correct information so there is no need to validate user
input in your application.
Use these three input values to test your application: 12 23 44 22 23 22 55.
Successful completion of this assignment will show the correct occurrence count of each of the
seven entered integers when the application is run. Your program output should look like this
sample output:
2
Follow these steps to complete this assignment:
1. Create a NetBeans Java console application project called
“U7A1_NumOfOccurrInSevenInts”.
2. Develop the application to meet the stated requirements.
3. Compile and test your application using the provided input data.
4. Make sure to document the result of your testing by taking screenshots of the result of
running your application similar to the provided sample output. One screenshot is
required for this assignment.
5. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Deliverables
Use the submission template available in the resources
(WeekXSolutionSubmissionTemplate.docx) to complete and submit your deliverables. Your
3
deliverables in the attached submission template should include:
1. Your work (Netbeans project zip file + copy of *.java source code)
2. A screenshot of the result of testing your application. See the examples above.
3. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Requirement - A7.docx
Required Resources
The following resources are required to complete the assessment.
Capella Resources
· Count Occurrences in Seven Integers Using Java Single Dimension Arrays Instructions [PDF].
· Week X Solution Submission Template [DOCX].
Software
For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.
Open-Source Software
· Oracle. (n.d.).
Java SE development kit
(Version 16 or later) [Computer software]. https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
. Download the current version of the Oracle JDK. Install the program.
· Apache Software Foundation. (n.d.).
NetBeans
(Version 12.4) [Computer software]. https://netbeans.apache.org/download/nb124/nb124.html
. Download the installer for NetBeans 12.4 for your operating system. Run the installer.
If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.
SHOW LESS
Suggested Resources
The resources provided here are optional. You may use other resources of your choice to prepare for this assessment however, you will need to ensure that they are appropriate, credible, and valid. The Supplemental Resources and Research Resources, both linked from the left navigation menu in your courseroom, provide additional resources to help support you.
VitalSource Resources
· Liang, Y. D. (2020). Introduction to Java programming and data structures (12th ed.). Pearson. Available in the courseroom via the VitalSource Bookshelf link.
. Chapter 7, Single-Dimensional Arrays, pages 250–280.
Scoring Guide.pdf
Count Occurrences in Seven Integers Using Java Single Dimension Arrays Scoring Guide
CRITERIA NON-PERFORMANCE BASIC PROFICIENT DISTINGUISHED
Design a program that
meets Java single
dimensional arrays
requirements.
Does not design a
program that meets
given specifications.
Designs a program that
partially meets given
specifications.
Designs a
program that
meets Java single
dimensional
arrays
requirements.
Designs a program that meets Java
single dimensional arrays
requirements. Exceeds the given
specifications with appropriate
extensions.
Code an application
that exercises single
array constructs.
Does not code an
application that
exercises single
array constructs.
Partially codes an
application that exercises
single array constructs.
Codes an
application that
exercises single
array constructs.
Codes an application that exercises
single array constructs. Source code
is well organized and well
documented.
Test the application and
document that testing.
Does not test the
application.
Partially tests and
documents the result of
testing, or tests and
documentation are
inaccurate.
Tests the
application and
documents that
testing.
Tests the application and documents
that testing. Provides well-organized,
well-presented documentation of
testing steps.
Explain the approach
taken to develop the
application and the
major decisions made.
Does not explain
the approach taken
to complete the
application or the
major decisions
made.
Partially explains the
approach taken to
complete the application
and the major decisions
made.
Explains the
approach taken to
develop the
application and
the major
decisions made.
Explains the approach taken to
develop the application and the major
decisions made. Self-reflects on the
process, experience, and lessons
learned.
Identify relevant
fundamental constructs
in a submitted program.
Does not identify
constructs in a
submitted program.
Identifies some relevant
fundamental constructs in
a submitted program, or
constructs are not
relevant or specific.
Identifies relevant
fundamental
constructs in a
submitted
program.
Identifies relevant fundamental
constructs in a submitted program,
and explains how they were used.
Communicate
efficiently, effectively,
and in an appropriate
manner for an IT
professional.
Does not
communicate
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently,
effectively, and in an
appropriate manner for an
IT professional; some
errors detract from
meaning.
Communicates
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently, effectively,
and in an appropriate manner for an
IT professional. Writing is well
organized, well formatted, and free of
grammatical and spelling errors.
Assessment 4.docx
In this assessment, you will design and code a Java console application that validates the data entry of a course code (like IT4782) and report back if the course code is valid or not valid. The application uses the Java char and String data types to implement the validation.
To start the project in NetBeans, go to the File menu in NetBeans and select New Project. When the New Project dialog box opens, under Categories select Java with Ant, and under Projects select Java Application. Click the Next button, and on the next panel name the project. Click the Finish button, and the Java source code will open in the editing window.
Your program output should look like the sample output provided in the
Validate User Input Using Java Chars and Strings Instructions
course file resource. Full instructions for successfully completing this assessment are included in this resource. Use the
Week X Solution Submission Template
.
Your assessment will be scored on the following criteria:
1. Design a program that meets char and String processing requirements.
2. Code an application that validates data entry.
3. Test the application and document that testing.
4. Explain the approach taken to complete data validation and the major decisions made.
5. Identify relevant fundamental constructs in a submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
cf_week_x_submission_template.docx
IT-FP2249 Assignment Submission Template
Unit 1, Part 1 Assignment Instructions
Name:
Date:
Course: IT-FP2249
Unit:
1
When you submit your assignment, attach the complete, zipped NetBeans project (not just the .java file) to your submission and attach a completed copy of this submission template as a second attachment. (Please do not embed the zip file in this document.)
For u03a1, u06a1, u08a1, and u10a1: Be sure to turn in the zip file with code that you have completed—not the original zip file downloaded from Resources.
Insert here a copy of your *.java source code text that you used here (copy and paste source code here, do not simply insert *.java files):
2
Insert screenshot(s) here showing the result of testing your application as directed by the assignment instructions. (Programs with more than one possible outcome require screen shots to show that the different possible outcomes work as required.)
3
Describe your approach to complete the coding for this assignment and explain the major decisions you made in designing a program that meets the specified requirements.
As part of your explanation, be sure to identify the Java constructs you used that are specific and relevant to your program. Depending on the program, these may include the mechanisms for output, input, selection statements, loops, methods, and so forth. In Units 9 and 10, be sure to discuss the classes used in the application. (Please do not just list Java keywords or snippets of code without indicating why they are important.)
Capella University Proprietary and Confidential 1
Capella Proprietary and Confidential
ShortDoc_Internal.doc
Last updated: 10/8/2021 7:16 PM 2
Requirement- A4.docx
Required Resources
The following resources are required to complete the assessment.
·
Validate User Input Using Java Chars and Strings Instructions [PDF]
.
·
Week X Solution Submission Template [DOCX]
.
Software
For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.
Open-Source Software
· Oracle. (n.d.).
Java SE development kit
(Version 16 or later) [Computer software]. https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
. Download the current version of the Oracle JDK.
· Apache Software Foundation. (n.d.).
NetBeans
(Version 12.4) [Computer software]. https://netbeans.apache.org/download/nb124/nb124.html
. Download the installer for NetBeans 12.4 for your operating system.
If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.
SHOW LESS
Suggested Resources
The resources provided here are optional. You may use other resources of your choice to prepare for this assessment however, you will need to ensure that they are appropriate, credible, and valid. The Supplemental Resources and Research Resources, both linked from the left navigation menu in your courseroom, provide additional resources to help support you.
VitalSource Resources
· Liang, Y. D. (2020). Introduction to Java programming and data structures (12th ed.). Pearson. Available in the courseroom via the VitalSource Bookshelf link.
. Chapter 4, Mathematical Functions, Characters, and Strings, pages 122–151.
Validate User Input Using Java Chars and Strings Scoring Guide.pdf
Validate User Input Using Java Chars and Strings Scoring Guide
CRITERIA NON-PERFORMANCE BASIC PROFICIENT DISTINGUISHED
Design a program that
meets char and String
processing
requirements.
Does not design a
program that meets
char and String
processing
requirements.
Designs a program that
partially meets given
specifications.
Designs a
program that
meets char and
String processing
requirements.
Designs a program that meets char
and String processing requirements.
Exceeds the given specifications with
appropriate extensions.
Code an application
that validates data
entry.
Does not code an
application that
validates data entry.
Partially codes an
application that validates
data entry.
Codes an
application that
validates data
entry.
Codes an application that validates
data entry. Source code is well
organized and well documented.
Test the application and
document that testing.
Does not test the
application.
Tests the application and
partially documents that
testing, or documentation
is inaccurate or
unsuitable.
Tests the
application and
documents that
testing.
Tests the application and documents
that testing with appropriate
evidence. Provides well-organized,
well-presented documentation of
testing steps.
Explain the approach
taken to complete data
validation and the
major decisions made.
Does not explain
the approach taken
to complete data
validation and the
major decisions
made.
Partially explains the
approach taken to
complete data validation
and the major decisions
made.
Explains the
approach taken to
complete data
validation and the
major decisions
made.
Explains the approach taken to
complete data validation and the
major decisions made. Self-reflects
on the experience and lessons
learned.
Identify relevant
fundamental constructs
in a submitted program.
Does not identify
constructs in a
submitted program.
Identifies some relevant
fundamental constructs in
a submitted program, or
constructs are not
relevant or specific.
Identifies relevant
fundamental
constructs in a
submitted
program.
Identifies relevant fundamental
constructs in a submitted program,
and explains how they were used.
Communicate
efficiently, effectively,
and in an appropriate
manner for an IT
professional.
Does not
communicate
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently,
effectively, and in an
appropriate manner for an
IT professional; some
errors detract from
meaning.
Communicates
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently, effectively,
and in an appropriate manner for an
IT professional. Writing is well
organized, well formatted, and free of
grammatical and spelling errors.
Validate User Input Using Java Chars and Strings.pdf
Validate User Input Using Java Chars and Strings
In this assessment, you will design and code a Java console application that validates the data
entry of a course code (like IT4782) and report back if the course code is valid or not valid. The
application uses the Java char and String data types to implement the validation. You can use
either the Toolwire environment or your local Java development environment to complete this
assignment.
The requirements of this application are as follows: The application is to read a course code
entered by the user from the keyboard. The course code is made of 5 characters and should follow
these rules:
• First character is always an upper case I or a lower case i
• Second character is always an upper case T or a lower case t
• Third, fourth, fifth, and sixth characters are always digits (0-9)
The application then validates the course code against above the rules and prints a message if the
course code is valid or not. If the course code is not valid, the application should print a message
explaining why the course code is not valid.
Use these course codes to test your application:
• IT4782
• IT4782
• OT4782
• it&782
Successful completion of this assignment will show a valid message or an invalid message for the
entered course code. In addition, if the course code is invalid, the application should identify the
reason for the invalidation. Your program output should look like this sample output:
5
Follow these steps to complete this assignment:
1. Create a NetBeans Java console application project called “U4A1_ValidateCourseCode”.
2. Develop the application to meet the stated requirements.
3. Compile and test your application using the provided input data.
4. Make sure to document the result of your testing by taking screenshots of the result of
running your application similar to the provided sample output. Four screenshots are
required for this assignment.
5. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Deliverables
Use the submission template (WeekXSolutionSubmissionTemplate.docx) to complete and
submit your deliverables. Your deliverables in the attached submission template should include:
1. Your work (Netbeans project zip file + copy of *.java source code)
6
2. Screenshots of the result of testing your application. See the examples above.
3. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Your work will be scored on the following criteria:
1. Design a program that meets given specifications.
2. Code an application that validates data entry.
3. Test the application and document testing.
4. Explain the approach taken to complete data validation and the major decisions made.
5. Identify relevant fundamental constructs in submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner as an IT professional.
Assessment 9.docx
In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a specific way.
To start the project in NetBeans, go to the File menu in NetBeans and select New Project. When the New Project dialog box opens, under Categories select Java with Ant, and under Projects select Java Application. Click the Next button, and on the next panel name the project. Click the Finish button, and the Java source code will open in the editing window.
Your program output should look like the sample output provided in the
Define Java Classes and Instantiate Their Objects Instructions
course file resource. Full instructions for successfully completing this assessment are included in this resource. Use the
Week X Solution Submission Template
.
Your assessment will be scored on the following criteria:
1. Design a program that meets basic object-oriented constructs requirements.
2. Code an application that exercises classes and objects.
3. Test the application and document that testing.
4. Explain the approach taken to develop the application and the major decisions made.
5. Identify relevant fundamental constructs in a submitted program.
6. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
cf_week_x_submission_template.docx
IT-FP2249 Assignment Submission Template
Unit 1, Part 1 Assignment Instructions
Name:
Date:
Course: IT-FP2249
Unit:
1
When you submit your assignment, attach the complete, zipped NetBeans project (not just the .java file) to your submission and attach a completed copy of this submission template as a second attachment. (Please do not embed the zip file in this document.)
For u03a1, u06a1, u08a1, and u10a1: Be sure to turn in the zip file with code that you have completed—not the original zip file downloaded from Resources.
Insert here a copy of your *.java source code text that you used here (copy and paste source code here, do not simply insert *.java files):
2
Insert screenshot(s) here showing the result of testing your application as directed by the assignment instructions. (Programs with more than one possible outcome require screen shots to show that the different possible outcomes work as required.)
3
Describe your approach to complete the coding for this assignment and explain the major decisions you made in designing a program that meets the specified requirements.
As part of your explanation, be sure to identify the Java constructs you used that are specific and relevant to your program. Depending on the program, these may include the mechanisms for output, input, selection statements, loops, methods, and so forth. In Units 9 and 10, be sure to discuss the classes used in the application. (Please do not just list Java keywords or snippets of code without indicating why they are important.)
Capella University Proprietary and Confidential 1
Capella Proprietary and Confidential
ShortDoc_Internal.doc
Last updated: 10/8/2021 7:16 PM 2
Define Java Classes and Instantiate Their Objects.pdf
1
Define Java Classes and Instantiate Their Objects
In this assessment, you will design and code a simple Java application that defines a class,
instantiate the class into a number of objects, and prints out the attributes of these objects in a
specific way. You can use either the Toolwire environment or your local Java development
environment to complete this assignment.
The requirements of this application are as follows: The application is to define a Java class
called Course. The Course class has the following attributes:
1. code - a string field to store the course code (e.g. IT1006)
2. creditHours – an int field to store the credit hours of the course (e.g. 6)
The application then instantiates, in order, seven instances (objects) from the Course class and
assigns to each instance the following values:
Order of
instantiation
Course Object code
attribute
Course Object creditHours
attribute
1 IT1006 6
2 IT4782 3
3 IT4789 3
4 IT4079 6
5 IT2230 3
6 IT3345 3
7 IT2249 6
Finally, the application prints out, in the same order as the instantiation order, the attributes of
these instances using this format:
[order of instantiation] Course Code (Course Credit Hours)
Successful completion of this assignment will show the correct order of object instantiation and
the correct attributes of each object when the application is run. Your program output should
look like this sample output:
2
Follow these steps to complete this assignment:
1. Create a NetBeans Java console application project called
U9A1_DefineClassInstantiateObj”.
2. Develop the application to meet the stated requirements.
3. Compile and test your application using the provided input data. Make sure to document
the result of your testing by taking screenshots of the result of running your application
similar to the provided sample output. One screenshot is required for this assignment.
4. Explain your approach you took to complete this assignment and the major decisions
you made. As part of your explanation, be sure to identify the fundamental Java
constructs you used that were specific and relevant to your submitted program.
Deliverables
Use the submission template available in the resources
(WeekXSolutionSubmissionTemplate.docx) to complete and submit your deliverables. Your
deliverables in the submission template should include:
1. Your work (Netbeans project zip file + copy of *.java source code)
2. A screenshot of the result of testing your application. See the examples above.
3. Explain the approach you took to complete this assignment and the major decisions you
made. As part of your explanation, be sure to identify the fundamental Java constructs
you used that were specific and relevant to your submitted program.
Requirement - A9.docx
Required Resources
The following resources are required to complete the assessment.
Capella Resources
· Define Java Classes and Instantiate Their Objects Instructions [PDF].
· Week X Solution Submission Template [DOCX].
Software
For this course, follow the instructions provided through the links below to download and install software or register for an account, as required.
Open-Source Software
· Oracle. (n.d.).
Java SE development kit
(Version 16 or later) [Computer software]. https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
. Download the current version of the Oracle JDK. Install the program.
· Apache Software Foundation. (n.d.).
NetBeans
(Version 12.4) [Computer software]. https://netbeans.apache.org/download/nb124/nb124.html
. Download the installer for NetBeans 12.4 for your operating system. Run the installer.
If you encounter any difficulties in the download and installation process, post a detailed question in the Ask Your Faculty Discussion in the menu dropdown when you click the image of your faculty.
SHOW LESS
Suggested Resources
The resources provided here are optional. You may use other resources of your choice to prepare for this assessment however, you will need to ensure that they are appropriate, credible, and valid. The Supplemental Resources and Research Resources, both linked from the left navigation menu in your courseroom, provide additional resources to help support you.
VitalSource Resources
· Liang, Y. D. (2020). Introduction to Java programming and data structures (12th ed.). Pearson. Available in the courseroom via the VitalSource Bookshelf link.
. Chapter 9, Objects and Classes, pages 324–362.
Scoring Guide.pdf
Define Java Classes and Instantiate Their Objects Scoring Guide
CRITERIA NON-PERFORMANCE BASIC PROFICIENT DISTINGUISHED
Design a program that
meets basic object-
oriented constructs
requirements.
Does not design a
program that meets
given specifications.
Designs a program that
partially meets given
specifications.
Designs a
program that
meets basic
object-oriented
constructs
requirements.
Designs a program that meets basic
object-oriented constructs
requirements. Exceeds the given
specifications with appropriate
extensions.
Code an application
that exercises classes
and objects.
Does not code an
application that
exercises classes
and objects.
Partially codes an
application that exercises
classes and objects.
Codes an
application that
exercises classes
and objects.
Codes an application that exercises
classes and objects. Source code is
well organized and well documented.
Test the application and
document that testing.
Does not test the
application.
Partially tests and
documents the results of
testing, or tests and
documentation are
inaccurate.
Tests the
application and
documents that
testing.
Tests the application and documents
that testing. Provides well-organized,
well-presented documentation of
testing steps.
Explain the approach
taken to develop the
application and the
major decisions made.
Does not explain
the approach taken
to develop the
application and the
major decisions
made.
Partially explains the
approach taken to
develop the application
and the major decisions
made.
Explains the
approach taken to
develop the
application and
the major
decisions made.
Explains the approach taken to
develop the application and the major
decisions made. Self-reflects on the
process, experience, and lessons
learned.
Identify relevant
fundamental constructs
in a submitted program.
Does not identify
constructs in a
submitted program.
Identifies some relevant
fundamental constructs in
a submitted program, or
constructs are not
relevant or specific.
Identifies relevant
fundamental
constructs in a
submitted
program.
Identifies relevant fundamental
constructs in a submitted program,
and explains how they were used.
Communicate
efficiently, effectively,
and in an appropriate
manner for an IT
professional.
Does not
communicate
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently,
effectively, and in an
appropriate manner for an
IT professional; some
errors detract from
meaning.
Communicates
efficiently,
effectively, and in
an appropriate
manner for an IT
professional.
Communicates efficiently, effectively,
and in an appropriate manner for an
IT professional. Writing is well
organized, well formatted, and free of
grammatical and spelling errors.
Syllabus
· Welcome to your Capella University online course, IT-FP2249 – Introduction to Programming with Java.
In this course, you will learn and practice the fundamentals of the Java programming language. You will learn and apply variables, operators, literals, and how to combine them to create expressions. You will study and develop the different types of Java statements like the assignment, selection, and looping statements. You will also apply the Java build-in array data structures in your applications. And you will practice some of Java object-oriented features like defining classes and instantiating them into objects.
Software Preparation and Technology Access
In this course, you will be using software and technology that is needed to complete designated assessments. There is no additional cost for this software and technology. Some software packages will be made available to you at no additional cost through Capella’s subscription with Microsoft, while other software packages are available for free download through open-source licensing.
Capella University requires learners to meet certain minimum computer requirements. Please note that some software required for a course may exceed these minimum requirements. Check the requirements for the software you may need to download and install to make sure it will work on your device. Most software will require a Windows PC. If you use a Mac, refer to Installing a Virtual Environment and Windows on a Mac.
The software and technologies in this course are strongly recommended to support you in completing the course objectives. If you have access to other tools that you believe may still meet the requirements of this course, please discuss your selected alternatives with faculty.
If you use assistive technology or any alternative communication methods to access course content, please contact Disability Services with any access-related questions or to request accommodations.
· Toggle Drawer
Course Competencies
To successfully complete this course, you will be expected to:
1. Explain the responsibilities of a programmer in software development.
2. Identify fundamental programming processes, logic, and constructs.
3. Design simple Java console programs according to specifications.
4. Code Java console applications using foundational Java features.
5. Apply tools and testing for successful program execution.
6. Explain Java program design decisions or strategies to stakeholders or team members.
7. Communicate efficiently, effectively, and in an appropriate manner for an IT professional.
Writing at Capella
Throughout your program, you will develop five core writing skills aligned to the Capella Writing Standards. In addition to the scoring guides that your faculty will use to assess your writing assignments, your faculty may also use the Writing Feedback Tool. The Writing Feedback Tool presents feedback related to Capellas five core writing skills:
· Address assignment Purpose
· Develop strong Organization
· Integrate appropriate Evidence
· Use scholarly Tone
· Develop grammatically sound Sentence Structure
Through use of the Writing Feedback Tool, your faculty will provide you with guidance and resources to target writing skill development. You are encouraged to study the Capella Writing Standards and to incorporate additional Writing Center resources and live support into your writing process.
CATEGORIES
Economics
Nursing
Applied Sciences
Psychology
Science
Management
Computer Science
Human Resource Management
Accounting
Information Systems
English
Anatomy
Operations Management
Sociology
Literature
Education
Business & Finance
Marketing
Engineering
Statistics
Biology
Political Science
Reading
History
Financial markets
Philosophy
Mathematics
Law
Criminal
Architecture and Design
Government
Social Science
World history
Chemistry
Humanities
Business Finance
Writing
Programming
Telecommunications Engineering
Geography
Physics
Spanish
ach
e. Embedded Entrepreneurship
f. Three Social Entrepreneurship Models
g. Social-Founder Identity
h. Micros-enterprise Development
Outcomes
Subset 2. Indigenous Entrepreneurship Approaches (Outside of Canada)
a. Indigenous Australian Entrepreneurs Exami
Calculus
(people influence of
others) processes that you perceived occurs in this specific Institution Select one of the forms of stratification highlighted (focus on inter the intersectionalities
of these three) to reflect and analyze the potential ways these (
American history
Pharmacology
Ancient history
. Also
Numerical analysis
Environmental science
Electrical Engineering
Precalculus
Physiology
Civil Engineering
Electronic Engineering
ness Horizons
Algebra
Geology
Physical chemistry
nt
When considering both O
lassrooms
Civil
Probability
ions
Identify a specific consumer product that you or your family have used for quite some time. This might be a branded smartphone (if you have used several versions over the years)
or the court to consider in its deliberations. Locard’s exchange principle argues that during the commission of a crime
Chemical Engineering
Ecology
aragraphs (meaning 25 sentences or more). Your assignment may be more than 5 paragraphs but not less.
INSTRUCTIONS:
To access the FNU Online Library for journals and articles you can go the FNU library link here:
https://www.fnu.edu/library/
In order to
n that draws upon the theoretical reading to explain and contextualize the design choices. Be sure to directly quote or paraphrase the reading
ce to the vaccine. Your campaign must educate and inform the audience on the benefits but also create for safe and open dialogue. A key metric of your campaign will be the direct increase in numbers.
Key outcomes: The approach that you take must be clear
Mechanical Engineering
Organic chemistry
Geometry
nment
Topic
You will need to pick one topic for your project (5 pts)
Literature search
You will need to perform a literature search for your topic
Geophysics
you been involved with a company doing a redesign of business processes
Communication on Customer Relations. Discuss how two-way communication on social media channels impacts businesses both positively and negatively. Provide any personal examples from your experience
od pressure and hypertension via a community-wide intervention that targets the problem across the lifespan (i.e. includes all ages).
Develop a community-wide intervention to reduce elevated blood pressure and hypertension in the State of Alabama that in
in body of the report
Conclusions
References (8 References Minimum)
*** Words count = 2000 words.
*** In-Text Citations and References using Harvard style.
*** In Task section I’ve chose (Economic issues in overseas contracting)"
Electromagnetism
w or quality improvement; it was just all part of good nursing care. The goal for quality improvement is to monitor patient outcomes using statistics for comparison to standards of care for different diseases
e a 1 to 2 slide Microsoft PowerPoint presentation on the different models of case management. Include speaker notes... .....Describe three different models of case management.
visual representations of information. They can include numbers
SSAY
ame workbook for all 3 milestones. You do not need to download a new copy for Milestones 2 or 3. When you submit Milestone 3
pages):
Provide a description of an existing intervention in Canada
making the appropriate buying decisions in an ethical and professional manner.
Topic: Purchasing and Technology
You read about blockchain ledger technology. Now do some additional research out on the Internet and share your URL with the rest of the class
be aware of which features their competitors are opting to include so the product development teams can design similar or enhanced features to attract more of the market. The more unique
low (The Top Health Industry Trends to Watch in 2015) to assist you with this discussion.
https://youtu.be/fRym_jyuBc0
Next year the $2.8 trillion U.S. healthcare industry will finally begin to look and feel more like the rest of the business wo
evidence-based primary care curriculum. Throughout your nurse practitioner program
Vignette
Understanding Gender Fluidity
Providing Inclusive Quality Care
Affirming Clinical Encounters
Conclusion
References
Nurse Practitioner Knowledge
Mechanics
and word limit is unit as a guide only.
The assessment may be re-attempted on two further occasions (maximum three attempts in total). All assessments must be resubmitted 3 days within receiving your unsatisfactory grade. You must clearly indicate “Re-su
Trigonometry
Article writing
Other
5. June 29
After the components sending to the manufacturing house
1. In 1972 the Furman v. Georgia case resulted in a decision that would put action into motion. Furman was originally sentenced to death because of a murder he committed in Georgia but the court debated whether or not this was a violation of his 8th amend
One of the first conflicts that would need to be investigated would be whether the human service professional followed the responsibility to client ethical standard. While developing a relationship with client it is important to clarify that if danger or
Ethical behavior is a critical topic in the workplace because the impact of it can make or break a business
No matter which type of health care organization
With a direct sale
During the pandemic
Computers are being used to monitor the spread of outbreaks in different areas of the world and with this record
3. Furman v. Georgia is a U.S Supreme Court case that resolves around the Eighth Amendments ban on cruel and unsual punishment in death penalty cases. The Furman v. Georgia case was based on Furman being convicted of murder in Georgia. Furman was caught i
One major ethical conflict that may arise in my investigation is the Responsibility to Client in both Standard 3 and Standard 4 of the Ethical Standards for Human Service Professionals (2015). Making sure we do not disclose information without consent ev
4. Identify two examples of real world problems that you have observed in your personal
Summary & Evaluation: Reference & 188. Academic Search Ultimate
Ethics
We can mention at least one example of how the violation of ethical standards can be prevented. Many organizations promote ethical self-regulation by creating moral codes to help direct their business activities
*DDB is used for the first three years
For example
The inbound logistics for William Instrument refer to purchase components from various electronic firms. During the purchase process William need to consider the quality and price of the components. In this case
4. A U.S. Supreme Court case known as Furman v. Georgia (1972) is a landmark case that involved Eighth Amendment’s ban of unusual and cruel punishment in death penalty cases (Furman v. Georgia (1972)
With covid coming into place
In my opinion
with
Not necessarily all home buyers are the same! When you choose to work with we buy ugly houses Baltimore & nationwide USA
The ability to view ourselves from an unbiased perspective allows us to critically assess our personal strengths and weaknesses. This is an important step in the process of finding the right resources for our personal learning style. Ego and pride can be
· By Day 1 of this week
While you must form your answers to the questions below from our assigned reading material
CliftonLarsonAllen LLP (2013)
5 The family dynamic is awkward at first since the most outgoing and straight forward person in the family in Linda
Urien
The most important benefit of my statistical analysis would be the accuracy with which I interpret the data. The greatest obstacle
From a similar but larger point of view
4 In order to get the entire family to come back for another session I would suggest coming in on a day the restaurant is not open
When seeking to identify a patient’s health condition
After viewing the you tube videos on prayer
Your paper must be at least two pages in length (not counting the title and reference pages)
The word assimilate is negative to me. I believe everyone should learn about a country that they are going to live in. It doesnt mean that they have to believe that everything in America is better than where they came from. It means that they care enough
Data collection
Single Subject Chris is a social worker in a geriatric case management program located in a midsize Northeastern town. She has an MSW and is part of a team of case managers that likes to continuously improve on its practice. The team is currently using an
I would start off with Linda on repeating her options for the child and going over what she is feeling with each option. I would want to find out what she is afraid of. I would avoid asking her any “why” questions because I want her to be in the here an
Summarize the advantages and disadvantages of using an Internet site as means of collecting data for psychological research (Comp 2.1) 25.0\% Summarization of the advantages and disadvantages of using an Internet site as means of collecting data for psych
Identify the type of research used in a chosen study
Compose a 1
Optics
effect relationship becomes more difficult—as the researcher cannot enact total control of another person even in an experimental environment. Social workers serve clients in highly complex real-world environments. Clients often implement recommended inte
I think knowing more about you will allow you to be able to choose the right resources
Be 4 pages in length
soft MB-920 dumps review and documentation and high-quality listing pdf MB-920 braindumps also recommended and approved by Microsoft experts. The practical test
g
One thing you will need to do in college is learn how to find and use references. References support your ideas. College-level work must be supported by research. You are expected to do that for this paper. You will research
Elaborate on any potential confounds or ethical concerns while participating in the psychological study 20.0\% Elaboration on any potential confounds or ethical concerns while participating in the psychological study is missing. Elaboration on any potenti
3 The first thing I would do in the family’s first session is develop a genogram of the family to get an idea of all the individuals who play a major role in Linda’s life. After establishing where each member is in relation to the family
A Health in All Policies approach
Note: The requirements outlined below correspond to the grading criteria in the scoring guide. At a minimum
Chen
Read Connecting Communities and Complexity: A Case Study in Creating the Conditions for Transformational Change
Read Reflections on Cultural Humility
Read A Basic Guide to ABCD Community Organizing
Use the bolded black section and sub-section titles below to organize your paper. For each section
Losinski forwarded the article on a priority basis to Mary Scott
Losinksi wanted details on use of the ED at CGH. He asked the administrative resident