ITS 2105 Week 2 Project

User Generated

Qvaqbhcuv

Programming

Description

We are going to move from fixed data already in the program which is printed directly to the screen with System.out.println to using a variety of scanner objects to have the user input their specific information and then printing that data to the screen with System.out.println.Assignment 2: Programming with Scanner Objects

Redo the First class below but with scanner objects to get the information from the user. Submit your commented code and an example run of your code. Describe the programming strategy you use. Cite any sources that informed your coding.

  • Public class First
  • {
  • Public static void main)Strings[] args
  • {
  • System.out.println("Some Company Name");
  • System.out.println("1234 Company Address St");
  • System.out.println("Bloomington, IN 47408");
  • System.out.println("My First Class");
  • }
  • }
  • // now we create a method called DisplayAddress
  • public class First
  • {
  • Public static void main)Strings[] args
  • {
  • DisplayAddress();
  • System.out.println("My First Class");
  • }
  • }
  • public static void DisplayAddress()
  • {
  • System.out.println("Some Company Name");
  • System.out.println("1234 Company Address St");
  • System.out.println("Bloomington, IN 47408");
  • }

Submission Details:

  • Create the code and sample run files.
  • NB: I need comments please.

Unformatted Attachment Preview

We are going to move from fixed data already in the program which is printed directly to the screen with System.out.println to using a variety of scanner objects to have the user input their specific information and then printing that data to the screen with System.out.println.Assignment 2: Programming with Scanner Objects Redo the First class below but with scanner objects to get the information from the user. Submit your commented code and an example run of your code. Describe the programming strategy you use. Cite any sources that informed your coding. • • • • • • • • • • • • • • • • • • • • • • • • • Public class First { Public static void main)Strings[] args { System.out.println("Some Company Name"); System.out.println("1234 Company Address St"); System.out.println("Bloomington, IN 47408"); System.out.println("My First Class"); } } // now we create a method called DisplayAddress public class First { Public static void main)Strings[] args { DisplayAddress(); System.out.println("My First Class"); } } public static void DisplayAddress() { System.out.println("Some Company Name"); System.out.println("1234 Company Address St"); System.out.println("Bloomington, IN 47408"); }
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Here is your program, and ...


Anonymous
Awesome! Made my life easier.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags