Domestication was one of the major campaign message of a political party in Ghana. All it means is buy and eat what you produce locally. The government has decided to impose 200% tax on all imported food which can be produced locally. Upon discussion with various stake holders, it was agreed that the tax should be reduced to 120%. On a trial basis the following food items were tagged as the base for the comparison (yam, maize, rice, millet, plantain, cassava). You are to write a c++ program that will; a) Request for the name, price of imported food item and compare with the base. b) A tax of 5% is imposed on every food item, however if the imported food is in the base when compared, then an extra 120% tax based on the tax charged is added. c) Display the following results; 1. name of food item 2. normal tax charged 3. extra tax charged if any
Domestication was one of the major campaign message of a political party in Ghana. All it means is buy and eat what you produce locally. The government has decided to impose 200% tax on all imported food which can be produced locally. Upon discussion with various stake holders, it was agreed that the tax should be reduced to 120%. On a trial basis the following food items were tagged as the base for the comparison (yam, maize, rice, millet, plantain, cassava). You are to write a c++ program that will;
a) Request for the name, price of imported food item and compare with the base.
b) A tax of 5% is imposed on every food item, however if the imported food is in the base when compared, then an extra 120% tax based on the tax charged is added.
c) Display the following results;
1. name of food item
2. normal tax charged
3. extra tax charged if any
Step by step
Solved in 3 steps with 1 images