Answer: a piecewise function is a function that is defined on a sequence of intervals.
Step-by-step explanation:
A piecewise function is a function that is "different" at different intervals.
The function may behave linearly between x = 0 and x = 10, and after that point, the function may be constant for a while, then change again.
This type of functions can be written as:
f(x) = g(x) if x1 ≤ x ≤ x2
f(x) = h(x) if x2 ≤ x ≤ x3
f(x) = k(x) if x3 ≤ x ≤ x4
and so on, where g(x), h(x) and k(x) are different functions, and those functions only act on the givenintervals: (x1, x2), (x2, x3) and (x3, x4)
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
Answer: B
Step-by-step explanation: Imagine the axis being a mirror if you draw a triangle and put it in a mirror u would get what is on B
Rational numbers and irrational numbers