Cite

Write code in python programming to make a system that makes the cost management of the gardens easy

Topic:  
Words: 599
Updated on: October 4, 2021

On-Time Delivery!

Get your customized and 100% plagiarism-free paper done 
in as little as 3 hours
Let's Start
322 specialists online

Question: Use python: Rin Morrison is a famous gardener who is well known for her artistic gardens spread across
Canada. For Summer 2022, the government of Canada wishes to hire her to plant gardens
across Canada for spectators to freely view. For this project to go ahead, Rin Morrison hires
you as a programmer to create a system that makes the cost management of the gardens
easier for her.
Each garden has the same layout with the length of the garden being L, the length of the
gate/entryway being g, and the radius of the pond being r1. The width of the gate is equal to
the length of the gate plus the radius of the pond. Gardens are made up of four different aspects: grass, flowerbeds, coniferous trees, and
deciduous trees.
The cost to hire a daily gardener for a garden is as follows:
1) The area of the grass in the garden (m2) multiplied 0.25 (Cg)
2) The area of the flowerbeds in the garden (m2) multiplied by 0.4 (Cf)
3) The number of coniferous trees multiplied by 8 (Cc)
4) The number of deciduous trees multiplied by 10 (Cd)
(Cg + Cf + (Cc+ Cd)/2) * Zone Cost = Cost of Daily Garden Upkeep
Cost of Daily Garden Upkeep * 60 Days of Gardening = Summer Cost
A .csv file is given (Gardens.csv) with all the information needed to calculate the daily cost of
each garden.
The columns are as follows:
Garden ID, Garden Name, Radius of Pond, Gate Length, Length of Garden,
Percentage of Grass, Percentage of Flowerbeds, Number of Coniferous Trees,
Number of Deciduous Trees, Sprinkler Status
Each Garden ID is represented as G####XX where the #### is a number and XX represents
one of the Canadian provinces/territories: Example: G0001NB is a garden located in New Brunswick. Below is the zone cost for each zone: Read in all the data and store it in your preferred data structure (ex: Dictionary, Object Array,
etc.)
A.txt file is given which stores all the selections made by the user to interact with the garden
data stored (GardenInput.txt). There are various actions that can be performed by a user
with the table below showing the input. Exporting a Garden: This selection should store the important garden information in a
specific order decided by the table below in a .txt file. The overall cost of the project should
be saved on the first line of the output file. Only the following information should be saved to
the exported file for each garden: Garden ID, Garden Name, Cost, Sprinkler Status Optimize Cost: Sprinkler systems can be purchased and installed for $14000 at a garden. If
the cost of running a garden is more than $14000 a summer, the cost of the garden can be
updated to the cost of a sprinkler. A flag should also be set to show that a garden is using a
sprinkler instead of a gardener. These changes to the garden costs and sprinkler status
should be permanent.
Save Garden Information: This function takes the dictionary and the name of a file the user
wishes to save the gardens to in as parameters. The function then saves only all the
contents of the dictionary to another .txt file by the passed in name. Each row should
resemble:
Garden ID,Garden Title,Radius of Pond,Gate Length,Length of Garden,Percentage
of Grass,Percentage of Flowerbeds,Number of Coniferous Trees,Number of
Deciduous Trees,Sprinkler Status,
Pay close attention that it is saved as a comma delimited list. Hint: To see if this function
worked properly, you could rerun your program with the saved file as the input file.

Rate this post

Get a custom essay specifically for you

Get your customized and 100% plagiarism-free paper done 
in as little as 3 hours
Let's Start
322 specialists online

Cite this paper

Select style

Sweetstudy.co (December 6, 2022) Write code in python programming to make a system that makes the cost management of the gardens easy. Retrieved from https://sweetstudy.co/write-code-in-python-programming-to-make-a-system-that-makes-the-cost-management-of-the-gardens-easy/.
"Write code in python programming to make a system that makes the cost management of the gardens easy." Sweetstudy.co - December 6, 2022, https://sweetstudy.co/write-code-in-python-programming-to-make-a-system-that-makes-the-cost-management-of-the-gardens-easy/
Sweetstudy.co October 4, 2021 Write code in python programming to make a system that makes the cost management of the gardens easy., viewed December 6, 2022,<https://sweetstudy.co/write-code-in-python-programming-to-make-a-system-that-makes-the-cost-management-of-the-gardens-easy/>
Sweetstudy.co - Write code in python programming to make a system that makes the cost management of the gardens easy. [Internet]. [Accessed December 6, 2022]. Available from: https://sweetstudy.co/write-code-in-python-programming-to-make-a-system-that-makes-the-cost-management-of-the-gardens-easy/
"Write code in python programming to make a system that makes the cost management of the gardens easy." Sweetstudy.co - Accessed December 6, 2022. https://sweetstudy.co/write-code-in-python-programming-to-make-a-system-that-makes-the-cost-management-of-the-gardens-easy/
"Write code in python programming to make a system that makes the cost management of the gardens easy." Sweetstudy.co [Online]. Available: https://sweetstudy.co/write-code-in-python-programming-to-make-a-system-that-makes-the-cost-management-of-the-gardens-easy/. [Accessed: December 6, 2022]

3 Hours

We'll deliver a 100% original paper this fast
Get Help Now
322

writers available online

Company:

STUDY INC LTD
Registration Number: 13645224

Address:

71-75 Shelton Street
Covent Garden
London
WC2H 9JQ
UNITED KINGDOM

Contact:

+1-817-546-4770

support@sweetstudy.co
Disclaimer: Services provided by tutorage are to be used for research purposes only. If you use an assignment from Tutorage website, it should be referenced accordingly.
arrow-leftarrow-right