HW OF NEXT CLASS

Write the following programs in QBASIC:

1.Reema visited a book fair with ₹1,000. She bought 2 storybooks costing ₹175 each and 3 activity books costing ₹120 each. She also bought a diary for ₹90.How much money did she spend in total, and how much money is left with her after all the purchases?

2.A school planned a picnic for 120 students. The cost per student was ₹450, which included food, travel, and entry fees. The school paid ₹12,000 in advance to the bus company. What is the total amount collected from the students?After paying the advance, how much money was left to be paid?

3.A farmer has a rectangular field that is 60 meters long and 40 meters wide. He wants to put a fence all around it and also plant grass in the entire area.What is the total length of the fencing required? What is the area to be covered with grass?

4.A chocolate factory produces 2,400 chocolates in a day. Out of these, 1,050 are packed in boxes of 10 each, 900 are packed in boxes of 5 each, and the remaining are used for testing. How many boxes of 10 and 5 chocolates are packed?How many chocolates are left for testing?

5.A toy shop had 1,500 toys. During a festive season, 275 toys were sold on Monday, 325 on Tuesday, 425 on Wednesday, and 150 on Thursday. The shop received 300 new toys on Friday.How many toys were sold during the week?How many toys were there in the shop at the end of Friday?

6.Mr. Sharma earns ₹45,000 per month. He spends ₹15,000 on rent and groceries, ₹10,000 on his children’s education, and ₹5,000 on savings. He also pays ₹3,500 for transportation and other expenses.How much does Mr. Sharma spend in total?How much money is left with him after all expenses?

7.In a school, there are 6 examination halls. Each hall has 12 rows with 10 benches in each row. Every bench can seat 2 students.How many students can be seated in all the examination halls?

8.A square garden has sides of length 25 meters. A path 2 meters wide is made inside along all four sides of the garden.What is the area of the path?

9.A family went on a road trip covering 4 cities. From their home to the first city was 125 km, then 187 km to the second, 95 km to the third, and finally 215 km to the fourth. They returned home in a single trip of 450 km.What was the total distance covered during the entire trip?How much more did they travel while going than while returning?

10.A water tank has a capacity of 2,000 liters. Water is filled into it using a pipe that adds 150 liters every 10 minutes. Due to a leak, 30 liters of water leak out every 10 minutes. How much net water is added in one hour?How long will it take to fill the tank completely?

Leave a Comment