none
Simple Calculator question RRS feed

  • Question

  • Hello,

    I want to Write a program which displays a menu to the user. The menu should look similar to the following:

    Welcome to the SimpleCacl

    Press 1 to add two numbers

    Press 2 to subtract two numbers

    Press 3 to divide two numbers

    Press 4 to multiple two numbers

    Read in the selection from the user and then ask the user for two numbers.

    Print the result to the user.

    Any help would be great thanks.

    Sunday, October 8, 2017 7:11 PM

All replies


  • I want to Write a program which displays a menu to the user. The menu should look similar to the following:

    Welcome to the SimpleCacl

    ...

    Read in the selection from the user and then ask the user for two numbers.

    Print the result to the user..

    Well, at which point are you stuck? You must have some idea of how to get
    started. Show the code you have written so far.

    I presume that this is a console application, correct? If not, state
    what kind of application you're writing. WinForms? Other?

    Note that we balk at being asked or expected to write entire programs
    for free, or to do course assignments for students. You've got to make
    an effort, then someone will help you overcome sticking points.

    Writing a simple calculator program is a very common course or tutorial
    assignment so you will find many examples if you do a Web search.

    - Wayne

    Sunday, October 8, 2017 7:55 PM