Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help using Dev-C++ Program 1) Submit a program where the user needs to guess a number from 1 - 3. Your program needs to

Please help using "Dev-C++"

Program 1)

Submit a program where the user needs to guess a number from 1 - 3. Your program needs to generate a random number and let the user know if they guessed it correctly.

Program 2 )

Create a program that will check if the user can vote. The program should only ask for the user's age. If the user is 18 years of age or older, then a message should display stating that they are eligible to register to vote.

Program 3)

Create an RPG game. Your game should consist of two characters: the enemy and the user's character.

Your program needs to ask the user what they want to name their character and the name will be used throughout the game. The enemy and the user's character will start with 10 points as their health bar.

Your program should generate two random numbers [from 1 - 10]. These random numbers will be the damage dealt by each of two characters. Each random number needs to be displayed to the user as the damage dealt by the specific character. The health bar for each of the two characters should be updated depending on the damage dealt by the random numbers.

At the end you are to compare each of the two character's health bar and whoever has the highest health points wins the game. A message should be displayed to the user showing who won the game. Also, if the health bar of the user is zero, a "Game Over" message should be displayed to the user.

Sample output of RPG:

Welcome to the RPG Game!

Enter your character's name: Luigi

Luigi and Enemy have 10 points in health bar.

Enemy attacks!

Enemy deals 7 points in damage!

Luigi health bar is now 3 points.

Luigi attacks!

Luigi deals 4 points in damage!

Enemy health bar is now 6 points.

Enemy wins the battle!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

=+5 How does HRM relate to efforts to increase innovation?

Answered: 1 week ago