1. Write a program in C++ that calculates and prints the Total cost of a pet depending on the cost without insurance read from the user and the insurance fee for each pet according to the following rules: - A dog that is male costs $50. - A dog that is female costs $80. - A cat that is male costs $40. - A cat that is female costs $60. - A bird or reptile costs nothing. - Any other animal generates an error message. "Sorry!!.. You have typed a wrong animal!!" The program should prompt the user for the appropriate information, using a code to determine the kind of animal (i.e. D
This looks like your assignment. I suggest you try and solve it your self. If you get stuck on any aspect of it the i will be willing to help you out.
denyekwe is right. First write your program and no matter how many bugs it has we will help you figure them out. :)
Join our real-time social learning platform and learn together with your friends!