#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

#### Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

# Can anyone space a little help? Combination of arrays, loops, methods

Posts: 1Member
First you will be ask to input 2 consecutive numbers.

This set of number will then be added to your array or list.

Once these numbers are added to the list.

You will be asked to choose from a list of options.

A - Add numbers to the list. (note: once you add numbers, it will automatically be added on the top of the array[0] or list)
V - View the list.
D - Delete numbers from the list.
U - Update or make some changes in the list.

-----------------------------------------------------------------------------------------------------------------------------

Once you have chosen the view option. You will have another set of options from the menu.

A(add) - The two consecutive numbers that you've added to the list will produce an ouput of num1 + num2 = sum.

S(subtract) - The two consecutive numbers that you've added to the list will produce an ouput of num1 - num2 = difference.

M(multiply) - The two consecutive numbers that you've added to the list will produce an ouput of num1 * num2 = product.

D(divide) - The two consecutive numbers that you've added to the list will produce an ouput of num1 / num2 = quotient.

-----------------------------------------------------------------------------------------------------------------------------

Conditions:

1. You can't add once the list is full (max of 10 sets).

2. You can't delete from the list if it is empty.

3. You must use methods in accomplishing this program.

-----------------------------------------------------------------------------------------------------------------------------
· ·