Question: finish code for unsigned operations: the expected output is: echo Running tests... echo output = $ ( . / a . out ) expected _
finish code for unsigned operations: the expected output is: echo "Running tests..."
echo
output$aout
expectedoutput"Please enter a decimal number:
Decimal: equal to Binary:
if $eq ; then
echo "Pass: Program exited zero"
else
echo "Fail: Program did not exit zero"
exit
fi
if $output" $expectedoutput" ; then
echo "Pass: Output is correct"
else
echo "Expected $expectedoutput' but got: $output"
exit
fi
echo
echo "All tests passed."
exit
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
