Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 cshwOperations bxfa Output: Task Correct number of arguments given. Task Decimal bBinary xfaHexadecimal Task true btrue xfatrue Task StartBinarybDecimalHexadecimalxf StartbBinarybDecimalHexadecimalxb Startxfa,BinarybDecimalHexadecimalxfa Task b xfa Task b xfa Task && Task Deductions: There is a point deduction ie you will have a zero on the assignment if you: Build a GUI Use of the following methods will result in a deduction of the task points where used: Integer.parse Integer.toHexString Integer.toBinaryString Built in bitwise operations ~ & a Note: Logical operations are allowed && etc. A deduction will occur from using any of the methods in this list and all their overloaded variants Please note that Integer.parse refers to Integer.parseInt. An additional set of overloaded methods has been included to the deductions list from the Integer class: Integer.valueOf These methods are illegal as they remove the need for students to perform parsing followed by conversions
Example outputs where the program has been provided with the correct arguments leading
to a successful run of the program:
Command: java cshwOperations bxfa
Output:
Task
Correct number of arguments given.
Task
Decimal
bBinary
xfaHexadecimal
Task
true
btrue
xfatrue
Task
StartBinarybDecimalHexadecimalxf
StartbBinarybDecimalHexadecimalxb
Startxfa,BinarybDecimalHexadecimalxfa
Task
b
xfa
Task
b
xfa
Task
&&
Task
Deductions:
There is a point deduction ie you will have a zero on the assignment if you:
Build a GUI
Use of the following methods will result in a deduction of the task points where used:
Integer.parse
Integer.toHexString
Integer.toBinaryString
Built in bitwise operations ~ &
a Note: Logical operations are allowed && etc.
A deduction will occur from using any of the methods in this list and all their overloaded
variants Please note that Integer.parse refers to Integer.parseInt. An additional set of overloaded
methods has been included to the deductions list from the Integer class: Integer.valueOf
These methods are illegal as they remove the need for students to perform parsing followed by
conversions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started