Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objective: by the end of the experiment the student should be able to use if statement. Task: Write a simple program based on the use

image text in transcribed
Objective: by the end of the experiment the student should be able to use if statement. Task: Write a simple program based on the use of (if statement) that is similar to a calculator. You need to ask the user to enter the operation: Morm for multiplication, Dord for division A or a for addition, Sors for subtraction, Lor I for modulus The user also should enter the two numbers that the operation will be done on. The job of the program is to calculate the result and to print it for the user. Invalid user input need to be considered Example: If the user enters A with 3 and 4 for the numbers, the output should be: The result of adding 3 with 4 is 7 Example: If the user enters s with 3 and 4 for the numbers, the output should be: The result of subtracting 3 from 4 is -1 Solution:(flowchart + Program) Abu Dhabi Polytechnie, Introduction to Programming C++- EMEX-101 2 Assignment 3. S2- 2020-2021

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

Step: 3

blur-text-image

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

5 The mechanics of the circular flow model.

Answered: 1 week ago

Question

1 The difference between a command system and a market system.

Answered: 1 week ago

Question

4 How the market system adjusts to change and promotes progress.

Answered: 1 week ago