Find Jobs
Hire Freelancers

Creating a quiz with animal names in C++ ONLY.

$10-30 USD

Завершено
Опублікований over 7 years ago

$10-30 USD

Оплачується при отриманні
In this game, a player is asked by computer to type in several animal names such as "dog," "cat," etc., in the beginning of the game session. There is no limit to the count of the names but these names must be space delimited. When entering a return key without typing anything (i.e., empty line), this process of input cycle ends. So, use getline() to realize this input logic - the concrete process to tokenize each name can be reproduced from lectured coding demonstration. The computer will pick up 1 to 3 names from those entered by the player. They are shuffled to produce a random word. The player will be asked to identify the names, given a hint of how many animals in that word. The player needs to type in names (or a name if asked one). Typing "?" will show the name list, and typing "quit" will end the game. When succeeding to answer in two consecutive rounds, the computer's challenge becomes harder by striking out a character one by one. The position to strike out is chosen at random. So, succeeding 4 consecutive times, the random word has two strikes out shown by underscore "_" characters. On the other hand, failing to answer in two consecutive rounds, the computer's challenge becomes easier by reducing the count of strikes out. The sample session follows. Enter at least five animal names, e.g., cat, dog, etc... > dog cat > snake zebra > tiger > 1: dog 2: cat 3: snake 4: zebra 5: tiger What are 2 animals in "gbzeoard" ? zebra dog Yes! What are 2 animals in "dgaoct" ? dog cat Yes! Succeeded two consecutive times, challenge goes up! What are 1 animal in "ezar_" ? zebra Yes! What are 1 animal in "do_" ? dog Yes! Succeeded two consecutive times, challenge goes up! What are 1 animal in "z__ae" ? zebra Yes! What are 2 animals in "okadg__n" ? dog snake Yes! Succeeded two consecutive times, challenge goes up! What are 1 animal in "_ke__" ? snake Yes! What are 2 animals in "e_d_g_ir" ? tiger dog Yes! Succeeded two consecutive times, challenge goes up! What are 3 animals in "et_s__era_ngk" ? cat zebra snake Nope! What are 1 animal in "__i__" ? dog snake Your number of input is incorrect. Enter again: dog Nope! Missed two consecutive times, challenge goes down! What are 1 animal in "___" ? cat Yes! What are 3 animals in "koge__zsaa_db" ? ? 1: dog 2: cat 3: snake 4: zebra 5: tiger Your number of input is incorrect. Enter again: quit Bye... To realize various randomized effects in the game, use random_shuffle() or shuffle() algorithm function wisely to reduce the amount of coding. You can find many examples on the Web -- see here ([login to view URL]) for instance.
ID проекту: 11720709

Про проект

10 пропозицій(-ї)
Дистанційний проект
Активність 8 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
Make quality, best price, because of I am beginner here. But you can see my profile on Codechef: [login to view URL] 2-nd in July Challenge: [login to view URL]
$10 USD за 1 день
5,0 (2 відгуки(-ів))
1,3
1,3
10 фрілансерів(-и) готові виконати цю роботу у середньому за $30 USD
Аватарка користувача
Hello. It looks like easy project, it is possible to complete it in few hours of pure working time.
$26 USD за 1 день
4,9 (750 відгуки(-ів))
7,0
7,0
Аватарка користувача
Hi, i have a lot of experience in c and c++ programming. i can easily complete this task for you. we can have a chat. thanks
$60 USD за 1 день
4,8 (67 відгуки(-ів))
5,5
5,5
Аватарка користувача
Hello, I am expert in java/c/c++ and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first check your work then release the payments. Pm me for further details. Thank You!
$30 USD за 1 день
5,0 (44 відгуки(-ів))
4,6
4,6
Аватарка користувача
$30 USD за 1 день
5,0 (14 відгуки(-ів))
4,1
4,1
Аватарка користувача
Hello, my name's Jorge, I am an electronics engineer, I have experience using C++ for embedded projects, so I am capable of completing your project. Please contact me to discuss every details with you in advance, I'd be glad to answer any doubt you may have. Thanks for your time.
$28 USD за 2 дні(-в)
5,0 (2 відгуки(-ів))
3,6
3,6
Аватарка користувача
I'm a professional Programmer. i can have this done in 3 hours or less. (i say 3 hours only because i am busy at the moment)
$25 USD за 1 день
5,0 (2 відгуки(-ів))
0,0
0,0
Аватарка користувача
I have experience in C++ programming,and skilled in it. YOUR requirement is direct while I think there is also some difficulties,including human-computer interaction, accurate and precise shuffle algorithm. BUT I have the confidence in doing it completely and perfectly. A chance will prove my ability, thank you!
$45 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор UNITED STATES
SUNNYSIDE, United States
5,0
6
Спосіб оплати верифіковано
На сайті з вер. 14, 2016

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.