Question
What is the primary role of semantic actions in
syntax-directed translation?Solution
Attaching values and performing computations during parsing
A seller marks up the price of an article by 35% and then gives a discount of 20%. What is the profit if the marked price of the article is ₹810?
An article costs ₹2000. It is sold at 10% loss. By what percent should the selling price be increased to make 20% profit on cost?
- The price of a sofa is marked at Rs. 5600. It is sold after allowing successive discounts of 20% and 10%. Determine the final selling price.
- A shopkeeper earned a profit of 28% on a gadget, while another shopkeeper sold the same gadget for a 20% profit. If the first shopkeeper’s profit was Rs....
The ratio of the cost price and selling price of a product is 3:2. If the product was marked up by 50% and later a discount of Rs. 500 was applied, dete...
The cost price of 20 mangoes is Rs.208. Because of bad quality of mangoes, the shopkeeper has to sell mangoes at a loss that is equal to selling price o...
A shopkeeper bought three items: a microwave for Rs. 25w, a refrigerator for Rs. 40w, and a washing machine for Rs. 35w. The average price of these item...
The marked price of a dishwasher is set 25% higher than its cost price. The seller then applies two successive discounts, first 15% and then an addition...
A shopkeeper marked an article Rs. 850 above its cost price and sold it after giving a discount of 30% and earned a profit of 20%. Find the cost price o...
A merchant sold a gadget incurring a 30% loss. If he had marked up the price by 20% and then given a 15% discount, he would have earned Rs. 120 more. Fi...