Write a program in such a way that if I'm going to enter a random number from 1 to 5, and I get the food item and its price on separate lines (use '\n'). 1. Pizza, Rs 239 2. Burger, Rs 129 3. Pasta, Rs 179 4. French Fries, Rs 99 5. Sandwich, Rs 149 So, in this case if I enter 3, the output should print something like - Food item - Pasta Price - Rs 179
What are the developmental roles of Traditional and local government leaders in Namibia?
Suppose you have celebrated your 19th birthday. A rich uncle set up a trust fund
for you that will pay you R100 000 when you turn 25. If the relevant discount rate is
11 percent, how much is the fund worth today?
How does cultural setting of the African people contribute to public sector corruption tendencies?
Use diagrams and equations to distinguish between the three general types of allometric relationships.
1) Are some politicians in Africa viewed as mini god(s)? If so, how can we begin to change the way our leaders lead? (10)
Explain how gas secretion into the swimbladders of bony fish is possible.
In each of the following scenarios, explain and categorize the cost of inflation.
a. Because inflation has risen, the J. Crew clothing company decides to issue a new catalog monthly rather than quarterly.
b. Grandpa buys an annuity for $100,000 from an insurance company, which promises to pay him $10,000 a year for the rest of his life. After buying it, he is surprised that high inflation triples the price level over the next few years.
c. Maria lives in an economy with hyperinflation. Each day after being paid, she runs to the store as quickly as possible so she can spend her money before it loses value.
d. Gita lives in an economy with an inflation rate of 10 percent. Over the past year, she earned a return of $50,000 on her milliondollar portfolio of stocks and bonds. Because her tax rate is 20 percent, she paid $10,000 to the government.
e. Your father tells you that when he was your age, he worked for only $4 an hour. He suggests that you are lucky to have a job that pays $9 an hour
Assume the total cost of a tertiary education will be R75 000 when your child
enters university in 18 years. You presently have R7 000 to invest. What rate of
interest must you earn on your investment to cover the cost of your child’s tertiary
education?
Maximum Number of Books
There are multiple (T) bookstores in the area.Each shopkeeper has a list of B integers that represents the cost of each book.You have different pocket money(P) for each bookstore.Write a program to calculate the maximum number of books you can buy in each store with the corresponding pocket money.
Explanation
Given P = 600 and B = [120, 140, 110, 180, 120, 110] with a pocket money of 600, we can buy the books at index 0,1,2,4,5 , whose sum is 120+140+110+120+110 is equal to P.
Given P = 300 and B = [120 110 1300 130] with a pocket money of 300, we can buy the books at index 0,1 whose sum is 120 + 110 and is less than P.
Given P = 100 and B = [220 1000 500 2000] with pocket money of 100, we can't buy any book. So the output should be Retry.
Sample Input1
3
6 100
20 40 10 80 20 10
4 70
20 10 300 30
4 200
220 1000 500 2000
Sample Output1
5
3
Sample Input2
2
8 250
2070 1350 365 2750 30 20 140 240
4 500
1070 2893 2200 39
Sample Output2
3
1