12x=104-8
12x=96
96 divide 12
X=8
Since the programming language for this program is not specified, here's a simple JAVA program for you:
public class Card //Name of your program
{
private short rank, suit;
private static String[] suits = { "hearts", "spades", "diamonds", "clubs" };
private static String[] ranks = { "Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King" };
public static String rankAsString( int __rank ) {
return ranks[__rank];
}
Card(short suit, short rank)
{
this.rank=rank;
this.suit=suit;
}
public @Override String toString()
{
return ranks[rank] + " of " + suits[suit];
}
public short getRank()
{
return rank;
}
public short getSuit()
{
return suit;
}
}//End of program
Step-by-step explanation:
From what I know
3x-1=0
3*(-2)-1=0
-6-1=0
=-7.
I'm not sure but u can try it.
0.167 = 167/1000 as a fraction
hope this helps