Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with fixing my codes and also I have written TODO in my utils.cpp file. My files are Dinosaur.cpp , Dinosaur.hpp , homework01.cpp

I need help with fixing my codes and also I have written "TODO" in my utils.cpp file.
My files are "Dinosaur.cpp" , "Dinosaur.hpp" , "homework01.cpp" , "utils.cpp" and "utils.hpp".
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
tha "Dinosaur.hpp c. homework01.cpp c. utils.cpp Dinosaur.cpp "Dinosaur.hpp c c homework01.cpp c utils.cpp hh utils.hpp virtuel voic roar() cons \{ \} std:s cout "Roar! I am the protector" std: iendl; \}; vircual nStegosaurus(); class Brachiosaurus : public Dinosaur \{ public: Brachiosaurus (). Dinosaur (6,0){} varcuat void roar() cons \{ \} std: : cout "Roar! I will kill Dinosaur" std: :endl; virtual Brachiosaurus(); 3; class Chicken : public Dinosaurf peblic: Chicken() : Dinosaur (6,6){} virtual void roar() const \} std: : cout "OMG! I am the weakest.... 3; viritul Chicken(); Minclede "Stegosaurus. hpp" "include "Dinosaur.hpp" "wincluce "utils, hpp"| Finclude Finclude using nemespace std; int main(){ I/cout "Hello "; srand(time(nuilpci)); const in' NUM_DINOS =4; Dinosaur* competitors [NUM_DINOS] \{ gew Tyrannosaurus(), hew Stegosaurus(), 3; new Brachiosaurus(), nov: Chicken() welcome(competitors); display (competitors, NUM_DINOS); conquer (competitors, NUM_DINOS); display (competitors, NUM_DINOS); victoryMessage(competitors, NUM_DINOS); for ( inti=0;i

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

More Books

Students also viewed these Databases questions

Question

What have you done that shows initiative and willingness to work?

Answered: 1 week ago