I am beginner in C#. I am a junior developer and I have an assignment. I need your help. Note this can result in a job as a junior developer for me so I would appreciate any help I can get on how to solve this assignment below. Which functions are appropriate in the following scenario? Can you please guide me in the right direction whit this one. Please help me.
The task:
Language C # using .NET Core
-
Imagine a village where there are 100 houses. In each house lives a homeowner.
-
One day (first round) a zombie comes and visits a randomly selected house.
-
After the visit, the owner of the house is infected and we have two zombies who go next round.
-
Run as many rounds as needed until all homeowners become zombies.
Remember:
- Zombies have no memory of what house they have already been in. This means that they can go to empty houses.
- The program should run ten times and present how many rounds it took before everyone became zombies and then show an average number of those rounds.
Present results in a console app or a MVC app.
Aucun commentaire:
Enregistrer un commentaire