Computers
This assignment provides you an opportunity to practice creating a class that includes attributes and the methods that are included in a class to support object oriented programming such as constructors, sets, gets, and a method to print out all attributes.
creating a class that includes an attribute that is another class type and methods that support those attributes.
illustrating the use of the this reference with constructors, instance variables and instance methods.
demonstrating the use of composition in OOP.
identifying and using Java classes which are related to strings and their methods.
Directions
Please solve five (5) programming problems related to the content presented in Chapters 9, 10 and 4 in your text. You can find the programming problems in the attached file (Module 3 Programming Problems Worksheet.docx (Links to an external site.)).
Download the worksheet and save it as Mod3-Worksheet-Programming-Last-First.docx. For example, Mod3-Worksheet-Programming-Smith-John.docx.
Consider the problem, design an algorithm (or algorithms) that would solve the problem, and then implement the algorithm in Java.
Create a new folder and name it as Mod3-Java-Programming-Last-First, for example, Mod3-Java-Programming-Smith-John.
Write the source code for each problem and save them as .java files in the folder you created. There are five programming problems for this module so you should have five .java files. Name your java files as Mod3Problem#.java, for example, Mod3Problem1.java.
Please insert the algorithm written in pseudocode as a comment in the beginning of your program.
Take screenshots of your running program – you can take screenshots using PrintScreen or any tool that you are familiar with, making sure that the console window in which you run the program appears on the screen.
Copy the screenshots in the worksheet. If your program has different outcomes, take screenshots of each variation.
Submission
Compress the folder that saves all of your java files as .zip file. Please note don’t save the worksheet in the same folder as they need to be submitted separately.
Submit the following two files as attachments by clicking the Submit Assignment button above.
Mod3-Java-Programming-Last-First.zip.
Mod3-Worksheet-Programming-Last-First.docx.
Grading
This assignment is worth 55 points. You can find the grading rubric for each program in the worksheet attached above.


Recent Comments