Question: Example outputs where the program has been provided with the correct arguments leading to a successful run of the program: Command: java cs 2 5

Example outputs where the program has been provided with the correct arguments leading
to a successful run of the program:
Command: java cs250.hw1.Operations 150b10110xfa
Output:
Task 1
Correct number of arguments given.
Task 2
15=Decimal
0b1011=Binary
0xfa=Hexadecimal
Task 3
15=true
0b1011=true
0xfa=true
Task 4
Start=15,Binary=0b1111,Decimal=15,Hexadecimal=0xf
Start=0b1011,Binary=0b1011,Decimal=11,Hexadecimal=0xb
Start=0xfa,Binary=0b11111010,Decimal=250,Hexadecimal=0xfa
Task 5
15=1111=>0000
0b1011=1011=>0100
0xfa=11111010=>00000101
Task 6
15=1111=>0001
0b1011=1011=>0101
0xfa=11111010=>00000110
Task 7
1111|1011|11111010=11111111
1111&1011&11111010=00001010
1111^1011^11111010=11111110
Task 8
11112=111100,1111>>2=11
10112=101100,1011>>2=10
111110102=1111101000,11111010>>2=111110
 Example outputs where the program has been provided with the correct

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!