Menu

Write Console Program Character Based Simple Calculation Addition Subtraction Multiplicati Q43794472

Write a console program (character based) to do simplecalculation (addition, subtraction, multiplication and division) oftwo numbers using your understanding of control flow, inputvalidations and error conditions in C.

Description:
You
need
to
write
a
program
that
when
run
will
display
a
menu.
The
menu
gives
five
choices
of
operation:
addition,
subtraction,
multiplication,
division
and
a
last
choice
to
exit
the
program.
It
then
gives
a
prompt
and
waits
for
the
user
to
make
a
choice
of
calculation
they
want
to
do.
Once
user
selects
the
operation
it
will
check
for
valid
menu
choices
(and
give
an
appropriate
message
if
a
wrong
choice
was
selected)
and
then
prompts
to
enter
two
numbers
separated
by
a
space.
If
the
user
entered
valid
numbers
it
will
do
the
operation
desired
and
then
displays
the
result.
If
user
input
is
not
valid
displays
an
error
message
and
asks
for
the
correct
input.
At
the
end
of
the
result,
it
gives
a
prompt
“Press
enter
key
to
continue
….”.
Once
enter
key
is
pressed,
it
displays
the
menu
again.
Program
repeats
until
user
selects
a
choice
to
exit.

Expert Answer


Answer to Write a console program (character based) to do simple calculation (addition, subtraction, multiplication and division) …

OR