SlideShare a Scribd company logo
1 of 21
PRG 420 All Assignments
For more course tutorials visit
www.prg420.com
PRG 420 Week 1 Individual Analyzing a Simple Java™ Program
(New Syllabus)
PRG 420 Week 1 Coding a Simple “Hello, world!” Java™ Program
(New Syllabus)
PRG 420 Week 2 Analyzing a Program Containing if-then and switch
(New Syllabus)
PRG 420 Week 2 Coding a Program Containing if-then and switch
(New Syllabus)
PRG 420 Week 3 Analyzing a Program Containing Loops (New
Syllabus)
PRG 420 Week 3 Coding a Program Containing Loops (New
Syllabus)
PRG 420 Week 4 Analyzing a Program Containing Arrays (New
Syllabus)
PRG 420 Week 4 Coding a Program Containing an Array (New
Syllabus)
PRG 420 Week 5 Analyzing a Program Containing Exception
Handling (New Syllabus)
PRG 420 Week 5 Coding a Program Containing Exception Handling
(New Syllabus)
==============================================
PRG 420 Week 1 Coding a Simple “Hello, world!”
Java™ Program(New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Coding a Simple “Hello, world!” Java™ Program
Instructions:
Resource:
• PRG 420 Week One Coding Assigment Text File (starter code for
this
assignment that includes placeholders)
For this assignment, you will apply what you learned in analyzing a
simple Java™ program by writing your own Java™ program. The
Java™ program you write should do the following:
• Display a prompt on the console asking the user to type in his or her
first name
• Construct the greeting string "Hello, nameEntered!"
• Display the constructed greeting on the console
Complete this assignment by doing the following:
1. Download the linked text file.
2. Add comments to the code by typing your name and the date in the
multi-line comment header.
==============================================
PRG 420 Week 1 DQ 1
For more course tutorials visit
www.prg420.com
Watch the first and second videos for Week 1. Explain a little about
the Java Virtual Machine, what it executes, how it might be similar to
any other language, and how it is different from a native language,
such as C++.
==============================================
PRG 420 Week 1 DQ 2
For more course tutorials visit
www.prg420.com
Java is a portable language, and being an object-oriented
programming language, it also encourages component reusability.
How does Java achieve these two important features? How are these
features desirable in modern software engineering?
==============================================
PRG 420 Week 1 DQ 3
For more course tutorials visit
www.prg420.com
You are a bank manager and you are helping a new bank teller
understand the kind of accounts the bank offers. If a customer comes
in asking to open a new savings account, the teller needs to ask what
kind of account--passbook savings or certificate of deposit--the
customer would like to open. Remind the customer that all accounts
with our bank are insured by the FDIC. You should explain that all
accounts earn some interest; a savings account’s interest is
compounded monthly. You should assign a unique account number
after accepting the customer’s initial deposit. If the customer chooses
to receive statements electronically, the system will send an e-mail
with a monthly statement; if the customer chooses not to, then a paper
statement will be sent by mail quarterly. If savings account is a class,
give an example of each of the following as it relates to that savings
account. Explain your reasoning behind your example. o Superclass o
Subclass o Attribute o Method o Instance (object) o Encapsulation
==============================================
PRG 420 Week 1 Individual Analyzing a Simple
Java™ Program (New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Analyzing a Simple Java™ Program
Instructions:
Resource:
• PRG 420 Week One Analyze Assignment Text File
Analyzing Java™ code--that is, reading and predicting the outcome of
Java™ code, given one or more inputs--is an essential skill. The
ability
to analyze code allows you to learn from example code and tutorials.
It
also allows you to write and debug your own Java™ code.
For this assignment, you will be analyzing the Java™ code in the
linked
text file.
==============================================
PRG 420 Week 1 Individual Assignment Hello
world
For more course tutorials visit
www.prg420.com
Create a program in Java™ that displays “Hello world!” Take a
screen shot that shows the program’s successful compilation and
execution. Then submit your program along with the screen shot.
==============================================
PRG 420 Week 2 Analyzing a Program Containing
if-then and switch(New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Analyzing a Program Containing if-then and switch
Instructions:
Resource:
• PRG 420 Week Two Analyze Assignment Text File
The ability to read through Java™ code and predict the results, given
specific inputs, is an extremely useful skill.
For this assignment, you will be analyzing the Java™ code in the
linked
text file, and predicting the results given specific input.
Carefully read through the code line by line, then answer the
following
questions in a Microsoft® Word document:
1. What is the output of the program as it is written?
2. What would the output of the program be if you assigned I
AmHappy
to false, num to 35, and numDayOf PRG 420 Week to 5?
3. What would the output of the program be if you assigned the
I AmHappy to 5, num to 50, and numDayOf PRG 420 Week to 8?
Submit your completed Word document using the Assignment Files
tab.
Supporting Material: PRG 420 Week Two Analyze Assignment Text
File
==============================================
PRG 420 Week 2 Coding a Program Containing if-
then and switch(New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Coding a Program Containing if-then and switch
Instructions:
Resources:
• PRG 420 Week Two Coding Assigment Text File (starter code for
this
assignment that includes placeholders)
• PRG 420 Week Two Recommended Activity Text File (examples of
how to
code a switch statement, an if-then-else statement, and how to
construct a string to display text onscreen)
For this assignment, you will apply what you learned in analyzing
Java™ code so far in this course by writing your own Java™
program.
The Java™ program you write should do the following:
• Accept user input that represents the number of sides in a polygon.
Note: The code to do this is already written for you.
• If input value is not between 3 and 5, display an informative error
message
==============================================
PRG 420 Week 2 DQ 1
For more course tutorials visit
www.prg420.com
Please watch the first three videos for Week 2 (around 40 minutes).
Explain how an outside class may be given access to find the value of
a private instance variable, or to change the value of a private instance
variable. Why does this add value to your program?
==============================================
PRG 420 Week 2 DQ 2
For more course tutorials visit
www.prg420.com
What are the three types of errors that you can encounter in a Java™
program? Describe them, and explain how you would minimize the
errors. What are some examples of errors that you have seen before?
==============================================
PRG 420 Week 2 DQ 3
For more course tutorials visit
www.prg420.com
A class is a blueprint for an object. A class may have a default
constructor, a constructor with arguments, accessor methods, mutator
methods, public fields, and private fields. Choose a category (such as
animal, vehicle, and so on) and describe how you would design a
class for it.
==============================================
PRG 420 Week 2 Individual Assignment Netbeans
Project (annual compensation)
For more course tutorials visit
www.prg420.com
Write a Java™ application using NetBeans™ Integrated Development
Environment (IDE) that calculates the total annual compensation of a
salesperson. Consider the following factors:
A salesperson will earn a fixed salary of $50,000
A salesperson will also receive a commission as a sales incentive.
Commission is a percentage of the salesperson’s annual sales. The
current commission is 5 % of total sales.
The total annual compensation is the fixed salary plus the commission
earned.
The Java™ application should meet these technical requirements:
The application should have at least one class, in addition to the
application’s controlling class (a controlling class is where the main
function resides).
There should be proper documentation in the source code.
The application should ask the user to enter annual sales, and it should
display the total annual compensation.
==============================================
PRG 420 Week 3 Analyzing a Program Containing
Loops(New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Analyzing a Program Containing Loops
Instructions:
Resource:
• PRG 420 Week Three Analyze Assignment Text File
For this assignment, you will be analyzing the Java™ code in the
linked
PRG 420 Week Three Analyze Assignment Text File, and predicting
the results.
You will also examine both the code and the output for
inconsistencies
And clarity. This Java™ code includes examples of for, while, and do
while
Loops.
Carefully read through the code line by line, then answer the
following
questions in a Microsoft® Word document:
1. What is the output of the program as it is written?
2. What improvement(s) could be made to this code to make the
output clearer or more accurate, or to make the code easier to
==============================================
PRG 420 Week 3 Coding a Program Containing
Loops(New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Coding a Program Containing Loops
Instructions:
Resource:
• PRG 420 Week Three Coding Assignment Text File (starter code for
this
assignment that includes placeholders)
For this assignment, you will apply what you learned in analyzing for,
while, and do-while loops by writing these statements yourself. The
Java™ program you write should do the following:
• Display a pyramid of asterisks onscreen (i.e., a nested for loop)
• Display the integers 10 to 1 in decreasing order, one number per line
(i.e., a while/do-whlie loop)
• Add 7 until the sum becomes greater than 157, at which point the
program should display both the sum and the number of 7s added
Complete this assignment by doing the following:
1. Download the linked PRG 420 Week Three Coding Assignment
Text File.
2. Add comments to the code by typing your name and the date in the
multi-line comment header.
==============================================
PRG 420 Week 3 DQ 1
For more course tutorials visit
www.prg420.com
Please watch the first and the fifth (next to the last) videos for Week 3
(feel free to use the transcripts, too!) . Tell me about the similarities
between the conditionals in if statements and the conditionals in while
statements.
==============================================
PRG 420 Week 3 DQ 2
For more course tutorials visit
www.prg420.com
Convert the following program from for loop to while loop. class
ArithmeticProgression { public static void main (String [] args) { int
sum = 0; for (int i = 1; i <= 1000; i++) { sum = sum + i;
System.out.println(Integer.toString(sum)); } } }
==============================================
PRG 420 Week 3 DQ 3
For more course tutorials visit
www.prg420.com
There are 3 kinds of loops—for loop, while loop, and do while loop.
Under which circumstances would each kind of loop be more
appropriate? Explain your answers using specific examples.
==============================================
PRG 420 Week 3 DQ 4
For more course tutorials visit
www.prg420.com
Consider the following conditions: CONDITION 1: while ( !(cChoice
== 'Q' || cChoice == 'q') ) CONDITION 2: while ( cChoice != 'Q' ||
cChoice != 'q' ) Do Conditions 1 and 2 give the same result? What
tool or technique would you use to explain the result?
==============================================
PRG 420 Week 3 Individual Assignment Netbeans
Project (annual compensation with commission)
For more course tutorials visit
www.prg420.com
Modify the Week Two Java™ application using Java™ NetBeans™
IDE to meet these additional and changed business requirements:
The company has recently changed its total annual compensation
policy to improve sales.
A salesperson will continue to earn a fixed salary of $50,000. The
current sales target for every salesperson is $120,000.
The sales incentive will only start when 80% of the sales target is met.
The current commission is 5% of total sales.
If a salesperson exceeds the sales target, the commission will increase
based on an acceleration factor. The acceleration factor is 1.5.
The application should ask the user to enter annual sales, and it should
display the total annual compensation.
The application should also display a table of potential total annual
compensation that the salesperson could have earned, in $5000
increments above the salesperson’s annual sales, until it reaches 50%
above the salesperson’s annual sales.
Sample Table: Assuming a total annual sales of $100,000, the table
would look like this:
==============================================
PRG 420 Week 4 Analyzing a Program Containing
Arrays(New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Analyzing a Program Containing Arrays
Instructions:
Resource:
• PRG 420 Week Four Analyze Assignment Text File
The ability to read through Java™ code and predict the results, given
specific inputs, is an extremely useful skill.
For this assignment, you will be analyzing the Java™ code in the
linked
PRG 420 Week Four Analyze Assignment Text File, and answering
questions
about the array that appears in the code.
Carefully read through the code line by line, then answer the
following
questions in a Microsoft® Word document:
==============================================
PRG 420 Week 4 Coding a Program Containing an
Array(New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Coding a Program Containing an Array
Instructions:
Resource:
• PRG 420 Week Four Coding Assigment Text File (starter code for
this
assignment that includes placeholders)
For this assignment, you will apply what you learned in analyzing a
simple Java™ program by writing your own Java™ program that
creates and accesses an array of integers. The Java™ program you
write should do the following:
• Create an array to hold 10 integers
• Ask the user for an integer. Note: This code has already been written
for you.
• Populate the array. Note: The first element should be the integer
==============================================
PRG 420 Week 4 DQ 1
For more course tutorials visit
www.prg420.com
Assuming you want an array (named many) of seven ints what would
be the easiest way to write the code if you wanted many to contain all
zeros? What if you wanted many to contain a selection of seven
values, that were not all zeros? What would be the subscripts of all
the elements of many?
==============================================
PRG 420 Week 4 DQ 2
For more course tutorials visit
www.prg420.com
What is the difference between arrays and ArrayList? What are the
advantages and disadvantages of an ArrayList, and when should you
use an ArrayList over a simple array?
==============================================
PRG 420 Week 4 DQ 3
For more course tutorials visit
www.prg420.com
What is the difference between string and StringBuilder? What are the
advantages and disadvantages of a StringBuilder, and when should
you use a StringBuilder over a simple String?
==============================================
PRG 420 Week 4 Individual Assignment Netbeans
Project (annual compensation comparison)
For more course tutorials visit
www.prg420.com
Modify the Week Three Java™ application using Java™ NetBeans™
IDE to meet these additional and changed business requirements:
The application will now compare the total annual compensation of at
least two salespersons.
It will calculate the additional amount of sales that each salesperson
must achieve to match or exceed the higher of the two earners.
The application should ask for the name of each salesperson being
compared.
The Java™ application should also meet these technical requirements:
The application should have at least one class, in addition to the
application’s controlling class.
The source code must demonstrate the use of Array or ArrayList.
There should be proper documentation in the source code.
==============================================
PRG 420 Week 5 Analyzing a Program Containing
Exception Handling(New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Analyzing a Program Containing Exception Handling
Instructions:
Resource:
• PRG 420 Week Five Analyze Assignment Text File
For this assignment, you will be analyzing the code in the linked PRG
420 Week
Five Analyze Assignment Text File. This program contains exception
handling code. You will be evaluating the code and using what you
learned in this PRG 420 Week's readings to predict the results based
on the
program as written, as well as based on changing the value of a
specific variable.
Carefully read through the code line by line, then answer the
following
questions in a Microsoft® Word document:
1. What are the results of the program as written?
2. What results would the program produce if you changed the value
of
a from 0 to 3?
Submit your completed Word document using the Assignment Files
tab.
Supporting Material: PRG 420 Week Five Analyze Assignment Text
File
==============================================
PRG 420 Week 5 Coding a Program Containing
Exception Handling(New Syllabus)
For more course tutorials visit
www.prg420.com
Individual: Coding a Program Containing Exception Handling
Instructions:
Resource:
• PRG 420 Week Five Coding Assignment Text File (starter code for
this
assignment that includes placeholders)
For this assignment, you will apply what you learned in analyzing a
simple Java™ program by writing your own Java™ program. The
Java™ program you write should do the following:
• Organize the code capable of throwing an exception of type
ParseException as a try block.
• Include a catch block to handle a ParseException error thrown by
the
try block.
• Include a hard-coded error that results in a ParseException to prove
that the code can catch and handle this type of exception.
Complete this assignment by doing the following:
1. Download the linked PRG 420 Week Five Coding Assignment
Text File.
2. Add comments to the code by typing your name and the date in the
==============================================
PRG 420 Week 5 DQ 1
For more course tutorials visit
www.prg420.com
Please explain one use for a static variable in a class. Please explain
how you might use one static method ( not main() ) in a class.
==============================================
PRG 420 Week 5 DQ 2
For more course tutorials visit
www.prg420.com
In your opinion, what are the three biggest challenges in planning and
designing a solution for a programming problem? What can you do to
overcome these challenges? How would you apply these techniques to
the programs in this class?
==============================================
PRG 420 Week 5 DQ 3
For more course tutorials visit
www.prg420.com
Using an example from your work or daily life, describe an "is-a"
relationship. Why is an "is-a" relationship important when designing
an inheritance between classes?
==============================================

More Related Content

What's hot

PRG 420 Massive success / tutorialrank.com
PRG 420 Massive success / tutorialrank.comPRG 420 Massive success / tutorialrank.com
PRG 420 Massive success / tutorialrank.comBromleyz1
 
Prg 420 Enhance teaching / snaptutorial.com
Prg 420 Enhance teaching / snaptutorial.comPrg 420 Enhance teaching / snaptutorial.com
Prg 420 Enhance teaching / snaptutorial.comBaileya28
 
00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introduction00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introductionmaznabili
 
PRG/420 ENTIRE CLASS UOP TUTORIALS
PRG/420 ENTIRE CLASS UOP TUTORIALSPRG/420 ENTIRE CLASS UOP TUTORIALS
PRG/420 ENTIRE CLASS UOP TUTORIALSSharon Reynolds
 
PRG/420 ENTIRE CLASS UOP TUTORIALS
PRG/420 ENTIRE CLASS UOP TUTORIALSPRG/420 ENTIRE CLASS UOP TUTORIALS
PRG/420 ENTIRE CLASS UOP TUTORIALSSharon Reynolds
 
Scripting In Java
Scripting In JavaScripting In Java
Scripting In JavaLars Gregori
 
Reoprt on indutrial training
Reoprt on indutrial trainingReoprt on indutrial training
Reoprt on indutrial trainingPratikKhodwe1
 
Java defining classes
Java defining classes Java defining classes
Java defining classes Mehdi Ali Soltani
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newuopassignment
 
A journey to_be_a_software_craftsman
A journey to_be_a_software_craftsmanA journey to_be_a_software_craftsman
A journey to_be_a_software_craftsmanJaehoon Oh
 
TDD vs. ATDD - What, Why, Which, When & Where
TDD vs. ATDD - What, Why, Which, When & WhereTDD vs. ATDD - What, Why, Which, When & Where
TDD vs. ATDD - What, Why, Which, When & WhereDaniel Davis
 
Agile_goa_2013_clean_code_tdd
Agile_goa_2013_clean_code_tddAgile_goa_2013_clean_code_tdd
Agile_goa_2013_clean_code_tddSrinivasa GV
 
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...Edureka!
 
Applying Anti-Reversing Techniques to Java Bytecode
Applying Anti-Reversing Techniques to Java BytecodeApplying Anti-Reversing Techniques to Java Bytecode
Applying Anti-Reversing Techniques to Java BytecodeTeodoro Cipresso
 
Beyond Testing: Specs and Behavior Driven Development
Beyond Testing: Specs and Behavior  Driven DevelopmentBeyond Testing: Specs and Behavior  Driven Development
Beyond Testing: Specs and Behavior Driven DevelopmentRabble .
 
Reversing and Patching Java Bytecode
Reversing and Patching Java BytecodeReversing and Patching Java Bytecode
Reversing and Patching Java BytecodeTeodoro Cipresso
 

What's hot (17)

PRG 420 Massive success / tutorialrank.com
PRG 420 Massive success / tutorialrank.comPRG 420 Massive success / tutorialrank.com
PRG 420 Massive success / tutorialrank.com
 
Prg 420 Enhance teaching / snaptutorial.com
Prg 420 Enhance teaching / snaptutorial.comPrg 420 Enhance teaching / snaptutorial.com
Prg 420 Enhance teaching / snaptutorial.com
 
00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introduction00 Fundamentals of csharp course introduction
00 Fundamentals of csharp course introduction
 
PRG/420 ENTIRE CLASS UOP TUTORIALS
PRG/420 ENTIRE CLASS UOP TUTORIALSPRG/420 ENTIRE CLASS UOP TUTORIALS
PRG/420 ENTIRE CLASS UOP TUTORIALS
 
PRG/420 ENTIRE CLASS UOP TUTORIALS
PRG/420 ENTIRE CLASS UOP TUTORIALSPRG/420 ENTIRE CLASS UOP TUTORIALS
PRG/420 ENTIRE CLASS UOP TUTORIALS
 
Scripting In Java
Scripting In JavaScripting In Java
Scripting In Java
 
Reoprt on indutrial training
Reoprt on indutrial trainingReoprt on indutrial training
Reoprt on indutrial training
 
3350703
33507033350703
3350703
 
Java defining classes
Java defining classes Java defining classes
Java defining classes
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
A journey to_be_a_software_craftsman
A journey to_be_a_software_craftsmanA journey to_be_a_software_craftsman
A journey to_be_a_software_craftsman
 
TDD vs. ATDD - What, Why, Which, When & Where
TDD vs. ATDD - What, Why, Which, When & WhereTDD vs. ATDD - What, Why, Which, When & Where
TDD vs. ATDD - What, Why, Which, When & Where
 
Agile_goa_2013_clean_code_tdd
Agile_goa_2013_clean_code_tddAgile_goa_2013_clean_code_tdd
Agile_goa_2013_clean_code_tdd
 
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...
 
Applying Anti-Reversing Techniques to Java Bytecode
Applying Anti-Reversing Techniques to Java BytecodeApplying Anti-Reversing Techniques to Java Bytecode
Applying Anti-Reversing Techniques to Java Bytecode
 
Beyond Testing: Specs and Behavior Driven Development
Beyond Testing: Specs and Behavior  Driven DevelopmentBeyond Testing: Specs and Behavior  Driven Development
Beyond Testing: Specs and Behavior Driven Development
 
Reversing and Patching Java Bytecode
Reversing and Patching Java BytecodeReversing and Patching Java Bytecode
Reversing and Patching Java Bytecode
 

Similar to PRG 420 Wonderful Education--prg420.com

PRG 420 Inspiring Innovation--prg420.com
PRG 420 Inspiring Innovation--prg420.comPRG 420 Inspiring Innovation--prg420.com
PRG 420 Inspiring Innovation--prg420.comkopiko112
 
PRG 420 NERD Inspiring Innovation--prg420nerd.com
PRG 420 NERD Inspiring Innovation--prg420nerd.comPRG 420 NERD Inspiring Innovation--prg420nerd.com
PRG 420 NERD Inspiring Innovation--prg420nerd.comclaric78
 
Prg 420 focus dreams prg420.com
Prg 420 focus dreams   prg420.comPrg 420 focus dreams   prg420.com
Prg 420 focus dreams prg420.comchandika6
 
PRG 420 Effective Communication - snaptutorial.com
PRG 420 Effective Communication - snaptutorial.comPRG 420 Effective Communication - snaptutorial.com
PRG 420 Effective Communication - snaptutorial.comdonaldzs37
 
PRG 420 Achievement Education--prg420.com
 PRG 420 Achievement Education--prg420.com PRG 420 Achievement Education--prg420.com
PRG 420 Achievement Education--prg420.comannebronte97
 
Prg 420 education changes / sellfy.com
Prg 420 education changes / sellfy.comPrg 420 education changes / sellfy.com
Prg 420 education changes / sellfy.comnafiana
 
PRG 420 Entire Course NEW
PRG 420 Entire Course NEWPRG 420 Entire Course NEW
PRG 420 Entire Course NEWshyamuopuoptwelve
 
PRG 421 Creative and Effective/newtonhelp.com
PRG 421 Creative and Effective/newtonhelp.comPRG 421 Creative and Effective/newtonhelp.com
PRG 421 Creative and Effective/newtonhelp.commyblue101
 
PRG 421 Extraordinary Life/newtonhelp.com 
PRG 421 Extraordinary Life/newtonhelp.com PRG 421 Extraordinary Life/newtonhelp.com 
PRG 421 Extraordinary Life/newtonhelp.com myblue41
 
PRG 420 NERD Redefined Education--prg420nerd.com
PRG 420 NERD Redefined Education--prg420nerd.comPRG 420 NERD Redefined Education--prg420nerd.com
PRG 420 NERD Redefined Education--prg420nerd.comclaric213
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newshyaminfo16
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newlroselyn
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newdixonbakerr
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newshyaminfo40
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newcharlesangles123
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newchanduruc123
 
Prg 421 guide focus dreams prg421guide.com
Prg 421 guide focus dreams   prg421guide.comPrg 421 guide focus dreams   prg421guide.com
Prg 421 guide focus dreams prg421guide.comchandika6
 
PRG 421 Massive success / tutorialrank.com
PRG 421 Massive success / tutorialrank.comPRG 421 Massive success / tutorialrank.com
PRG 421 Massive success / tutorialrank.comBromleyz1
 
PRG 421 Inspiring Innovation / tutorialrank.com
PRG 421 Inspiring Innovation / tutorialrank.comPRG 421 Inspiring Innovation / tutorialrank.com
PRG 421 Inspiring Innovation / tutorialrank.comBromleyz24
 
PRG 421 Education Specialist / snaptutorial.com
PRG 421 Education Specialist / snaptutorial.comPRG 421 Education Specialist / snaptutorial.com
PRG 421 Education Specialist / snaptutorial.comMcdonaldRyan108
 

Similar to PRG 420 Wonderful Education--prg420.com (20)

PRG 420 Inspiring Innovation--prg420.com
PRG 420 Inspiring Innovation--prg420.comPRG 420 Inspiring Innovation--prg420.com
PRG 420 Inspiring Innovation--prg420.com
 
PRG 420 NERD Inspiring Innovation--prg420nerd.com
PRG 420 NERD Inspiring Innovation--prg420nerd.comPRG 420 NERD Inspiring Innovation--prg420nerd.com
PRG 420 NERD Inspiring Innovation--prg420nerd.com
 
Prg 420 focus dreams prg420.com
Prg 420 focus dreams   prg420.comPrg 420 focus dreams   prg420.com
Prg 420 focus dreams prg420.com
 
PRG 420 Effective Communication - snaptutorial.com
PRG 420 Effective Communication - snaptutorial.comPRG 420 Effective Communication - snaptutorial.com
PRG 420 Effective Communication - snaptutorial.com
 
PRG 420 Achievement Education--prg420.com
 PRG 420 Achievement Education--prg420.com PRG 420 Achievement Education--prg420.com
PRG 420 Achievement Education--prg420.com
 
Prg 420 education changes / sellfy.com
Prg 420 education changes / sellfy.comPrg 420 education changes / sellfy.com
Prg 420 education changes / sellfy.com
 
PRG 420 Entire Course NEW
PRG 420 Entire Course NEWPRG 420 Entire Course NEW
PRG 420 Entire Course NEW
 
PRG 421 Creative and Effective/newtonhelp.com
PRG 421 Creative and Effective/newtonhelp.comPRG 421 Creative and Effective/newtonhelp.com
PRG 421 Creative and Effective/newtonhelp.com
 
PRG 421 Extraordinary Life/newtonhelp.com 
PRG 421 Extraordinary Life/newtonhelp.com PRG 421 Extraordinary Life/newtonhelp.com 
PRG 421 Extraordinary Life/newtonhelp.com 
 
PRG 420 NERD Redefined Education--prg420nerd.com
PRG 420 NERD Redefined Education--prg420nerd.comPRG 420 NERD Redefined Education--prg420nerd.com
PRG 420 NERD Redefined Education--prg420nerd.com
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
Prg 421 guide focus dreams prg421guide.com
Prg 421 guide focus dreams   prg421guide.comPrg 421 guide focus dreams   prg421guide.com
Prg 421 guide focus dreams prg421guide.com
 
PRG 421 Massive success / tutorialrank.com
PRG 421 Massive success / tutorialrank.comPRG 421 Massive success / tutorialrank.com
PRG 421 Massive success / tutorialrank.com
 
PRG 421 Inspiring Innovation / tutorialrank.com
PRG 421 Inspiring Innovation / tutorialrank.comPRG 421 Inspiring Innovation / tutorialrank.com
PRG 421 Inspiring Innovation / tutorialrank.com
 
PRG 421 Education Specialist / snaptutorial.com
PRG 421 Education Specialist / snaptutorial.comPRG 421 Education Specialist / snaptutorial.com
PRG 421 Education Specialist / snaptutorial.com
 

Recently uploaded

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 

PRG 420 Wonderful Education--prg420.com

  • 1. PRG 420 All Assignments For more course tutorials visit www.prg420.com PRG 420 Week 1 Individual Analyzing a Simple Java™ Program (New Syllabus) PRG 420 Week 1 Coding a Simple “Hello, world!” Java™ Program (New Syllabus) PRG 420 Week 2 Analyzing a Program Containing if-then and switch (New Syllabus) PRG 420 Week 2 Coding a Program Containing if-then and switch (New Syllabus) PRG 420 Week 3 Analyzing a Program Containing Loops (New Syllabus) PRG 420 Week 3 Coding a Program Containing Loops (New Syllabus) PRG 420 Week 4 Analyzing a Program Containing Arrays (New Syllabus) PRG 420 Week 4 Coding a Program Containing an Array (New Syllabus) PRG 420 Week 5 Analyzing a Program Containing Exception Handling (New Syllabus) PRG 420 Week 5 Coding a Program Containing Exception Handling (New Syllabus) ==============================================
  • 2. PRG 420 Week 1 Coding a Simple “Hello, world!” Java™ Program(New Syllabus) For more course tutorials visit www.prg420.com Individual: Coding a Simple “Hello, world!” Java™ Program Instructions: Resource: • PRG 420 Week One Coding Assigment Text File (starter code for this assignment that includes placeholders) For this assignment, you will apply what you learned in analyzing a simple Java™ program by writing your own Java™ program. The Java™ program you write should do the following: • Display a prompt on the console asking the user to type in his or her first name • Construct the greeting string "Hello, nameEntered!" • Display the constructed greeting on the console Complete this assignment by doing the following: 1. Download the linked text file. 2. Add comments to the code by typing your name and the date in the multi-line comment header.
  • 3. ============================================== PRG 420 Week 1 DQ 1 For more course tutorials visit www.prg420.com Watch the first and second videos for Week 1. Explain a little about the Java Virtual Machine, what it executes, how it might be similar to any other language, and how it is different from a native language, such as C++. ============================================== PRG 420 Week 1 DQ 2 For more course tutorials visit www.prg420.com Java is a portable language, and being an object-oriented programming language, it also encourages component reusability. How does Java achieve these two important features? How are these features desirable in modern software engineering? ============================================== PRG 420 Week 1 DQ 3 For more course tutorials visit www.prg420.com You are a bank manager and you are helping a new bank teller understand the kind of accounts the bank offers. If a customer comes
  • 4. in asking to open a new savings account, the teller needs to ask what kind of account--passbook savings or certificate of deposit--the customer would like to open. Remind the customer that all accounts with our bank are insured by the FDIC. You should explain that all accounts earn some interest; a savings account’s interest is compounded monthly. You should assign a unique account number after accepting the customer’s initial deposit. If the customer chooses to receive statements electronically, the system will send an e-mail with a monthly statement; if the customer chooses not to, then a paper statement will be sent by mail quarterly. If savings account is a class, give an example of each of the following as it relates to that savings account. Explain your reasoning behind your example. o Superclass o Subclass o Attribute o Method o Instance (object) o Encapsulation ============================================== PRG 420 Week 1 Individual Analyzing a Simple Java™ Program (New Syllabus) For more course tutorials visit www.prg420.com Individual: Analyzing a Simple Java™ Program Instructions: Resource: • PRG 420 Week One Analyze Assignment Text File Analyzing Java™ code--that is, reading and predicting the outcome of Java™ code, given one or more inputs--is an essential skill. The ability to analyze code allows you to learn from example code and tutorials. It
  • 5. also allows you to write and debug your own Java™ code. For this assignment, you will be analyzing the Java™ code in the linked text file. ============================================== PRG 420 Week 1 Individual Assignment Hello world For more course tutorials visit www.prg420.com Create a program in Java™ that displays “Hello world!” Take a screen shot that shows the program’s successful compilation and execution. Then submit your program along with the screen shot. ============================================== PRG 420 Week 2 Analyzing a Program Containing if-then and switch(New Syllabus) For more course tutorials visit www.prg420.com Individual: Analyzing a Program Containing if-then and switch Instructions: Resource:
  • 6. • PRG 420 Week Two Analyze Assignment Text File The ability to read through Java™ code and predict the results, given specific inputs, is an extremely useful skill. For this assignment, you will be analyzing the Java™ code in the linked text file, and predicting the results given specific input. Carefully read through the code line by line, then answer the following questions in a Microsoft® Word document: 1. What is the output of the program as it is written? 2. What would the output of the program be if you assigned I AmHappy to false, num to 35, and numDayOf PRG 420 Week to 5? 3. What would the output of the program be if you assigned the I AmHappy to 5, num to 50, and numDayOf PRG 420 Week to 8? Submit your completed Word document using the Assignment Files tab. Supporting Material: PRG 420 Week Two Analyze Assignment Text File ============================================== PRG 420 Week 2 Coding a Program Containing if- then and switch(New Syllabus) For more course tutorials visit
  • 7. www.prg420.com Individual: Coding a Program Containing if-then and switch Instructions: Resources: • PRG 420 Week Two Coding Assigment Text File (starter code for this assignment that includes placeholders) • PRG 420 Week Two Recommended Activity Text File (examples of how to code a switch statement, an if-then-else statement, and how to construct a string to display text onscreen) For this assignment, you will apply what you learned in analyzing Java™ code so far in this course by writing your own Java™ program. The Java™ program you write should do the following: • Accept user input that represents the number of sides in a polygon. Note: The code to do this is already written for you. • If input value is not between 3 and 5, display an informative error message ============================================== PRG 420 Week 2 DQ 1 For more course tutorials visit
  • 8. www.prg420.com Please watch the first three videos for Week 2 (around 40 minutes). Explain how an outside class may be given access to find the value of a private instance variable, or to change the value of a private instance variable. Why does this add value to your program? ============================================== PRG 420 Week 2 DQ 2 For more course tutorials visit www.prg420.com What are the three types of errors that you can encounter in a Java™ program? Describe them, and explain how you would minimize the errors. What are some examples of errors that you have seen before? ============================================== PRG 420 Week 2 DQ 3 For more course tutorials visit www.prg420.com A class is a blueprint for an object. A class may have a default constructor, a constructor with arguments, accessor methods, mutator methods, public fields, and private fields. Choose a category (such as animal, vehicle, and so on) and describe how you would design a class for it. ==============================================
  • 9. PRG 420 Week 2 Individual Assignment Netbeans Project (annual compensation) For more course tutorials visit www.prg420.com Write a Java™ application using NetBeans™ Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn a fixed salary of $50,000 A salesperson will also receive a commission as a sales incentive. Commission is a percentage of the salesperson’s annual sales. The current commission is 5 % of total sales. The total annual compensation is the fixed salary plus the commission earned. The Java™ application should meet these technical requirements: The application should have at least one class, in addition to the application’s controlling class (a controlling class is where the main function resides). There should be proper documentation in the source code. The application should ask the user to enter annual sales, and it should display the total annual compensation. ============================================== PRG 420 Week 3 Analyzing a Program Containing Loops(New Syllabus) For more course tutorials visit
  • 10. www.prg420.com Individual: Analyzing a Program Containing Loops Instructions: Resource: • PRG 420 Week Three Analyze Assignment Text File For this assignment, you will be analyzing the Java™ code in the linked PRG 420 Week Three Analyze Assignment Text File, and predicting the results. You will also examine both the code and the output for inconsistencies And clarity. This Java™ code includes examples of for, while, and do while Loops. Carefully read through the code line by line, then answer the following questions in a Microsoft® Word document: 1. What is the output of the program as it is written? 2. What improvement(s) could be made to this code to make the output clearer or more accurate, or to make the code easier to ============================================== PRG 420 Week 3 Coding a Program Containing Loops(New Syllabus)
  • 11. For more course tutorials visit www.prg420.com Individual: Coding a Program Containing Loops Instructions: Resource: • PRG 420 Week Three Coding Assignment Text File (starter code for this assignment that includes placeholders) For this assignment, you will apply what you learned in analyzing for, while, and do-while loops by writing these statements yourself. The Java™ program you write should do the following: • Display a pyramid of asterisks onscreen (i.e., a nested for loop) • Display the integers 10 to 1 in decreasing order, one number per line (i.e., a while/do-whlie loop) • Add 7 until the sum becomes greater than 157, at which point the program should display both the sum and the number of 7s added Complete this assignment by doing the following: 1. Download the linked PRG 420 Week Three Coding Assignment Text File. 2. Add comments to the code by typing your name and the date in the multi-line comment header. ==============================================
  • 12. PRG 420 Week 3 DQ 1 For more course tutorials visit www.prg420.com Please watch the first and the fifth (next to the last) videos for Week 3 (feel free to use the transcripts, too!) . Tell me about the similarities between the conditionals in if statements and the conditionals in while statements. ============================================== PRG 420 Week 3 DQ 2 For more course tutorials visit www.prg420.com Convert the following program from for loop to while loop. class ArithmeticProgression { public static void main (String [] args) { int sum = 0; for (int i = 1; i <= 1000; i++) { sum = sum + i; System.out.println(Integer.toString(sum)); } } } ============================================== PRG 420 Week 3 DQ 3 For more course tutorials visit www.prg420.com There are 3 kinds of loops—for loop, while loop, and do while loop. Under which circumstances would each kind of loop be more appropriate? Explain your answers using specific examples.
  • 13. ============================================== PRG 420 Week 3 DQ 4 For more course tutorials visit www.prg420.com Consider the following conditions: CONDITION 1: while ( !(cChoice == 'Q' || cChoice == 'q') ) CONDITION 2: while ( cChoice != 'Q' || cChoice != 'q' ) Do Conditions 1 and 2 give the same result? What tool or technique would you use to explain the result? ============================================== PRG 420 Week 3 Individual Assignment Netbeans Project (annual compensation with commission) For more course tutorials visit www.prg420.com Modify the Week Two Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: The company has recently changed its total annual compensation policy to improve sales. A salesperson will continue to earn a fixed salary of $50,000. The current sales target for every salesperson is $120,000. The sales incentive will only start when 80% of the sales target is met. The current commission is 5% of total sales. If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor. The acceleration factor is 1.5.
  • 14. The application should ask the user to enter annual sales, and it should display the total annual compensation. The application should also display a table of potential total annual compensation that the salesperson could have earned, in $5000 increments above the salesperson’s annual sales, until it reaches 50% above the salesperson’s annual sales. Sample Table: Assuming a total annual sales of $100,000, the table would look like this: ============================================== PRG 420 Week 4 Analyzing a Program Containing Arrays(New Syllabus) For more course tutorials visit www.prg420.com Individual: Analyzing a Program Containing Arrays Instructions: Resource: • PRG 420 Week Four Analyze Assignment Text File The ability to read through Java™ code and predict the results, given specific inputs, is an extremely useful skill. For this assignment, you will be analyzing the Java™ code in the linked PRG 420 Week Four Analyze Assignment Text File, and answering questions about the array that appears in the code.
  • 15. Carefully read through the code line by line, then answer the following questions in a Microsoft® Word document: ============================================== PRG 420 Week 4 Coding a Program Containing an Array(New Syllabus) For more course tutorials visit www.prg420.com Individual: Coding a Program Containing an Array Instructions: Resource: • PRG 420 Week Four Coding Assigment Text File (starter code for this assignment that includes placeholders) For this assignment, you will apply what you learned in analyzing a simple Java™ program by writing your own Java™ program that creates and accesses an array of integers. The Java™ program you write should do the following: • Create an array to hold 10 integers • Ask the user for an integer. Note: This code has already been written for you. • Populate the array. Note: The first element should be the integer
  • 16. ============================================== PRG 420 Week 4 DQ 1 For more course tutorials visit www.prg420.com Assuming you want an array (named many) of seven ints what would be the easiest way to write the code if you wanted many to contain all zeros? What if you wanted many to contain a selection of seven values, that were not all zeros? What would be the subscripts of all the elements of many? ============================================== PRG 420 Week 4 DQ 2 For more course tutorials visit www.prg420.com What is the difference between arrays and ArrayList? What are the advantages and disadvantages of an ArrayList, and when should you use an ArrayList over a simple array? ============================================== PRG 420 Week 4 DQ 3 For more course tutorials visit www.prg420.com
  • 17. What is the difference between string and StringBuilder? What are the advantages and disadvantages of a StringBuilder, and when should you use a StringBuilder over a simple String? ============================================== PRG 420 Week 4 Individual Assignment Netbeans Project (annual compensation comparison) For more course tutorials visit www.prg420.com Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements: The application will now compare the total annual compensation of at least two salespersons. It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. The application should ask for the name of each salesperson being compared. The Java™ application should also meet these technical requirements: The application should have at least one class, in addition to the application’s controlling class. The source code must demonstrate the use of Array or ArrayList. There should be proper documentation in the source code. ============================================== PRG 420 Week 5 Analyzing a Program Containing Exception Handling(New Syllabus)
  • 18. For more course tutorials visit www.prg420.com Individual: Analyzing a Program Containing Exception Handling Instructions: Resource: • PRG 420 Week Five Analyze Assignment Text File For this assignment, you will be analyzing the code in the linked PRG 420 Week Five Analyze Assignment Text File. This program contains exception handling code. You will be evaluating the code and using what you learned in this PRG 420 Week's readings to predict the results based on the program as written, as well as based on changing the value of a specific variable. Carefully read through the code line by line, then answer the following questions in a Microsoft® Word document: 1. What are the results of the program as written? 2. What results would the program produce if you changed the value of a from 0 to 3? Submit your completed Word document using the Assignment Files tab.
  • 19. Supporting Material: PRG 420 Week Five Analyze Assignment Text File ============================================== PRG 420 Week 5 Coding a Program Containing Exception Handling(New Syllabus) For more course tutorials visit www.prg420.com Individual: Coding a Program Containing Exception Handling Instructions: Resource: • PRG 420 Week Five Coding Assignment Text File (starter code for this assignment that includes placeholders) For this assignment, you will apply what you learned in analyzing a simple Java™ program by writing your own Java™ program. The Java™ program you write should do the following: • Organize the code capable of throwing an exception of type ParseException as a try block. • Include a catch block to handle a ParseException error thrown by the try block. • Include a hard-coded error that results in a ParseException to prove
  • 20. that the code can catch and handle this type of exception. Complete this assignment by doing the following: 1. Download the linked PRG 420 Week Five Coding Assignment Text File. 2. Add comments to the code by typing your name and the date in the ============================================== PRG 420 Week 5 DQ 1 For more course tutorials visit www.prg420.com Please explain one use for a static variable in a class. Please explain how you might use one static method ( not main() ) in a class. ============================================== PRG 420 Week 5 DQ 2 For more course tutorials visit www.prg420.com In your opinion, what are the three biggest challenges in planning and designing a solution for a programming problem? What can you do to overcome these challenges? How would you apply these techniques to the programs in this class? ============================================== PRG 420 Week 5 DQ 3 For more course tutorials visit
  • 21. www.prg420.com Using an example from your work or daily life, describe an "is-a" relationship. Why is an "is-a" relationship important when designing an inheritance between classes? ==============================================