Intro to Java Programming
Paper instructions:
There are 3 programming small tasks and 1 power point of 10 slides to this intro class. This is simple work but instructions have to be followed exactly

 

Task 1

Note: To complete this task, you will need the latest Java SE Development Kit (JDK). This includes the Java Runtime Environment (JRE) and command line development tools that are useful for developing applets and applications. It is recommended that you complete this assignment using NetBeans Integrated Development Environment.
A. Write an application that does the following:
1. Creates class Invoice
2. Declares class member variable called numberOfInvoices that is incremented each time a new invoice is created
3. Declares the four following instance member variables:
• companyName (which stores String representing name of Company)
• amountDue of type double
• chargeDate of type String
• invoiceNumber of type int where invoiceNumber is initialized to ++numberOfInvoices
4. Makes all member variables private to hide and encapsulate data
5. Implements the four following public getters to retrieve current values of all private members:
• getCompanyName()
• getAmountDue()
• getChargeDate()
• getInvoiceNumber()
6. Implements the three following public setters to set values of all private members:
• setCompanyName(String coName)
• setAmountDue(double Amount)
• setChargeDate(String dateCharged)
7. Creates required public constructors, including one that uses all setters to initialize all private attributes: companyName, amountDue, and chargeDate
8. Implements class (static) method getNumberOfInvoices() to return numberOfInvoices

B. Write a test application that does the following to create three Invoices to test the class developed in part A:
1. Creates an instance of Invoice and uses the Invoice constructor to initialize the following private attributes: companyName is “Amazing Software”, amountDue is “5,000.00”, and chargeDate is “January 18, 2009”
Note: Print information for the first invoice and verify that invoiceNumber was initialized to ++numberOfInvoices.
2. Creates an instance of Invoice and uses the Invoice constructor to initialize the following private attributes: companyName is “Best Programs”, amountDue is “4,000.00”, and chargeDate is “February 18, 2009”
Note: Print information for the second invoice and verify that invoiceNumber was initialized to ++numberOfInvoices.
3. Creates an instance of Invoice and uses the Invoice constructor to initialize the following private attributes: companyName is “Champion Code”, amountDue is “3,000.00”, and chargeDate is “March 18, 2009”
Note: Print information for the third invoice and verify that invoiceNumber was initialized to ++numberOfInvoices.
4. Uses class method getNumberOfInvoices() to get and print class member variable called numberOfInvoices without instantiating another Invoice

C. When finished with your application, evaluate your programmed solution and discuss the following questions with your partner:
1. What techniques did you use for information hiding and encapsulation? Are there any improvements you would make? If so, what would they be?
2. Which members were instance members? Did you have any class members?
3. What would the result be if you made numberOfInvoices a final variable?
Task 2
ask:

Note: To complete this task, you will need the latest Java SE Development Kit (JDK). This includes the Java Runtime Environment (JRE) and command line development tools that are useful for developing applets and applications. It is recommended that you complete this assignment using NetBeans Integrated Development Environment. To download this program, see the web link below.

Develop a working application that implements an interface. The interface can be one that you have created, or you can implement one provided by the Java API.

Some interfaces provided by the Java API to consider for your project are Runnable, Maps, Sets, or Lists, if you choose not to create one of your own.

If you are having trouble coming up with an idea for an application, you may select an appropriate project from your book. You will need to cite the source of the project. You may also develop the following, which requires you to implement a Runnable Interface:

A. Write a program that does the following:
1. Implements the runnable() interface
2. Implements the run() method of the runnable() interface to do the following:
a. Count down, starting with the number 5 and going to 0
b. Print the name of the thread and the current value of countdown integer for each integer counted down
c. Print “Blast Off!” when 0 is reached in the countdown
3. Creates five threads in your main class giving each thread a name: “Thread 1”, “Thread 2”, “Thread 3”, “Thread 4”, and “Thread 5”
4. Starts all five threads

Note: The Thread.currentThread().getName() method is helpful for retrieving thread names.

B. Present your application to a small group and do the following:
1. Explain how you used the Interface.
2. Explain how overriding through an Interface was used.
3. Lead a discussion with your attendees on the differences between overriding and overloading.
a. Discuss where polymorphism was used in the application.
b. Identify where you used overriding or overloading in your application.

C. When you use sources, include all in-text citations and references in APA format.
Task 3 POWERPOINT 10 Slides

A. Create a presentation (suggested length of 10 power point slides) on two software design patterns, one of which is the Model-View-Controller (MVC), and present it to your peers. You should do the following:

Note: You will need to ensure that your peers evaluate your presentation using the attached checklist.

1. Provide a diagram of the architecture of each pattern.
2. Explain the responsibility of each component within the software design pattern.
3. Identify applications for each pattern that could have been designed using the pattern.

Note: The MVC pattern is regularly used in web-based applications. The MVC pattern will be one of the two patterns you cover in your presentation. The second software design pattern is one of your own choosing.

B. When you use sources, include all in-text citations and references in APA format.
ORDER THIS ESSAY HERE NOW AND GET A DISCOUNT !!!

Testimonials

Intro to Java Programming