Questions
Please Use the ECLIPSE AND FOLLOW THESE RULES Apply the naming conventions for variables, methods, classes,...

Please Use the ECLIPSE AND FOLLOW THESE RULES

Apply the naming conventions for variables, methods, classes, and packages:

- variable names start with a lowercase character

- classes start with an uppercase character

- packages use only lowercase characters

methods start with a lowercase character

question1:

Design a Lotto class with one array instance variable to hold three random integer values (from 1 to 9). Include a constructor that randomly populates the array for a lotto object. Also, include a method in the class to return the array.

Use this class to simulate a simple lotto game in which the user chooses a number between 3 and 27. The user runs the lotto up to 5 times and each time the sum of lotto numbers is calculated. If the number chosen by the user matches the sum, the user wins and the game ends. If the number does not match the sum within five rolls, the computer wins.

question2:

Write a Java class that implements a set of three overloaded static methods. The methods should have different set of parameters and perform similar functionalities. Call the methods within main method and display the results.

eclipse...

In: Computer Science

Provide pseudo-code to compute the difference of two sets, S - T, using: a. sets represented...

Provide pseudo-code to compute the difference of two sets, S - T, using:

a. sets represented by linked-lists of characters.

b. sets represented by bit strings. (hint - what is "exclusive or?")

In: Computer Science

Is there a way to limit the # of times an Excel file can be opened?...

Is there a way to limit the # of times an Excel file can be opened? The solution would also require that the Excel file could not be copied to another location to bypass the counter.

In: Computer Science

Subject = Managerial Accounting ABC = Activity Based Costing 1.) Which of the following statements is...

Subject = Managerial Accounting

ABC = Activity Based Costing

1.) Which of the following statements is true?

A.) ABC allocates overhead based on a product's usage of resources.

B.) ABC is always a better way to find product costs than other methods.

C.) There should be 3 activity pools for ABC.

2.) Please select all of the answers that are considered disadvantages of ABC:

A.) Cost to implement ABC

B.) Cost Distortion can still exist, even with ABC

C.) ABC can provide more accurate overhead cost allocation

In: Accounting

Can someone read my college essay prompt and give me suggestions? 1. Describe an example of...

Can someone read my college essay prompt and give me suggestions?

1. Describe an example of your leadership experience in which you have positively influenced others, helped resolve disputes or contributed to group efforts over time.

I had never dialed 9-1-1. But, when I saw the empty Tylenol bottle in a picture one of my cadets texted to me, I knew I had to act. I understood that this was a plea for help. I didn’t have time to wonder if this was legitimate. I saved her life by calling 911.

I used this traumatic experience and realization of the importance of mental health as I worked up to be a top leader in JROTC. Since without a healthy mind you cannot do anything because there is no motivation. So I made it my main goal to ease my cadets into feeling like they could communicate me in order to avoid situations where they get this hopeless. Thus I acted a mother figure to them by asking them about their grades to talking to them about their family. I heard about their mother being a prostitute to her alcoholic fathers which let me understand their behaviors and not judge them when they lashed out. They could also understand me too when I was in a bad mood because of my autistic brother who screams at night leading me to sleep less.

   I furthered this support system by teaching them cooperation towards each other. One example of how I did this was teaching them games like doing musical chairs, however, there was with a twist. Instead of the traditional one person fighting for one person per chair, we all had to fit in that one remaining chair. This taught us to work together instead of against each other. It might seem silly but I felt like it helped because they got closer through having fun together. I also planned weekly outings to places like the beach or the mall in order for them to be in a setting that they enjoyed together. This gives them a positive association with each other which showed in there work and let them talk to each other on a personal level.

In: Psychology

Is it wrong for marketers to create wants where none exist in the marketplace in order...

Is it wrong for marketers to create wants where none exist in the marketplace in order to make profits? State your position and defend your answer. Be specific. There are no wrong answers. Back up your findings with concepts, reasoning, and logic

In: Operations Management

A 65.0 mL solution of 0.113 M potassium alaninate (H2NC2H5CO2K) is titrated with 0.113 M HCl....

