Hello. Today we are going to have an easy daily challenge.
You and several friends are in a party. You are asked to buy items in store. They will pay you back after all.
Each person only want one item in the store, but not everybody wants the same thing.
Mainly two input:
- Name of your friends, what they want and how many
- Items in the store and the price of them
Name of them and how much they need to pay you back.
“John”; “item 1”; “5”
“Chloe”; “item 3”; “3”
“item 1; 12, item 2; 51, item 3; 38”
Forgot to say, all input should be text block.
Good but i think u have misunderstood my question. The output should be
(Name): (amount of $)
And it should be a list of various people
For the items, it is not fixed so you have to make an input for items in the store too.
That’s better! I don’t want to frustrate you, but the input and output should be a string
I am sure it can be done by adding a very few blocks
Btw, why didn’t u use any input variable in the procedure, instead u use the global variables? Just a minor thing
Cuz I didn’t add this to the question. My mistakes
1 day past, here is my solution
Since @dora_paz has the closest and is the only one to ans so the solution belongs to dora
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.