[Solved] CS3331 Lab 2 assignment

$25

File Name: CS3331_Lab_2_assignment.zip
File Size: 216.66 KB

SKU: [Solved] CS3331 Lab 2 assignment Category: Tag:
5/5 - (1 vote)

You should write a NEW program. Redesign your Lab 1 assignment. Please NOTE that there are new requirements.

  • You will not read from file multiple pieces of chess.
  • You will not use an array.
  • You will prompt the user for the values ofa piece of chess, specifically the type. color. x and y position.
  • You will prompt the user for a new location,
  • You will determine ifthe position is correct.
  • Create a new object of chess figure based on the user input. Note that you will not know the class type (chess figure) until run time.

You will only prompt once the user for the data of a chess figure.

  1. create a new class for each type of chess Figure. These classes should have the following attributes:
  2. a) t-ne.string b) color:strir.g c) x:char d) y:int
  3. add and implement the following constructors:
  4. empty constructor that assigns default values
  5. constructor that receives four values
  6. include the specific move method inside each of the chess pieces. Make sure that you document your code.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS3331 Lab 2 assignment[Solved] CS3331 Lab 2 assignment
$25