Question: This is my Computer Science Lab assignment (which is very vague in wording) but I was hoping you could clear assignment up a little bit
This is my Computer Science Lab assignment (which is very vague in wording) but I was hoping you could clear assignment up a little bit and "guide me" on what I'm supposed to do.
1) When it says to ask the user for "left" operand and "right" operand, what does that mean?? Are those numbers or something or a kind of operation or what?? What makes one "left" or "right"?
2) On the assignment where it says to "check for an 'a' or an 'm'" what does that mean? Would "a" or "m" be in my code as a kind of substitute for addition and multiplication signs or would I be asking if the user wants to add or multiply by asking "a or m"? This part was also pretty confusing
3) Help provide any more insight or direction on what im supposed to do to help guide me through this assignment..... Thanks
Assignment Write a program that mimics a simple calculato. Inputs Ask the user for two different real numbers (left operand and right operand). Then ask for an operation. Outputs Perform the given operation on the two numbers (left and right) and print the result. a -Add m - Multiply You do not need to check anything but a or m, however use a switch statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
