Question: CAN YOU Please write it carefully it can be C or C++ your choice thanks already. ALSO IT S JUST ONE QUESTON SO CAN YOU

CAN YOU Please write it carefully it can be C or C++ your choice thanks already. ALSO IT S JUST ONE QUESTON SO CAN YOU PLEASE DO THE WHOLE QUESTON BECAUSE T S JUST AN ONE QUESTON AT ALL.

CAN YOU Please write it carefully it can be C or C++

Output file must store: 15.5 for challange 2

Challange3: Integer Division

A = 5

B = 9

C = B / A

OUT C

Output file must store: 1

Challenge4: Double Division

A = 5.0

B = 9

C= B / A

OUT C

Output file must store: 1.8

Challange5: Operator Precedence

A = 6

B = 2

C = A + B

D = B * A + B * C

OUT D

Output file must store: 28

Challange6: Operator Precedence with Parentheses

A = 1

B = 2

C = A + B

D = (A + B ) * C + B

OUT D Output file must store: 11

Challange7: using IF THEN ELSE statement

A1 = 1

B1 = 2

A2 = IF A1 > B1 THEN A1 ELSE B1

OUT A2

Output file must store: 2

Challange8: Combine IF clause with operations

A = 1

B = 2

C= IF ( A + B )

OUT C

Output file must store: 1

Challange9: Loop Statement

A = 2

B = 3 LOOP

C = C + A * B TIMES 5

OUT C

Output file must store: 30

IMPORTANT POINTS:

Something like a mini mathematical compiler is desired.

Inputs will be read from the file and are not fixed, the number of which can change.

We need a code that can do all the challenges, each challenge should be able to do the challenges before it, for example, the 9th Challenge should be able to do the challenges from the 1st Challenge to itself.

Program Main Screen: No output will be shown on the screen unless the input file includes an IN command. Your program must start and end without any unnecessary input and output commands. Just the OUT commands from the input file should result a console and file output.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!