Results 1 to 2 of 2

Thread: program plz 4

  1. #1
    PREMkhan's Avatar
    PREMkhan is offline Senior Member+
    Last Online
    2nd December 2020 @ 12:35 AM
    Join Date
    27 Nov 2009
    Location
    Kohat and Quetta
    Age
    34
    Gender
    Male
    Posts
    220
    Threads
    22
    Credits
    925
    Thanked
    22

    Default program plz 4

    plz built me the following program.its urgent. i need ur help


    realistic program: Desk Calculator

    Loop and selection constructs are sufficient to construct some quite interesting programs. This example is still fairly simple. The program is to simulate the workings of a basic four function calculator.

    Specification:

    The calculator program is to:
    Display a "current value".
    Support the operations of addition, subtraction, multiplication, and division, operations are to be invoked by entering the character '+', '-', '*', or '/' in response to a prompt from the program.
    When an operator is invoked, the program is to request entry of a second number that is to be combined with the current value; when given a number, the program is to perform the specified calculation and then display the new current value.
    The program is to accept the character 'C' (entered instead of an operator) as a command to clear (set to zero) the "current value".
    The program is to terminate when the character 'Q' is entered instead of an operator.

  2. #2
    PREMkhan's Avatar
    PREMkhan is offline Senior Member+
    Last Online
    2nd December 2020 @ 12:35 AM
    Join Date
    27 Nov 2009
    Location
    Kohat and Quetta
    Age
    34
    Gender
    Male
    Posts
    220
    Threads
    22
    Credits
    925
    Thanked
    22

    Default

    but i need it in visual C++ compiler

Similar Threads

  1. sab program
    By k_mbhutta in forum Ask an Expert
    Replies: 1
    Last Post: 5th July 2011, 08:47 PM
  2. c program
    By SHUMAILA AHMED in forum Ask an Expert
    Replies: 0
    Last Post: 2nd May 2011, 05:35 PM
  3. program
    By irfankhanl in forum Ask an Expert
    Replies: 1
    Last Post: 3rd August 2010, 08:42 PM
  4. program plz 2
    By PREMkhan in forum Ask an Expert
    Replies: 2
    Last Post: 26th May 2010, 12:30 AM
  5. Solved plz help me in the following c++ program
    By raza89 in forum Solved Problems (IT)
    Replies: 4
    Last Post: 19th October 2009, 08:29 AM

Bookmarks

Posting Permissions

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