Hi, I'm confused about an assignment. I'm not sure what to do and would like some help.

An example:
Write a program that obtains two integer numbers from the user.

It will print out the sum of those numbers.

Pseudo code:

Prompt user to enter first integer number

Validate user entry is an integer number

If Not an Integer entry, ask user to reenter first integer number

Prompt user to enter second integer number

Validate user entry is an integer number

If Not an Integer entry, ask user to reenter second integer number

Compute sum by adding first integer to second integer number

Display sum of two integer numbers as final result

In this project, create the pseudo code from the following request.

The Pseudo Code must have some sort of menu that allows users to make selections to do a particular calculation such as addition, multiplication, and subtraction
It must provide five menu items that allow the user to make a calculation. Each of the 5 menu items should perform different calculations such as addition, multiplication, and subtraction. There should be an additional menu item for user to exit the program. So, total of 6 menu item.
The Pseudo Code must allow user to enter valid number entries to perform selected calculation option
Once the user selects a menu item, Pseudo Code should perform user entries, calculation, display the result to the user, and return to the main menu. User should be presented with main menu until they choose option to exit the program.
For additional reference and guidelines visit this link.

Please note that this is not a programming assignment. Please do not submit working program as part of the project.

How do I begin?

menu driven code

okay so start off the program with a menu pattern.

create an int or char called menuchoice
Have variables (int or char) from 1-6 or A-F as your menu option

After you coded your menu, let your user enter their 2 numbers. So create 2 for int variables (num1,num2).

now either use if,then statements or switch-case.

if (menuchoice == 1) {
num1 + num2}
[print answer]
};

else if (menuchoice == 2) {
num1 - num2;
[print answer]
};
--------
keep going until all conditions are coded.
Since he wants you to display the menu again after a condition is done, put all the if-else or switch-case in a do while loop.
do {
[code]
} while false

else if (menuchoice == 6){
[code to quit program]
};

-everything should be in the do while loop except all your variables
-while loop could be used as well
Note: never learned syntax for python but this is the rough layout of what your program should look like.

hope this helps :^)

To begin, you can break down the problem and create a step-by-step plan for your program. Here's an example of how you can create pseudo code for this assignment:

1. Display the main menu to the user:

a. Prompt the user to make a selection from the menu.
b. Validate the user's selection to ensure it is a valid option. If not, ask the user to reenter the selection.

2. Based on the user's selection, perform the desired operation:

a. If the user selects addition:

- Prompt the user to enter two numbers.
- Validate that both entries are valid numbers.
- Calculate the sum of the two numbers.
- Display the result to the user.
- Return to the main menu.

b. If the user selects multiplication:

- Prompt the user to enter two numbers.
- Validate that both entries are valid numbers.
- Calculate the product of the two numbers.
- Display the result to the user.
- Return to the main menu.

c. If the user selects subtraction:

- Prompt the user to enter two numbers.
- Validate that both entries are valid numbers.
- Calculate the difference between the two numbers.
- Display the result to the user.
- Return to the main menu.

d. If the user selects exit:

- End the program.

3. Repeat steps 1 and 2 until the user chooses to exit the program.

Remember, this is just a pseudo code outline to help you plan your program. You will need to convert these steps into your chosen programming language to implement the functionality.

To begin, you can follow these steps to create the pseudo code for your assignment:

1. Start by declaring the variables needed to store the user's choices and the two integer numbers.

2. Display a menu to the user with the six options: addition, multiplication, subtraction, and an option to exit the program.

3. Prompt the user to enter their choice (1-6) from the menu.

4. Validate the user's entry to ensure it is a valid number (1-6).

5. If the entry is not a valid number, ask the user to re-enter their choice.

6. If the user chooses to exit the program (option 6), terminate the program.

7. If the user selects any of the calculation options (options 1-5), prompt the user to enter the first integer number.

8. Validate the user's entry to ensure it is an integer.

9. If the entry is not an integer, ask the user to re-enter the first integer number.

10. Prompt the user to enter the second integer number.

11. Validate the user's entry to ensure it is an integer.

12. If the entry is not an integer, ask the user to re-enter the second integer number.

13. Perform the selected calculation based on the user's choice.

14. Display the result to the user.

15. Return to the main menu.

16. Continue to present the main menu until the user chooses to exit the program.

Following these steps will help you create the pseudo code for your program. Remember, pseudo code is a way of representing your program's logic using plain English or any other language you are comfortable with. It does not need to be syntactically correct like a programming language. Its purpose is to outline the steps your program will take to solve the problem.