En cours

C Program Calculations

Write C program to perform simple C arithmetic calculations. The user is to enter a simple expression (integer operator integer) such as: 15 + 30

The program is to extract the 2 operands and the operator, perform the indicated calculation and display the result. For example: 15 + 30 = 45

Operators should include +, -, *, /, and %

Operands are positive integers, no sign

*Use getchar to input the expression

Allow for variable spacing before the first operand and between operators and operands (zero, one or more spaces)

Allow the user the option of entering another expression

Code a function for each operator to do the appropriate arithmetic operation (5 functions)

No global variables. No string handling functions. No arrays

Input: Interactive. Allow the user to enter multiple expressions.

Output: Echo the input (both user prompts and user entered data).

Print the whole expression with the result or an appropriate error message

Be sure output data shows all valid and invalid test data and how the program handled it.

Compétences : Programmation C

Voir plus : extract integers program, calculations program, variable programming, string programming, string c programming, programming variables, programming variable, programming program, programming operators, programming operator, programming expression, operator code, integers and, data input operator, c string programming, c++ programming test, c programming string functions, c programming string, c programming operators, c programming operator, c programming input output, c programming getchar, c programming functions, c programming function, c programming example

Concernant l'employeur :
( 4 commentaires ) Newhall, United States

N° du projet : #1011402

29 freelance ont fait une offre moyenne de 37 $ pour ce travail

srinichal

I can deliver the same asap

30 $ USD en 2 jours
(48 Commentaires)
5.7
deadhunt

Please check PMB.

30 $ USD en 1 jour
(36 Commentaires)
5.3
it2051229

Hi, kindly check your inbox for my inquiries. Thanks.

30 $ USD en 0 jours
(74 Commentaires)
5.2
ancosys

Hey, Please check pm. Thanks!

30 $ USD en 1 jour
(52 Commentaires)
5.1
eperfections

I can do this project in C.

50 $ USD en 2 jours
(31 Commentaires)
5.1
arcslance

Hello. Please see PM. Thanks.

30 $ USD en 1 jour
(5 Commentaires)
5.0
diepbp

Please check PM.

30 $ USD en 1 jour
(40 Commentaires)
4.9
procoder898

Hi, I am expert at C program and DSA, can surely satisfy you. Please check your inbox,

30 $ USD en 0 jours
(14 Commentaires)
4.5
rakib062

plz check pmb.

30 $ USD en 0 jours
(15 Commentaires)
4.2
thanhhungqb

Please see pmb, thanks.

30 $ USD en 1 jour
(9 Commentaires)
3.6
kkoukos

Piece of cake. I can deliver it in few hours. Regards.

30 $ USD en 1 jour
(3 Commentaires)
3.0
tulebaev

I already have a ready program that you need.

30 $ USD en 1 jour
(12 Commentaires)
3.4
sigutis

What you need is a simple parser implementation. I can code it for you in a matter of minutes.

30 $ USD en 0 jours
(6 Commentaires)
1.6
bilal978

I can do it within an hour...

30 $ USD en 0 jours
(2 Commentaires)
0.8
unikio

hi, i am professional programmer. Can do you program very easily.

50 $ USD en 2 jours
(0 Commentaires)
0.0
menajev

Check pm, I won't disappoint you.

30 $ USD en 0 jours
(0 Commentaires)
0.0
cow4444

I will send you the executable file. After 10 calculations the program will stop working. If you pay me I will fix it to stop when you enter stop.

50 $ USD en 2 jours
(0 Commentaires)
0.0
noman7119

I can do it in 2 hours max if you are interested ...

30 $ USD en 0 jours
(0 Commentaires)
0.0
muaddib88

Hello . I make this before but with another functions . I can do it if you want . Please contact me if you are interesed

100 $ USD en 3 jours
(0 Commentaires)
0.0
ferbrice

I can do the job and answer your question about it.

50 $ USD en 2 jours
(0 Commentaires)
0.0