Placeholder

PRG 420 Week 1 Individual Assignment Hello World

$9.00

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:
Download and unzip the linked zip file.
Add comments to the code by typing your name and the date in the multi-line comment header.
Replace the following lines with Java™ code as directed in the file:
LINE 1
LINE 2
LINE 3
LINE 4
Comment each line of code you add to explain what you intend the code to do.
Test and modify your Java™ program until it runs without errors and produces the results as described above.
Note: Refer to this week’s analyzing code assignment if you need help.

Description

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:
Download and unzip the linked zip file.
Add comments to the code by typing your name and the date in the multi-line comment header.
Replace the following lines with Java™ code as directed in the file:
LINE 1
LINE 2
LINE 3
LINE 4
Comment each line of code you add to explain what you intend the code to do.
Test and modify your Java™ program until it runs without errors and produces the results as described above.
Note: Refer to this week’s analyzing code assignment if you need help.
Submit your Java source (.java) code file using the Assignment Files tab.
SCREENSHOTS
SOLUTION
PAYMENT
PRG 420 Week 1 Individual Assignment
The solution consists of:
A Java program includes fully commented
A Netbeans project in case you want to run the project on your computer.
Screenshots while running program
Attachments [Move over files to preview content of those files]
PRG_420_Week_1.zip (56.90 KB)
Netbeans Project
PRG420Week1
pom.xml
src
main
java
PRG420Week1.java
test
java
target
classes
.netbeans_automatic_build
PRG420Week1.class
generated-sources
annotations
maven-status
maven-compiler-plugin
compile
default-compile
createdFiles.lst
inputFiles.lst
test-classes
.netbeans_automatic_build
PRG420-Week-1-Screenshot.png
Source Code
PRG420Week1.java
Preview PRG420Week1.java
xxxxxx xxxx.xxxx.xxxxxxx;
xxxxxx xxxxx xxx420xxxx1 {
public static void main(String[] args) { // Create a usable instance of an input device // LINE 1. INSTANTIATE AN INSTANCE OF SCANNER AND ASSIGN IT TO A VARIABLE OF TYPE SCANNER. Scanner input = new Scanner(System.in);
// Prompt user for input // LINE 2. USE THE PRINT() METHOD TO PROMPT THE USER FOR HIS OR HER FIRST NAME.
xxxxxx.xxx.xxxxxxx(“xxxxx xxxx xxxxxxxxx: “);
// xxxxxxx xxxxx xxxx xxx xxxxxx xx xx x xxxxxxxx
// xxxx 3. xxx xxx xxxx() xxxxxx xx xxxx xxxxxxx xxxxxxxx xx xxxxxx x xxxxx xx x xxxxxx xxxxxxxx.
xxxxxx xxxx = xxxxx.xxxxxxxx();
Preview PRG420Week1.java
xxxxxx xxxx.xxxx.xxxxxxx;
xxxxxx xxxxx xxx420xxxx1 {
public static void main(String[] args) { // Create a usable instance of an input device // LINE 1. INSTANTIATE AN INSTANCE OF SCANNER AND ASSIGN IT TO A VARIABLE OF TYPE SCANNER. Scanner input = new Scanner(System.in);
// Prompt user for input // LINE 2. USE THE PRINT() METHOD TO PROMPT THE USER FOR HIS OR HER FIRST NAME.
xxxxxx.xxx.xxxxxxx(“xxxxx xxxx xxxxxxxxx: “);
// xxxxxxx xxxxx xxxx xxx xxxxxx xx xx x xxxxxxxx
// xxxx 3. xxx xxx xxxx() xxxxxx xx xxxx xxxxxxx xxxxxxxx xx xxxxxx x xxxxx xx x xxxxxx xxxxxxxx.
xxxxxx xxxx = xxxxx.xxxxxxxx();
Price: $9
Buy Now
Checkout
Added to cart
Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.
PRG 420 Week 1 Individual Assignment – $9.00
PRG 420 Week 2 Individual Assignment – $15.00
PRG 420 Week 3 Individual Assignment – $19.00
PRG 420 Week 4 Individual Assignment – $19.00
PRG 420 Week 5 Individual Assignment – $19.00
Add to Cart
Checkout
Added to cart
You May Also Like:
PRG 420 Week 2 Individual Assignment Triangle Rectangle Polygon
PRG 420 Week 3 Individual Assignment For While and Do While Loops
PRG 420 Week 4 Individual Assignment Creates and Accesses an Array of Integers
PRG 420 Week 5 Individual Assignment Exception Handling

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.