Đang Thực Hiện

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.

Kỹ năng: Lập trình C

Xem thêm: 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

Về Bên Thuê:
( 4 nhận xét ) Newhall, United States

Mã Dự Án: #1011402

29 freelancer đang chào giá trung bình $37 cho công việc này

srinichal

I can deliver the same asap

$30 USD trong 2 ngày
(48 Đánh Giá)
5.7
deadhunt

Please check PMB.

$30 USD trong 1 ngày
(36 Đánh Giá)
5.3
it2051229

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

$30 USD trong 0 ngày
(74 Đánh Giá)
5.2
ancosys

Hey, Please check pm. Thanks!

$30 USD trong 1 ngày
(52 Đánh Giá)
5.1
eperfections

I can do this project in C.

$50 USD trong 2 ngày
(31 Đánh Giá)
5.1
arcslance

Hello. Please see PM. Thanks.

$30 USD trong 1 ngày
(5 Đánh Giá)
5.0
diepbp

Please check PM.

$30 USD trong 1 ngày
(40 Đánh Giá)
4.9
procoder898

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

$30 USD trong 0 ngày
(14 Đánh Giá)
4.5
rakib062

plz check pmb.

$30 USD trong 0 ngày
(15 Đánh Giá)
4.2
thanhhungqb

Please see pmb, thanks.

$30 USD trong 1 ngày
(9 Đánh Giá)
3.6
kkoukos

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

$30 USD trong 1 ngày
(3 Đánh Giá)
3.0
tulebaev

I already have a ready program that you need.

$30 USD trong 1 ngày
(12 Đánh Giá)
3.4
sigutis

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

$30 USD trong 0 ngày
(6 Đánh Giá)
1.6
bilal978

I can do it within an hour...

$30 USD trong 0 ngày
(2 Đánh Giá)
0.8
unikio

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

$50 USD trong 2 ngày
(0 Đánh Giá)
0.0
menajev

Check pm, I won't disappoint you.

$30 USD trong 0 ngày
(0 Đánh Giá)
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 trong 2 ngày
(0 Đánh Giá)
0.0
noman7119

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

$30 USD trong 0 ngày
(0 Đánh Giá)
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 trong 3 ngày
(0 Đánh Giá)
0.0
ferbrice

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

$50 USD trong 2 ngày
(0 Đánh Giá)
0.0