Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

C Programming Lab 4: Simple Calculator Implementation, Exercises of Introduction to Software Engineering

Introduction to software engineering \ c Language \ coding

Typology: Exercises

2021/2022

Uploaded on 03/24/2023

mohammed-shalash
mohammed-shalash 🇹🇷

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
C Programming
Lab 4
Write a C program that will implement a simple calculator.
1. Take the operation type from the user. Availabe operations are:
a. Addition (+)
b. Subtraction (-)
c. Multiplication (*)
d. Division (/)
User will type +, -, * or / to select the operation.
2. Take operands from the user
3. Calculate and print the result.
An example screen is shown below.

Partial preview of the text

Download C Programming Lab 4: Simple Calculator Implementation and more Exercises Introduction to Software Engineering in PDF only on Docsity!

C Programming

Lab 4

Write a C program that will implement a simple calculator.

  1. Take the operation type from the user. Availabe operations are: a. Addition (+) b. Subtraction (-) c. Multiplication (*) d. Division (/) User will type +, - , * or / to select the operation.
  2. Take operands from the user
  3. Calculate and print the result. An example screen is shown below.