(2)Whats x C Can You KIE1004 HCourse X New Tab 331) Gor x Home G erproay 14it/Downloads/KIE10049%202017 6 20questions%208%20sKIE1004 pikachu, water for bulbasaur, and fire for charmander. The power is the maximum combat capability of the creature, wh

BY USING C++

(2)Whats x C Can You KIE1004 HCourse X New Tab 331) Gor x Home G erproay 14it/Downloads/KIE10049%202017 6 20questions%208%20solutions %20(2) ,pdf Pokémon Go is a location-based augmented reality mobile game hat becomes very popular recently. In the game, players use a mobile device’s GPS (global positioning system) capability to locate, capture, battle, and train virtual creatures, called Pokémon, who appear on the screen as if they were in the same real-world location as the player. In this quest., we are going to investigate some uf the possible implementations for the mechanisms used in this game. Create a class called pokemon that contains the following elements type, attribute and power. Element type records the kind of creature, which is assumed to be one of these three kinds: pikachu, bulbasaur or charmander. The attribute of each creature is electric for 7/8 KIE1004 pikachu, water for bulbasaur, and fire for charmander. The power is the maximum combat capability of the creature, which is a random number between 1 to 2000. KIG2007 examtip…pptx A Canceled WhatsApp Image…peg P Au Dy TCEpo iaDsenct prt sc sysra 112 CO JL JL 6 tr P R Y P E G1 Hl IL KIE1004 pikachu, water for bulbasaur, and fire for charmander. The power is the maximum combat capability of the creature, which is a random number between 1 to 2000 The pokemon class contains four main member functions Constructor function that allows a user to select which type of pokemon he/she wants, then assigned the right attribute based on the selected type and finally generate a random power Display Info function that shows the details of the pokemon (eg. “Your pokemon is Pikachu, which has electric attribute, and the power is 200. increasePower function that increases the power of a pokemon for a random value between 1 to 20. However, the maximum value of power should not exceed 2000 iv. Get Power function that returns a random value between 1 and the value of power Use the given template to create the pokemon class and you may need to create some additional helping functions class pokemon pokemon::pok emon void pokemon::displayInfo () void pokemon: :increase Power () int pokemon: :getPower () (15 markah/marks) TAMAT END



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *