Write an application that allows the user to enter two variables: number (real) and code (character). Calculate the value indicated by the table below:
If code is
|
Result
|
A symbol
|
the whole part of the number
|
everything else
|
cube of number
|
Hint: Use the character and mathematical functions.
Display the result from the performed task.