no longer returns an error but your math seems to have something wrong with it, always returns 0
Console.WriteLine("Enter a percentage here");
int Percent = int.Parse(Console.ReadLine());
Console.WriteLine("Enter your number here");
int Number = int.Parse(Console.ReadLine());
int result = Percent / 100 * Number;
Answer:
Java.
Explanation:
public class Card
{
String Suit;
int value;
public Card(int value, String Suit) {
self.value = value;
// Check Suits value
if ((Suit == "hearts") || (Suit == "spades") || (Suit == "clubs") || (Suit == "diamonds"))
self.Suit = Suit;
else {
Suit = "none";
throw new IllegalArgumentException("no card of this type exists.");
}
}
public String getSuit() {
return Suit;
}
public int getValue() {
return value;
}
public void print() {
System.out.println("%d of %s", value, Suit);
}
}
public class Deck {
}
I’m just post video and there
Answer:
1) Check the switches, routers, and hubs.
2) Try logging off and on again.
3) Make sure everything is plugged in and turned on.
4) Restore files from backup versions.
Explanation:
Hope this helped!! :D