Representing Algebraic Expressions with Tables of Values in Python
Practice! Alter the code to create the output shown.
1 –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/img17-1.jpg)
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/solution1-1024x205.jpg)
2 –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/img18-1.jpg)
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/solution2-1024x193.jpg)
3 –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/img19-1.jpg)
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/solution3-1-1024x195.jpg)
4 –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/img20-1.jpg)
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/solution4-1024x192.jpg)
5 – (nonlinear)
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/img21-1.jpg)
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/solution5a-1024x192.jpg)
OR
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/solution5b-1024x191.jpg)
Incorporating Constants
Practice! Alter the code to create the output shown:
1 –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/img25-1.jpg)
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/constantssolution1-1024x191.jpg)
2 –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/img26-1.jpg)
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/constantsolution2-1024x193.jpg)
Writing Expressions for Real-Life Applications
Practice! Write code that will output a table of values to represent the following scenarios.
1 – Hanaa gets reimbursed $0.45 for her kilometers when she volunteers to deliver meals to the community. Write code that will generate a chart to show the amount she will be paid up to and including 100 km.
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/realsolution1-1024x742.jpg)
2 – Immaculate gets paid a flat rate of $10 and $0.30 per flyer she delivers in her neighbourhood. Write code that will generate a chart to show the amount she will be paid up to 50 flyers.
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/realsolution2-1024x742.jpg)
3 – A vehicle has a purchase price of $24 500. Each year, its value depreciates an average of $1500. Write code to generate a chart that will show the value of the car in comparison to the number of years owned over the course of 5 years.
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/realsolution3-1024x598.jpg)
4 – A backyard pond contains 300 gallons of water. It loses about 5 gallons of water per day due to evaporation. Write code to generate a chart that will show the capacity of the pond in gallons over the course of 7 days.
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/realsolution4-1024x595.jpg)
5 – (Exponential Growth) The population of a city at the beginning of 2022 was 10 000 people. It was noticed that the population of the city grows at a steady rate of 5 % annually. Write code to show the projected population size for the next 10 years.
Solution –
![](https://outreach.tvolearn.com/wp-content/uploads/2022/02/realsolution5-1024x738.jpg)