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: 10 Weeks Ago, 6 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 11.00

Write a program that displays Welcome to Java five times

Chapter 1 Exercise 2Welcome already . (Display five messages ) Write a program that displays Welcome to Java five times.INPUT and PROMPTS. None.OUTPUT . The output should be five lines of the above-described welcome message .CLASS NAMES. Your program class should be called WelcomeTimes5Capter 1 Exercise 12AVERAGE SPEED. (Average speed in kilometers) Assume a runner runs 24 miles in 1 hour, 40 minutes, and 35 seconds. Write a program that displays the average speed in kilometers per hour. (Note that 1 mile is 1.6 kilometers.)INPUT and PROMPTS. None.OUTPUT . The output should be a single number as described above.CLASS NAMES. Your program class should be called AvgSpeedChapter 2 Exercise 3Going METRIC.(Convert feet into meters) Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meters.INPUT and PROMPTS.The program prompts for the feet with the message "Enter a value for feet: ".OUTPUT . The output is of the form "x feet is y meters" where x is the number read in and y is the number of meters computed by the program .CLASS NAMES. Your program class should be called FeetToMetersChapter 2 Exercise 25PAYROLL.(Financial application: payroll) Write a program that reads the following information and prints a payroll statement : Employee's name (e.g., Smith) Number of hours worked in a week (e.g., 10) Hourly pay rate (e.g., 6.75) Federal tax withholding rate (e.g., 20%) State tax withholding rate (e.g., 9%)INPUT and PROMPTS. The program prompts for a single string (the name ) with: "Enter employee's name : ". The it prompts for the hours, pay rate, federal and state witholding rates with these prompts: "Enter number of hours worked in a week: ", "Enter hourly pay rate: ", "Enter federal tax withholding rate: ", "Enter state tax withholding rate: ".OUTPUT . The output should be as follows: Employee Name : x1 Hours Worked: x2 Pay Rate: x3 Gross Pay: x4 Deductions: Federal Witholding (x5%): x6 State Witholding (x7%): x8 Total Dedduction: x9 Net Pay: x10where the various place-holders x1. . . x10 are the quantities read in or calculated by the program . ALSO: monetary quantities must be preceded by a "$" and be calculated rounded down to the nearest penny.CLASS NAMES. Your program class should be called Payroll

 

Retail Transaction Programming Project The skills you have developed in using tools such as Java, NetBeans, and UML and applying Java programming constructs such as selection, looping, classes, objects, and arrays will be crucial in the development of your first programming project. Programming Project 1 provides you with the opportunity to apply all of the concepts you have covered in the first 5 weeks to create a program that emulates a system for handling purchases and other transactions at a retail store.Carefully review the requirements in the attached Retail Transaction Programming Project document. You will then create a new project in NetBeans to implement Programming Project 1. Submit your completed Programming Project 1 by creating a zip archive of your Programming Project 1 NetBeans project folder and submitting the zip archive.Rubric:Program ClassesThe program includes the two classes LineItem and Transaction, each with the specified instance variables.LineItem class MethodsThe LineItem class includes all specified methods, including constructor and accessor methods, and each method performs the function described in the instructions.Transaction class MethodsThe Transaction class includes all specified methods, including constructor and accessor methods, and each method performs the function described in the instructions.toString MethodThe toString method of the Transaction class displays the transaction information as a single string, formatted precisely as described in the instructions.Form and StyleThe program adheres to Java programming conventions, including (but not limited to) proper indentation and spacing, appropriate commenting, and readable code.

 

 

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

 

 

 

Answers

(11)
Status NEW Posted 22 May 2017 08:05 AM My Price 11.00

-----------

Not Rated(0)