Explore BrainMass

Calculator Program

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Design a calculator program that will add, subtract, multiply, or divide two numbers input by a user.

The program design should contain the following:

* The main menu of program is to continue to prompt the user for an arithmetic choice until the user enters a sentinel value to quit the calculator program.
* When the user chooses an arithmetic operation (i.e. addition) the operation is to continue to be performed (i.e. prompting the user for each number, displaying the result, prompting the user to add two more different numbers) until the user enters a sentinel value to end the chosen arithmetic operation.
* If the user chooses division, do not allow the user to divide by 0. Display an error message to user and ask the user to choose another denominator.

Please provide a pseudocode and flowchart for the program that follows the guidelines of good program design, like meaningful variable names and thoroughly commented code.

© BrainMass Inc. brainmass.com October 25, 2018, 5:52 am ad1c9bdddf
See Also This Related BrainMass Solution

VB.NET Morgtage Calculator Program

Write a program in VB.Net (not Web based) with a graphical user interface. Have the user input the amount of the mortgage and then select from a menu of following mortgage loans:

- 7 years at 5.35%
- 15 years at 5.5%
- 30 years at 5.75%

Use an array for the different loans. Display the mortgage payment amount. Then, list the loan balance and interest paid for each payment over the term of the loan. Allow the user to loop back and enter new data or quit. Insert comments to document the program.

View Full Posting Details