[try Beta version]
Not logged in

 
Need Help!

Sep 6, 2016 at 5:03am
New to c++ please help me

Design a calculator that performs five operations: addition, subtraction, multiplication, division, and power with 2 integer numbers.

a) Prompt user to enter the type of operation to perform (+, -, *, /, or ^).
a. You can use numbers (1,2,3,4,5) to specify those operations. Or, you
can directly accept the symbols of those operations from the
keyboard.
b) Prompt user to enter 2 integer numbers (say, x and y).
c) Perform the operation on x and y as specified in (a). If the operation is power
(^), then compute x and y raised to power 3 (x^3, y^3).
d) Print your result.
Sep 6, 2016 at 5:21am
Hi,

Can you show us what you have done so far?
Oct 2, 2016 at 3:19am
rules and everyday common sense tell us that we don't just do stuff for people. Post what you have but i will give you a hint.in pesudocode

ask what operation

get operation

if add then
get 2 numbers
add 2 numbers

if subtract then
number 1 minus number 2

...
Topic archived. No new replies allowed.