[SOLVED] SOLVED: Week 5: Individual: SimpleMath OO Program

15.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (2 votes)

Using Object-Oriented Programming (OOP), design a base class Simplemath and derived Addition, Subtraction, Division, Multiplication classes within. The user should have the option (e.g., switch statement, if statement, if else statement, nested statements) to choose which calculation he or she prefers to use. Once a selection is made, the user should be able to input as many calculations as he or she wishes until done, with all totals given as an output prior to exiting the program. Create an array for the numbers users input to be stored.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.