Bazar
The sun π, shining very brightly on the sellers tents βΊ, shows no mercy in the midday heat of the day. And still, the glow of the traditional market, with the ever-smelling freshly picked local fruits πππ and vegetables πΆοΈπ₯ overshadows the notion of the nearly insufferable heat.
At this famous βall costs 10 $β bazar Saturday morning, the seller unfortunately fails at selling three types of goods 5 minutes before the bazar closes:
- Pink stuffed elephants π
- bright sun flowers π»
- and unstable cardboard bicycles π²
This is why he quickly got the idea to change the prices of the goods, however, not all in favour of the buyer.
- The pink stuffed elephantsβ prices increase by 3 $
- the bright sun flowers decrease by 5 $
- and the cardboard bicycles cost 2 $ more than the pink stuffed elephants in the end
A buyer comes by and buys one item each. Has the bazar seller gained or lost money by changing the prices compared to not changing the money? And how much money has he gained π€ or lost π?
The answer should have one of the following forms, depending if the bazar seller gained or lost money:
Gained 4$Lost 9$
| Category | story |
|---|---|
| Coding Level | beginner |
| Coding Ideas | increment, decrement, difference |
| Coding Languages | Code Solutions on GitHub β |
| Story Genre | descriptive |
| Story Content Key Words | market, bazar, buying, shopping |
| Story License | CC BY-NC-SA 4.0 International |
| Parental Rating | 6+ For Everyone |
| How To Quote Story | (Lilly-Elaia-ReedCode, adapted by StoryCoder.dev under CC BY-NC-SA 4.0 International) |
| Picture License | null |
| How to Quote Picture | (adapted by StoryCoder.dev under null) |
| Available Solutions | Dart |
| Title | Bazar |
| Author | Lilly-Elaia-ReedCode |
| Tags | 6+, bazar, beginner, buying, dart, decrement, descriptive, difference, increment, javascript, market, no-c, no-c#, no-c++, no-clojure, no-erlang, no-go, no-haskell, no-nim, no-perl, no-prolog, no-ruby, no-rust, no-swift, no-typescript, no-zig, python, shopping, story |
