Computer Studies
A salesman sold 14 chairs at the rate of ₹ 275 each and 3 tables at the rate of ₹ 650 each. Write a program in QBASIC to calculate the total sale.
QBASIC
QBASIC: Cmds & Stmts
93 Likes
Answer
Cls
Let C = 14
Let COSTC = C * 275
Let T = 3
Let COSTT = T * 650
Let TOTAL = COSTC + COSTT
Print "TOTAL SALE= Rs. "; TOTAL
ENDOutput
TOTAL SALE = Rs. 5800
Answered By
52 Likes
Related Questions
There are 28 boys and 22 girls in your class. Write a program in QBASIC to find the percentage of boys and girls in the class.
The base and height of a triangle are 15 cm and 10 cm respectively. Write a program in QBASIC to calculate the area of the triangle.
(Hint: Area of a triangle = 1 / 2 * base * height)Write a program in QBASIC to calculate the area and circumference of a circle of the radius 14 cm.
(Hint: Area of a circle = 22/7 * r2, Circumference = 2 * 22/7 * r)Write a program in QBASIC to find the value of the given expressions when a = 10, b = 5, c = 2.
- a2 +b3 +c4
- (a + b)2
- a2 + b2
- (a - b + c)2