Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

I am having a really hard time with my assignment can anyone help me with this pseudocode

OpenStudy (anonymous):

Post the code!

OpenStudy (anonymous):

now i dont want to give you the entire code as that would be cheating but here is the psuedocode: Class Dinosaur() { public: Int earliest fossil found variable Int latest fossil found variable constructor() ~destructor() Void calculate_age(int age) }; Dinosaur::constructor() { Earliest age = 0; Latest age = 0; } Dinosaur::~dinosaur { } Void Dinosaur::calculate_age(int age) { Age = earliest fossil - latest fossil Return age; } Int main() { Dinosaus trex; Trex.earliest fossil= 67 million years; Trex.latest fossil = 65 million years Dinosaur diplodocus Diplodocus.earliest fossil = 155 million years Diplodocus.latest fossil = 150 million years cout<<"the diplodocus lived "<<diplodocus.calculate_age()<<" years\n\n" cout<<"the Trex lived lived "<<trex.calculate_age()<<" years"

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!