# Programming concepts

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

1. 👍
2. 👎
3. 👁
1. 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
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")

1. 👍
2. 👎
2. I am a Girl
Class - 9
School name - SSMS
Pin - 736121
Name - Simran Maheswari
My favourite hobby is - drawing and Dance
My favourite Actor is - Sushant Singh Rajput and Varun Dhawan

1. 👍
2. 👎

## Similar Questions

1. ### Pseudocode

Write an algorithm and pseudocode that represents a program that allows a user to enter two numbers. Your program should calculate the sum, difference (both directions), product, and quotient (both directions) of the two numbers.

2. ### Programming

Draw a flowchart or write pseudo code to represent the logic of a program that allows the user to enter values for the current year and the user’s birth year. The program outputs the age of the user this year. Preferably a

3. ### Cmin

Draw a flowchart and write pseudocode to represent the logic of a program that allows the user to enter two values. The program outputs the sum of and the difference between the two values.

4. ### computer programming

Design the logic for a program that allows a user to enter any amount of numbers up to 10 or until a sentinal value of -1 is entered. Then the program displays the count of the numbers entered and numeric average of the numbers

1. ### computer

Write an algorithm for a program that accepts a set of numbers and finds the smallest among them and computes the sum of the numbers accepted. The program stops when the user enters number 999. Convert the algorithm into flowchart

2. ### computer science

In this exercise you will create a program that computes the average of a collection of values entered by the user. The user will enter 0 as a sentinel value to indicate that no further values will be provided. Your program should

3. ### MATH

WRITE A SIMPLE BUT A COMPLETE FORTRAN PROGRAM TO COMPUTE THE AVERAGE OF SIX NUMBERS AND DISPLAY THE NUMBERS, SUM AND AVVERAGE. THE PROGRAM SHOULD TERMINATE WHEN ZERO IS ENTERED AS A NUMBER. THE PROGRAM SHOULD BE EDUCATIVE

4. ### Ic

Write an application that prompts the user for two integers and then prompts the user to enter an option as follows: 1 to add the two integers, 2 to subtract the second integer from the first, 3 to multiply the integers, and 4 to

1. ### Programming and Design

Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a

2. ### Computer Science

Write the pseudocode for a program that allows the user to input 2 numbers. The program prints out the sum and the product of the 2 numbers. Draw the flowchart.

3. ### Programming

Write a pseudocode program that asks the user for an integer between 1 and 12. The program is to calculate the times table for that number. So for example, if the user enters a 2, then the program has to calculate 2x1 and display

4. ### Intro to Software Developement

How do I make a Raptor flowchart program that asks the user to enter a 10 character telephone number in the format XXX-XXX-XXXX, that makes the program display the telephone number with any alphabetic characters that appeared in