teach-ict.com logo

THE education site for computer science and ICT

Silver Challenge


Task

Write a calculator program. Your program should do the following:

Code this:

  • It should start off by printing 'My Calculator' on the top line
  • It should ask the user to enter two different numbers
  • It should store those numbers as two different variables
  • It should have a variable called 'answer'
  • 'answer' should add both of the numerical variables entered by the user
  • It should print a sentence saying, "The answer is xxx (with xxx being the calculated answer)
  • We have started you off with the structure of the code .....................