Flash Card
CAN SOMEONE HELP ME WITH THIS FLASHCARD PROGRAM..... HONESTLY I AM NOT GOOD WITH JAVA... PLEASE HELP ME....JUST THE getFlashCrad(int N) part
public class FlashCard {
private int numberOfCards = 0;
private String mPlayerName = "";
private String mStatus = "";
private int mScore = 0;
private int mFlashCards[];
private int mFlashCardAnswers[];
FlashCard(int noOfCards)
//initialize FlashCards Values here...
//N card = 2 x N interger values
{}
private void pushValue(int fCardValue)
//store value to the Flash Card Stack
{}
private int popValue()
//get value to the Flash Card Stack
{
return 143; // a value from the Flash Card Stack
}
private void initializeCards(int nCards)
//get value to the Flash Card Stack
{}
public String getFlashCard(int N)
// This method will return N Flash Cards
// This method will record the number of cards given
// The values are space separated
{ // this are random numbers for 5 Flash Cards
// sample return "20 5 7 86 9 6 86 8 93" ;
}
int getNextNum()
//A Random Number Generator
{
int n;
n = 3; //the value of n should be random
return n;
}
public String getPlayerName()
// returns the Player Name
{
return "player name"; //sample return
}
public String getStatus()
// returns status message
{
return "Offline";
}
public int getScore()
//returns score of the player
{
int score;
score = 10; // sample data
return score;
}
public int getNumberOfCards()
//return the number of Cards given to the player
{
return numberOfCards;
}
public void setMode(String mode)
//This method sets the operator for the flash Card
//
//Mode: Add, Mult, Div , Sub
{}
public void storeAnswer(int answer)
//this method stores the answer by the client
{ }
public void setPlayerName (String playerName)
// store the name somewhere
{}
public void setPlayerStatus(String playerstatus)
// this will set player status, store it somewhere
// status may include: reading, typing answer etc...
{}
}
|