Programming Exercise 1
Create a Java NetBeans project named FirstProgram with the main class named FirstProgram. Download and follow the instructions in the attached file above to complete Programming Exercise 1. After successfully compiling and executing your exercise, upload the zipped project folder to Programming Exercise 1. Programming Exercise 2 Create a Java NetBeans project named Coins with the main class named Coins. This program will read three integer values from the Java console representing a number of quarters, dimes and nickels.It will convert the total coin amount to dollars and output the result with a dollar notation. Download and follow the instructions in the attached file above to complete Programming Exercise 2. After successfully compiling and executing your exercise upload the zipped project folder to Programming Exercise 2.
Programming Exercise 3 Create a Java NetBeans project named StudentClient with the main class named StudentClient. Add a service class to the project named Student. This program will encapsulate the concept of a student, assuming a student has the following attributes (instance variables): a name, a social security number and a GPA (e.g., 3.5).For the Student class you will write the constructors, accessors and mutators, and toString and equals methods. In the client application class you will instantiate student class objects and write statements (method calls) to test the methods in your student service class. Download and follow the instructions in the attached file above to complete Programming Exercise 3. After successfully compiling and executing your exercise upload the zipped project folder to Programming Exercise 3.
Programming Exercise 4 Create a Java NetBeans project named RestaurantClient with the main class named RestaurantClient . Add two service classes to the project, a superclass named Store and a subclass named Restaurant which will encapsulate a restaurant and inherit from class Store. Data encapsulated in class Store will be the restaurant name and a constant tax rate. Data encapsulated in class Restaurant will be the number of people served yearly and the average price per person. Code the appropriate constructor, mutator, accessor, toString and equals methods for both service classes. Code a method in the Restaurant class to return the average taxes per year. In the client application class you will instantiate Restaurant class objects and write statements (method calls) to test the methods in your student service classes. Download and follow the instructions in the attached file above to complete Programming Exercise 4. After successfully compiling and executing your exercise upload the zipped project folder to Programming Exercise 4.
Programming Exercise 5 Create a Java NetBeans project named AddLineNumbers with the main class named AddLineNumbers . This program will read data from a text file “dataInput.txt” and while there are more records, prepend a line number to the text data and output the concatenated data to “dataOutput.txt” implementing a try/catch block to catch any file errors thrown by the JVM. After you have created your NetBeans project AddLineNumbers and before you attempt to execute your application download and/or copy the text data file dataInput.txt from the course Blackboard link below to your AddLineNumbers project folder.
