PRG421 Phoenix Week 2 Console Input and Output Programming Project

Resource:”Console/File Input and Output” text fileFor this assignment, you will build on “starter” code to create a Java program that prompts the user for input, accepts user input, and produces both console and file output.Copy the linked code to a JAVA file.Add Java code based on the comments inside the code.Note: Refer to this week’s Individual “Week Two Analyze Assignment” for model code you can adapt to meet this assignment’s requirements.Test, debug, and run your code using the NetBeans editor to make sure it meets the program requirements./*********************************************************************** Program: Week 2 Code Assignment * Purpose: Console/file input and output* Programmer: YOUR NAME HERE * Class: PRG/421r13, Java Programming II * Instructor: YOUR INSTRUCTOR HERE * Creation Date: TODAY’S DATE* Comments: Fill in code ************************************************************************/package demo;import java.util.Scanner; // scanner is a predefined class for taking inputs from userpublic class Startercode{ public static void main(String[] args) {// prompts and accepts user inputScanner input= new Scanner(;double data;System.out.println(“Enter value “); // accepts file input String fileName = “input.txt”; // name of the file to open String line = null; // will reference one line at a time try { FileReader fileReader = // FileReader reads text file new FileReader(fileName); // reads in data from the file // produces both console and file output try { // coding block to output data to file fileStdout = new PrintStream(new FileOutputStream(“data.txt”)); // output file name is data.txt System.out.println(“==============”); // output to console, numbers 0 through 9 fileStdout.println(“” + i); // ENTER YOUR CODE HERE. Enter code to end program successfully.

Related Posts

Quality Writing Features

Price Start $10
  • 24/7 Customer Support
  • All Subject Areas
  • Money-Back Guarantee
  • Timely Delivery
  • Originality report
  • Confidentiality guaranteed

Ordering Homework Writing Service

You can get our ideal online homework help services with four easy steps. All you have to do is inform us of your requirements. Immediately we will match with a specialist in your academic discipline. After that, we will track your order, review it to ensure it meets your requirements, and submit it to your email.


Submit Requirements

Fill in your assignment instructions on the order form


Writer match

Immediately you contact us for homework help; we will assign your assignment to an academic expert.


Quality review

We have a team of editors, who will thoroughly review your assignment, ensuring there are no errors before submission


Get Your Completed Paper

Once we have completed the assignment, we will deliver it to your account. Additionally, we will send a notification to your email.



Budget-friendly writing services



We don’t share our client’s information with a third party



We write every assignment from scratch

Amazing Homework Writing Features

Once you consult us for homework help online services, you will attest to why we are among the USA's best essay writing services.

Read on and find out some of the features that make our services superlative.

Free Homework Writing Services

Free plagiarism checker

You can confirm that the content you get is original for free using our plagiarism checker.

Free samples

We offer unlimited access to our essay homework samples.

Free title page and bibliography

Once you place an order, we format it accordingly without demanding additional charges.

Free unlimited revisions

We offer free unlimited revisions until your assignment is of your desired quality..

Free editing and proofreading

We have a team of specialized editors who review your assignment before submission.

Free customer support

You can track the progress of your homework for free.

Request for Homework Writing Service Today!

We have over 500 homework writing experts, ready and waiting to help you improve your writing skills