If you include all zeroes, then it should be 1,000,000,000. Otherwise it’s 999,999,999.
Think of how between 0-9 theres 10 numbers, and use that logic towards 000000000-999999999
Answer:
import java.util.Scanner;
public class Speed{
int speed;
public Speed(int speed){
this.speed = speed;
}
public void checkSpeed(){
if(speed >= 24 || speed <= 56){
System.out.println("Speed is normal");
}
else
System.out.println("Speed is abnormal");
}
public static void main(String...args){
Scanner input = new Scanner(System.in);
int userSpeed = 0;
System.out.println("Enter a speed: ");
userSpeed = input.nextInt();
Speed obj1 = new Speed(userSpeed)
obj1.checkSpeed();
}
Explanation:
'SYSTEM' <span> software helps run the computer and coordinates instructions between other software and the hardware devices.</span>
```
#!/usr/local/bin/python3
import sys
coins = { "quarters" : 25, "dimes" : 10, "nickels" : 5, "pennies" : 1 }
def mkChange( balance, coin ):
qty = balance // coins[ coin ]
if( qty ):
print( str( qty ) + ' ' + coin )
return( balance % coins[ coin ] )
if( __name__ == "__main__" ):
if( len( sys.argv ) == 2 ):
balance = int( sys.argv[ 1 ] )
balance = mkChange( balance, "quarters" )
balance = mkChange( balance, "dimes" )
balance = mkChange( balance, "nickels" )
balance = mkChange( balance, "pennies" )
else:
sys.stderr.write( "\nusage: " + sys.argv[ 0 ] + " <change owed>\n" )
```
maybe a EMP. tell me if im right