ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 22 May 2017 My Price 8.00

MemoryAppender stores all log entries

I need to make a custom memory appender for java using log4j.

Here is some specifications.

MemoryAppender stores all log entries in a list, they are not printed at theconsole
logs can be accessed using the following API:
java.util.List<org.apache.log4j.spi.LoggingEvent> MemoryAppender.getLogs()
c. the list returned by getLogs() should not be modifiable
MemoryAppender has a property maxSize , if the number of logs reaches
maxSize , the references to old logs are moved to a secondary list. getLogs()
returns the merged content of both list (primary and secondary). The use of the
secondary list should be transparent, i.e., it should not be visible to the outside,
and must not create memory leaks. I.e., if the amount of information logged
becomes so large that the JVM might run out of memory, log entries should be
culled automatically.
e. the constructor of MemoryAppender can be used to set the (primary) list to be
used to store logs

 

Assignment 2

Modify the Test Score application.(text book murach's java se6 chapt.2)In this exercise, you'll modify the Test Score application that's presented infigure 2-19. That will give you a chance to write some code of your own.1. Open the file named TestScoreApp.java in the c:java1.6ch02 directory, andsave the program as ModifiedTestScoreApp.java in the same directory. Then,change the class name to ModifiedTestScoreApp and compile the class.2. Test this application with valid data to see how it works. Then, test theapplication with invalid data to see what will cause exceptions. Note that if youenter a test score like 125, the program ends, even though the instructions saythat the program ends when you enter 999.3. Modify the while statement so the program only ends when you enter 999.Then, test the program to see how this works.4. Modify the if statement so it displays an error message like "Invalid entry, notcounted" if the user enters a score that's greater than 100 but isn't 999. Then,test this change.

 

Assignment 3

Question:IT 511 Final Project Milestone Three: Programmer-Defined Class Guidelines and Rubric 

Your final project for this course is the creation of a Virtual World Java application that results in a virtual world, complete with an object that will act as a human clone. (See the Final Project Document for more information.) You created the initial version of your MyClone class in Milestone One and Java code that created an Array of String messages in Milestone Two. In this milestone, due in Module Seven, you will finish your MyClone class and create another class of your choice. 

The following critical elements will be addressed in this submission:

  1. MyClone accessors and mutators: You will demonstrate your understanding of encapsulation by creating accessor and mutator methods for all instance variables of the MyClone class.
  2. MyClone constructor: You should have at least one constructor created that initializes all instance variables.
  3. MyClone method introduction(): Create an introduction() method for your MyClone class. The introduction() method will introduce you to the virtual world by displaying a greeting, your first and last name, and anything else you would want to say.

 

Partial class diagram for the MyClone object:

MyClone

-firstName

-lastName

introduction()

  1. Create an additional class: Create a class of your choice. Your programmer-defined class will have at a minimum two (2) instance variables  and one (1) method. You will demonstrate your understanding of encapsulation by declaring the instance variables as private and by creating accessors and mutators for each instance variable. 
  2. Constructor: You will implement at least one constructor that initializes all instance variables. Document your code.

Requirements of Submission: Written components of projects must follow these formatting guidelines when applicable: double spacing, 12-point Times New Roman font, one-inch margins, and discipline-appropriate citations.

 

 

Answers

(11)
Status NEW Posted 22 May 2017 07:05 AM My Price 8.00

-----------

Attachments

file 1495437389-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)