Write your code to implement +, -, *, /, four operations betweentwo hex numbers. The program is required to accept a single Cstring formula as input (10 points) and then properly separate twohex numbers and an operator from the input (10 points) and finallyperform the operation according to the operator and return acorrect decimal answer on terminal/console (10 points). Name yourprogram file Lab5_q1_code.c. Requirements are following: 1. Notallowed to use any other libraries as your head files except or .Write the conversion function by yourself. 2. Use scanf function toaccept input and input type must be stored as a character arrayvariable. 3. Probably you will pick some code from your previousLab 4.
Expert Answer
Answer to Write your code to implement +, -, *, /, four operations between two hex numbers. The program is required to accept a si…