Computer Studies
Write a program in QBASIC format to print the total amount paid to the shopkeeper for purchasing the following items:
Number of exercise books = 10
Number of brown paper rolls = 4
QBASIC
QBASIC: Input Statement
31 Likes
Answer
Cls
Let books = 10
Let rolls = 4
Input "Enter the price of exercise books "; p1
Input "Enter the price of paper rolls "; p2
Let total = books * p1 + rolls * p2
Print "Total Amount = Rs. "; total
EndOutput
Enter the price of exercise books ? 200
Enter the price of paper rolls ? 20
Total Amount = Rs. 2080
Answered By
10 Likes
Related Questions
Write a program in QBASIC to make a name sticker which includes your name, class, roll no., subject and school using INPUT statement. Display the output in the given format:
Name : Class : Roll No.: Subject : School :Write a program in QBASIC format to accept the length of a rod in millimetres and express the same in centimetres and metres.
Write a program in QBASIC to find the value of the given expressions after taking a suitable value of a and b from the console:
- a2+b 2
- (a+b) / ab
You want to calculate the total runs made by Sachin Tendulkar only in terms of centuries and half-centuries in test matches. Write a program in the QBASIC format taking the numbers of centuries and half-centuries as input. Display the total runs made by Sachin in centuries and half-centuries separately.