Computer Science, asked by socialllll7338, 1 year ago

Write a QBASIC program to make an ordering system for a restraunt

Answers

Answered by BhavyaRajput3
4
PRINT "Select an Option"
PRINT "1. Addition"
PRINT "2. Subtraction"
PRINT "3. Multiplycation"
PRINT "4. Division"
PRINT "Option No.: "
INPUT opt
CLS
SELECT CASE opt
CASE 1
PRINT "You have selected Addition"
PRINT "Enter a no.:"
INPUT n1
PRINT "Enter second no.:"
INPUT n2
PRINT "The Sum is "; n1 + n2
CASE 2
PRINT "You have selected Subtraction"
PRINT "Enter a no.:"
INPUT n1
PRINT "Enter second no.:"
INPUT n2
PRINT "Difference between "; n1; " and "; n2; " is "; n1 - n2
CASE 3
PRINT "You have selected Multiplycation"
PRINT "Enter a no."
INPUT n1
PRINT "Enter second no.:"
INPUT n2
PRINT "Product is "; n1 * n2
CASE 4
PRINT "You have Selected Division"
PRINT "Enter a no.:"
INPUT n1
PRINT "Enter second no.:"
INPUT n2
PRINT "The Quotient is "; n1 / n2; " and the remainder is "; n1 MOD n2
CASE ELSE
PRINT "Invalid Option Number"
END SELECT
Similar questions