A 65.0 mL solution of 0.113 M potassium alaninate (H2NC2H5CO2K) is titrated with 0.113 M HCl. The pKa values for the amino acid alanine are 2.344 (pKa1) and 9.868 (pKa2), which correspond to the carboxylic acid and amino groups, respectively. a) Calculate the pH at the first equivalence point b) Calculate the pH at the second equivalence point

In: Chemistry

Explain how a read I/O operation happens in 2 scenarios: with DMA and without DMA. Clearly...

Explain how a read I/O operation happens in 2 scenarios: with DMA and without DMA. Clearly explain how the I/O device and the CPU works concurrently in both cases. Explain through an example showing the steps of the protocols and the algorithms underneath.

In: Computer Science

PLEASE Use the ECLIPSE... AND FOLLOW THIS RULES.. Apply the naming conventions for variables, methods, classes,...

PLEASE Use the ECLIPSE...

AND FOLLOW THIS RULES..

Apply the naming conventions for variables, methods, classes, and packages:

- variable names start with a lowercase character

- classes start with an uppercase character

- packages use only lowercase characters

methods start with a lowercase character

Write a Java application that simulates a test. The test contains at least five questions about first three lectures of this course. Each question should be a multiple-choice question with 4 options.

Design a Test class. Use programmer-defined methods to implement your solution. For example:

  • create a method to simulate the questions – simulateQuestion
  • create a method to check the answer – checkAnswer
  • create a method to display a random message for the user – generateMessage
  • create a method to interact with the user - inputAnswer

For each question:

  • If the user finds the right answer, display a random congratulatory message (“Excellent!”,”Good!”,”Keep up the good work!”, or “Nice work!”).
  • If the user responds incorrectly, display an appropriate message and the correct answer (“No. Please try again”, “Wrong. Try once more”, “Don't give up!”, “No. Keep trying..”).
  • Use random-number generation to choose a number from 1 to 4 that will be used to select an appropriate response to each answer.
  • Use a switch statement to issue the responses, as in the following code:

switch ( randomObject.nextInt( 4 ) )

{

case 0:

return( "Very good!" );

……

}

At the end of the test display the number of correct and incorrect answers, and the percentage of the correct answers.

Your main class will simply create a Test object and start the test by calling input answer method.

Thank you.

In: Computer Science

Discuss the methods, results, and implications of the Holway and Boring (1941) 'hallway' experiment.

Discuss the methods, results, and implications of the Holway and Boring (1941) 'hallway' experiment.

In: Psychology

Algorithm. We divide each of the matrices A and B into 9 submatrices with size n/3...

Algorithm. We divide each of the matrices A and B into 9 submatrices with size n/3 × n/3 each. The matrix C = A × B is obtained by using 25 multiplications and 30 additions of the submatrices. What is the recursive formula of the running time function T(n) of this algorithm? What is the running time of this algorithm (in Θ notation)?

In: Computer Science

Answer the question using an additional source: Select a CAM and identify and describe how quality...

Answer the question using an additional source:

Select a CAM and identify and describe how quality and systems effect and are effected by the use of the CAM in healthcare today.

In: Operations Management

A titanium cube contains 3.2 ×1023 atoms. The density of titanium is 4.50 g/cm3 What is...

A titanium cube contains 3.2 ×1023 atoms. The density of titanium is 4.50 g/cm3

What is the edge length of the cube?

Express your answer with the appropriate units.

In: Chemistry

System.out.println("Enter a temperature in Fahrenheit: ");          double fahrenheit = input.nextDouble();       double...

System.out.println("Enter a temperature in Fahrenheit: ");
     
   double fahrenheit = input.nextDouble();
  
   double celsius = (5.0 / 9) * (fahrenheit - 32);
   System.out.println("Fahrenheit " + fahrenheit + " is " + celsius + " in Celsius");

the above code i would like to print to 2 decimal places for celsius please  

this is in JAVA

In: Computer Science

in Java, I need to create an array of animals. The user is going to be...

in Java, I need to create an array of animals. The user is going to be prompted to enter the size of the array where a valid size is 10-30(inclusive). Then I have to populate only half of this array. I am not sure how to do that so can you please write comments explaining.

Thank you

In: Computer Science