akosiraff

Download: Simple Calculator VB 2010

Jan 30th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. Download: http://solutionzip.com/downloads/simple-calculator-vb-2010/
  2. Create a simple calculator
  3. 1.For this project, you’ll create a form that accepts two
  4. operands and an operator from the user and then performs the
  5. requested operation.
  6. The design of the Simple Calculator form
  7. Operation
  8. •The user enters two operands and an operator and clicks the
  9. Calculate button or presses the Enter key to perform the
  10. calculation.
  11. •If the data is valid, the program performs the requested
  12. operation.
  13. •If the data is invalid, the program displays an appropriate
  14. error message.
  15. Specifications
  16. •Before performing the calculation, the application should check
  17. that both operands are numeric and that the operator is one of
  18. the following:
  19. + add
  20. - subtract
  21. * multiply
  22. / divide
  23. It should also check that both operands are between 0 and
  24. 1,000,000 (non-inclusive). To perform this data validation, code
  25. IsPresent, IsDecimal, and IsValidData procedures as described in
  26. chapter 7 of the book. In addition, code an IsOperator procedure
  27. that checks for a valid operator.
  28. •Code a private procedure named Calculate that performs the
  29. requested operation and returns a decimal value. This procedure
  30. should accept the following arguments
  31.  
  32. Download: http://solutionzip.com/downloads/simple-calculator-vb-2010/
Add Comment
Please, Sign In to add comment