Завершен

Simple bingo program with c#

Here's the program which should be pretty simple to a regular programmer:

User will write 10 numbers (from 1 to 25) which will be saved in an array. After the user has chosen some numbers the game will begin.

7 numbers (from 1 to 25) will now be randomly selected. Every number will checked if it matches the user's numbers.

After that, the results are shown for example "You got 4 matching numbers out of 7 "

Let the user play many times. Save the "matched numbers"(result number) in a list. For example. User got 3 matching numbers the first time. 3 will be saved in the first position of the list. You can create this list in a method. When the user stops playing, the overall statistics will be shown (printed)

Don't let the user choose a number twice. The 10 numbers(bingo numbers) have to be diffrent from eachother.

The randomly selected numbers also have to be unique. For instance if a randomly selected number has already been selected you can "ignore" the number and let the program randomly select another number

Helpful code:

If the random numbers have to be different then they will also have to be saved in another array.

To compare every number in both arrays you can do a loop such as this.

bool nailed_it = false;

foreach (int ball in random_number)

{

foreach (int number in chosen_numbers)

(if number == ball)

nailed_it = true;

if (nailed_it == true)

// Code for matched

else

// Code for failed

nailed_it = false;

Use "for" or "foreach"-loops.

Remember the code has to be BEGINNER level. So I can understand at least some of it.

I forgot. The program only has to work in Visual Basics, as in CMD.exe (Command Shell). You don't need to make graphics or other stuff. It's just the code.

Навыки: Программирование на C#, PHP, Архитектура ПО

Показать больше: matches statistics, C# beginner , simple game bingo, array random numbers, bingo program code, numbers array program, create bingo, bingo game program, bingo program, simple php program result, code bingo game, simple bingo code, bingo game code, bingo programmer, program reader simple captcha, simple ball, program android simple, write program java simple calculator application jsp servlet, simple loop program, java program implement simple tcp chat

О работодателе:
( 1 отзыв ) Storvreta, Sweden

ID проекта: #7458365

Поручен:

armizo

i am a senior software engineer and responsible for creating a web and desktop applications using different languages and technologies if u r interested just send me a message thank you and good luck

€10 EUR за 1 день
(3 отзывов(-а))
2.4

8 фрилансеров(-а) готовы выполнить эту работу в среднем за €22

vano101

A proposal has not yet been provided

€25 EUR за 1 день
(727 отзывов(-а))
7.0
maxkoryukov

A proposal has not yet been provided

€14 EUR за 2 дней(-я)
(1 отзыв)
2.6
eitan1195

can the code be written in python?if so,i can complete it within 3 hours tops Awaiting your rapid reply

€23 EUR за 1 день
(3 отзывов(-а))
2.6
BlackmarkTech

Check Out My Portfolio for Previous Work ... Your work will be Excellent Thank you Very Much ............................................................

€29 EUR за 1 день
(3 отзывов(-а))
1.9
saidmohamed11

I am a talented c# Developer with years of experience and educational training. I have also worked for many years of my career as a ASP.NET/EF5 . If hired by you I will deliver my best work at a high standard. I look Больше

€21 EUR за 1 день
(4 отзывов(-а))
2.0
nikspatel007

Hello, Thank you for nice description. With the description you posted, I think I have pretty good idea of what can be done. I understand that you are beginner so I will try to keep the code simple and will not use Больше

€29 EUR за 1 день
(0 отзывов(-а))
0.0
dkarapetyan

Предложение еще не подано

€23 EUR за 3 дней(-я)
(1 отзыв)
0.0