Category Archives: java

ENTD380 Assignment 4

Assignment Instructions
Instructions:
* Make sure you go to this week’s chapter lesson for more guidance. 

For this assignment, you will create an object class then display its assigned values from the main method of the main class.

Save the code in jGRASP, then save it in c:myjava and run it.

/*******************
  Name:

  Date:

Notes:   
*******************/

class Car
{
add content and comments
public static String accelerate()
{
  return motion;
  }
}

public class CarObject
{
  public static void main(String[] args)
  {
  add content and comments

}
}

Make sure that you include all source codes and the compiled codes into W4_firstname_lastname.zip.

You must leave me a note in the Submitted Text area on how to compile and run your code.

War Card

War

The deck is divided evenly, with each player receiving 26 cards, dealt one at a time, face down. Anyone may deal first. Each player places their stack of cards face down, in front of them. Each player turns up a card at the same time and the player with the higher card takes both cards and puts them, face down, on the bottom of his stack. If the cards are the same rank, it is War. Each player turns up one card face down and one card face up. The player with the higher cards takes both piles (six cards). If the turned-up cards are again the same rank, each player places another card face down and turns another card face up. The player with the higher card takes all 10 cards, and so on. The game ends when one player has won all the cards. Hint: Use math.random to shuffle the deck

Neural Networks

extend the code i have already done in java which creates a back propagation network with 20 inputs, 1 neuron in hidden layer and one output neuron.
This code has to be extended to have an extra hidden layer. Then it has to be tested with 12 different activation functions to see how each of them performs on the input.

If you are able to do this i will provide the code, fully commented.

If you wish you could do it using any other program but in that case the entire network would have to be created from scratch.