Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedThis 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

16.7 Describe the three steps in the collective bargaining process.

Answered: 1 week ago