C++

profileaatx0w5

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.

    • 10 years ago
    • 10
    Answer(1)

    Purchase the answer to view it

    blurred-text
    • attachment
      sasta-code.txt
    • attachment
      sasta-algorithm.txt