#Testing
5 inputs
3 4 5
- Expect: Right angled, scalene1 12 11
- Expect Scalene, obtuse4 7 100
- Expect: Not a Trianlge1 1 2
- Expect Isosceles, right angled6 6 6
- Expect Equilateral, acute
import java.util.*; | |
class FormWords { | |
private String joinLetters(ArrayList<String> letters) { | |
String word = ""; | |
for (String letter : letters) { | |
word += letter; | |
} | |
return word; |
/** | |
* The Board | |
* | |
* Need to generate a maze | |
*/ | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.GridLayout; |
/** | |
* Draw the player | |
*/ | |
public void drawPlayer(Graphics2D g2d, Dimension playerSize) { | |
//Get the players position in terms of cell co-ords | |
int playerxmin = (teddy.getxPos() + teddy.getChangex()) / cellWidth; | |
int playerymin = (teddy.getyPos() + teddy.getChangey()) / cellHeight; | |
//Get the max player x and y | |
int playerxmax = (playerxmin + (int)teddy.getSize().getWidth()) / cellWidth; |
/** | |
* Check the keyboard input and set the player to move | |
*/ | |
public void keyboardInput() { | |
int playerx = thePlayer.getxPos() /theDisplay.getCellWidth(); | |
int playery = thePlayer.getyPos() / theDisplay.getCellHeight(); | |
if (theInputManager.isAnyKeyPressed()) { | |
/** | |
* Use A* algorithm to find the best path to the playerPos | |
* in the maze: theMaze. | |
* @param playerPos | |
* @param theMaze | |
*/ | |
public void findChasePath(Point playerPos, Maze theMaze) { | |
Point current; | |
int cost=0; |
/** | |
* File: Explore | |
* | |
* Description: | |
* Simple command line navigation system. | |
* | |
* Author: Calum Gilchrist | |
* | |
**/ |
-- | |
-- Database: `comedyclub` | |
-- | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `agent` | |
-- |
1. View the payments for a specific year and month | |
select * from pay where (extract(month from dateOfPayment) = "02" and extract(year from dateOfPayment) = "2012"); | |
+-----------+------------+---------------+-------------+-----------------+-------+-----------+ | |
| paymentID | employeeID | dateOfPayment | hoursWorked | commissionSales | bonus | contactID | | |
+-----------+------------+---------------+-------------+-----------------+-------+-----------+ | |
| 2 | 1 | 2012-02-01 | 0 | 0 | 1000 | NULL | | |
| 4 | 2 | 2012-02-01 | 40 | 0 | 50 | NULL | | |
| 8 | 3 | 2012-02-02 | 20 | 1 | 0 | NULL | |
<?xml version="1.0" ?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<!-- Structure --> | |
<xs:element name="movieReviews"> | |
<xs:complexType> | |
<xs:sequence> | |
<!--Movies--> | |
<xs:element name="movies"> |
#Testing
5 inputs
3 4 5
- Expect: Right angled, scalene1 12 11
- Expect Scalene, obtuse4 7 100
- Expect: Not a Trianlge1 1 2
- Expect Isosceles, right angled6 6 6
- Expect Equilateral, acute