Question Details

[solution]: Can someone tell me what I'm doing wrong and Please help me with


Answer download
More Details:

Can someone tell me what I'm doing wrong and Please help me with this assignment. When I try to run the charmander side ,nothing happens. P.S. Im using C++ visual studio.

This is what I have so far :


#include <iostream>

using namespace std;

int main(int argc, char** argv) {

int choice;

cout << "Mom: Wake up Riley!" << endl;

cout << "Riley: ...." << endl;

cout << "Mom: Hurry up or you will be late for your Pokemon training!" << endl;

cout << "" << endl;

cout << "Our story begins with Riley, our main character." << endl;

cout << "He has been waiting for this day for a very long time." << endl;

cout << "Today is the day Riley gets his pokedex from Professor Maple." << endl;

cout << "Professor Maple is at the lab waiting for Riley to arrive." << endl;

cout << "Now lets follow our young hero on his epic journey ..." << endl;

cout << "" << endl;

cout << "A little while later Riley arrives..." << endl;

cout << "Professor Maple teaches Riley everything he needs to" << endl;

cout << "know about the world of Pokemon." << endl;

cout << "She hands Riley a pokedex and makes him choose" << endl;

cout << "between two pokeballs that contain distinct pokemon." << endl;

cout << "" << endl;

cout << "----------------------------------------" << endl;

cout << "Please choose a pokemon: " << endl;

cout << "1.Squirtle" << endl;

cout << "2.Charmander" << endl;

cin >> choice;

if (choice >= 1 && choice <= 2)

{

switch (choice)

{

case 1:

{

int userInput;


cout << "----------------------------------------" << endl;

cout << "" << endl;

cout << "You have choosen Squirtle" << endl;

cout << "You leave the lab and encounter Melody outside." << endl;

cout << "Melody: I challenge you to a battle!" << endl;

cout << "" << endl;

cout << "Melody: I choose you Pikachu, fight for me!" << endl;

cout << "(Pikachu attacks first with thunderbolt!)" << endl;

cout << "" << endl;

cout << "WHAT WILL YOU DO RILEY?!" << endl;

cout << "" << endl;

cout << "----------------------------------------" << endl;

cout << "Should Squirtle use Hydro Pump or Water Pulse?" << endl;

cout << "Enter 1 for Hydro Pump or 2 for Water Pulse" << endl;

cin >> userInput;


if (userInput == 1)

{

cout << "" << endl;

cout << "Hydro Pump is effective against thunderbolt because Pickachu was stationary" << endl;

cout << "Pikachu is unable to battle! Congratulations, You Win !!!" << endl;

}

else

{

cout << "" << endl;

cout << "Squirtle used Water Pulse but it wasn't able to attack Pikachu." << endl;

cout << "Squirtle is unable to battle! GAME OVER!" << endl;

cout << "Enter 0 to exit" << endl;

cin >> userInput;

}


if (userInput == 0)

{

exit(0);

}





break;

}

case 2:

{

cout << "----------------------------------------" << endl;

cout << "" << endl;

cout << "You have choosen Charmander" << endl;

cout << "You leave the lab and encounter Melody outside." << endl;

cout << "Melody: I challenge you to a battle!" << endl;

cout << "" << endl;

cout << "Melody:I choose you Bulbasaur, fight for me!" << endl;

cout << "(Bulbusaur attacks first with razor leaf!)" << endl;

cout << "" << endl;

cout << "WHAT WILL YOU DO RILEY?!" << endl;

cout << "" << endl;

cout << "----------------------------------------" << endl;

cout << "Should Charmander use Flame thrower or Ember ?" << endl;

cout << "Enter 1 for Flame thrower or 2 for Ember" << endl;

cin >> userInput;


if (userInput == 1)

{

cout << "" << endl;

cout << "Flamethrower is effective against razor leaf because greater attack stats " << endl;

cout << "Bulbasaur is unable to battle! Congratulations, You Win !!!" << endl;

}

else

{

cout << "" << endl;

cout << "Ember attacks are 40 stats and uneffective." << endl;

cout << "Charmander is unable to battle! GAME OVER!" << endl;

cout << "Enter 0 to exit" << endl;

}


if (userInput == 0)

{

exit(0);

}






break;

}




default:

cout << "You can only choose from 2 Pokemon" << endl;

}

}

else if (choice != 4)

{

cout << "You can only choose from 2 Pokemon" << endl;

}



system("pause");

return 0;

}

 


Solution details:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Dec 18, 2020

PRICE: $18.50

Solution~00031148083883.zip (25.37 KB)

Buy this answer for only: $18.50

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free copy (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Dec 18, 2020

EXPERT

Tutor

ANSWER RATING

GET INSTANT HELP/h4>

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN YOUR SET DEADLINE.

Order Now