Develop a menu-driven program that inputs two numbers and, at the user’s

option, finds their sum, difference, product, or quotient.
top-down modular approach and pseudocode
to design a suitable program to solve it.
I am having so much trouble with this I got two zeros already for this assignment

I am a Girl

Class - 9
School name - SSMS
Station para road
Pin - 736121
Name - Simran Maheswari
My favourite hobby is - drawing and Dance
My favourite Actor is - Sushant Singh Rajput and Varun Dhawan

To develop a menu-driven program that performs various operations on two numbers, we can follow a top-down modular approach and use pseudocode. Below is the pseudocode for this program:

1. Define a function called "sum_numbers" that takes two numbers as input and returns their sum.
- Read the input for the two numbers.
- Calculate the sum of the two numbers.
- Return the sum.

2. Define a function called "subtract_numbers" that takes two numbers as input and returns their difference.
- Read the input for the two numbers.
- Calculate the difference between the two numbers.
- Return the difference.

3. Define a function called "multiply_numbers" that takes two numbers as input and returns their product.
- Read the input for the two numbers.
- Calculate the product of the two numbers.
- Return the product.

4. Define a function called "divide_numbers" that takes two numbers as input and returns their quotient.
- Read the input for the two numbers.
- Check if the second number is zero (to avoid division by zero).
- If the second number is zero, display an error message and return.
- If the second number is not zero, calculate the quotient of the two numbers.
- Return the quotient.

5. Define the main program.
- Display a menu with the following options:
1. Find the sum of two numbers
2. Find the difference of two numbers
3. Find the product of two numbers
4. Find the quotient of two numbers
- Prompt the user to enter their choice.
- Use conditional statements to call the corresponding functions based on the user's choice.
- Display the result obtained from the selected operation.
- Repeat the above steps until the user chooses to exit.

Implementing this pseudocode into a specific programming language (e.g., Python, C++, etc.) will require the appropriate syntax and the specific logic of the programming language.

Don't worry, I'm here to help you with this assignment. We'll break down the problem into smaller steps and use a top-down modular approach to solve it. Let's start by creating a menu-driven program that performs different operations on two numbers. Here's a pseudocode representation of the program:

1. Start
2. Define a function to display the menu:
- Print "Choose an operation:"
- Print "1. Add"
- Print "2. Subtract"
- Print "3. Multiply"
- Print "4. Divide"
- Print "5. Exit"
3. Define a function to perform addition:
- Input num1
- Input num2
- sum = num1 + num2
- Print "The sum is: ", sum
4. Define a function to perform subtraction:
- Input num1
- Input num2
- difference = num1 - num2
- Print "The difference is: ", difference
5. Define a function to perform multiplication:
- Input num1
- Input num2
- product = num1 * num2
- Print "The product is: ", product
6. Define a function to perform division:
- Input num1
- Input num2
- quotient = num1 / num2
- Print "The quotient is: ", quotient
7. Start the main program:
- Repeat:
- Call the menu function to display the options
- Input choice from the user
- If choice == 1:
- Call the addition function
- If choice == 2:
- Call the subtraction function
- If choice == 3:
- Call the multiplication function
- If choice == 4:
- Call the division function
- If choice == 5:
- Print "Exiting program"
- Break the loop
- Else:
- Print "Invalid choice, please try again"
8. End

To implement this pseudocode into a programming language, you can choose any language you are comfortable with. Let me know which language you'd like to use, and I can help you write the code.

Declare Num1 As Float

Declare Num2 As Float
Declare Choice As Character
Write "Basic Calculator"
Write "Enter a number"
Input Num1
Write "Enter another number:"
Input Num2
Write "To Add: Type A
To Subtract Type S
To Multiply Type M
To Divide Type D
Input Choice
If Choice == "A" Then
Declare Sum As Float
Set Sum =
Write "
Else
If Choice == "S" Then
Declare Difference As Float
Set Difference =
Write "
Else
If Choice == "M" Then
Declare Product As Float
Set Product =
Write "
Else If Choice == "D" Then
Declare Quotient As Float
If Num2 != 0 Then
Set Quotient =
Write "The Quotient of "+ Num1 + "and" + Num2 +" Is:" +Quotient
Else
Write "No Quotient--Divisor Is 0"
End If (Num2)
End If ("D")
End If ("M")
End If ("S")
End If ("A")