Results 1 to 2 of 2

Thread: newb.. help..

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    43

    newb.. help..

    To perform basic calculations on a set of data in a file called “CALC.TXT”. The calculations are all based on integer values and the final result should not exceed 9910. Only the following mathematical operations should be used ( + , - , x , / ).
    For example, if the file CALC.TXT contains the following data/expression
    23 –10 * 5 =
    then, your program should output 65.

    The calculation is performed in the order in which the data provided, so do not follow the normal mathematical rules. The only way to identify that a result needs to be displayed is when we arrive at the ‘equals’ (‘=’) sign.


    need help..

    how do u scan this?--> 23 –10 * 5 =
    like 23 then where store it after that the minus sign

    or pls cre8 a sample program ofhow it could be done.. now i only know how to open the calc.txt but i have no idea how to perform maths calc
    Last edited by X-G; Oct 10th, 2003 at 02:47 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width