Question: Language C++ Please include a VSCODE screenshot and the code Objectives Compile and run C++ code Take user inputs and produce outputs Understand C++ data



Language C++
Please include a VSCODE screenshot and the code
Objectives Compile and run C++ code Take user inputs and produce outputs Understand C++ data types Perform arithmetic operations O You can find a document called Homework 2 Background in the Week 4 Module on Canvas. This document will serve as a reference for some fundamental syntax in C++. Submissions C++ files. All files should be named as specified in each question, and they should compile and run on VSCode to earn full points. TAs will be grading the style of your code and comments. Please see the Style Guide file on Canvas and Homework 2 Background file on Canvas, both in the Week 4 Module. At the top of each file, write your name with the following format: // CS1300 Spring 2021 // Author: Punith Sandhu // Recitation: 123 - TA name // Homework 2 - Problem # ... When you are finished with all the questions, zip all files. Submit the zip file under the assignment Homework 2 on Canvas. Code Runner. The correctness of your program will be graded by Code Runner. You can modify your code and re-submit (press Check again) as many times as you need to, until the assignment due date. You can find Code Runner on the page titled Homework 2 - Coderunner in the Week 4 Module. Question 4 (8 points): Zootopia Population The Zootopia government wants to estimate the number of anthropomorphic animals such as Fox, Bunny and Sloth, that would be living in the city after a certain number of years. Based on this estimate, the city mayor is planning to take the necessary measures for their safety and welfare. Write a program to estimate the number of foxes, bunnies and sloths that would be living after a certain number of years ('X'). x will be taken as a user input. Currently, there are 11,000 foxes, 23,000 bunnies, and 19,000 sloths in Zootopia. The government has provided us with the birth and death rates per year (mentioned below) to come up with an accurate estimation. Animal Birth rate Death rate Fox 110 80 Bunny 90 100 Sloth 120 50 Expected output (bold is user input) Enter the number of years to estimate: 10 There will be 11300 foxes, 22900 bunnies, and 19700 sloths in 10 years. The file should be named as zootopia Population.cpp. Don't forget to head over to the Coderunner assignment on Canvas and paste your solution in the answer box
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
