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")
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
2 answers
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
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