I need someone to write my code for this task which requires a tuple to be made
I need to write a function, water_flow_out, which takes in the parameters described in the
incomplete docstring below and returns a tuple. The 0th element in this returned tuple is the
mass of water which flows out of the upper reservoir during time period, 0. The 1st element in the
tuple is the outflow of water during time period, 1. The 2nd element in the tuple is the outflow of
water during time period, 2, etc. The last element in the tuple is the outflow in the last time period
before the water reduces to, or below water_base_mass.
Im also require to implement these equations:
water_start_of_night = water_base_mass + water_pumped_daily
water_in_reservoiri+1 = water_mass_in_reservoiri − water_outi
into thee function
Tim smith 09:29
This is an incomplete docustring thats provided:
def water_flow_out(water_pumped_daily, water_base_mass, time_interval):
2 """
3 Parameters:
4 water_pumped_daily (float): water transferred to upper
5 reservoir during the day [kg]
6 water_base_mass (float): the mass of water in the reservoir at
7 the start of every day (i.e. before upward pumping
8 commences) [kg]
9 time_interval (float): discrete time increment used during the
10 computer simulation [sec]
11
12 Returns:
13 tuple[float]: tuple of the outflows of water out in
14 each time interval as water is released under gravity [kg]
We have also been given this code aswell to help:
#Task 3
from math import sqrt
GRAVITY = 9.81
WATER_DENSITY = 1000 # [kg/m^3]
RESERVOIR_FOOTPRINT = 200 * 200 # [m^2]
OUTLET_AREA = 1 # [m^2]
MAIN_PROMPT = """Please enter a command: """
HELP = """
The available commands are:
'h' - provide help message
'r' - read input parameters for various scenarios from a file
'p c' - print a table with the cost savings for the various pumped
electricity scenarios
'p c e' - print a table with the cost savings and the available average
night power for the various pumped electricity scenarios
'q' - quit
"""
INVALID = "Please enter a valid command."
SEPARATOR = "#"
def load_data(directory, file_name):
"""
Reads in a data file, converts the information into floating point
numbers, then returns the numbers in tuples.
"""
output = ()
with open(directory + '/' + file_name, 'r') as file:
for line in [login to view URL]():
output += (tuple([float(x) for x in [login to view URL]().split(', ')]),)
return output
def water_mass_drained(water_mass, time_increment):
"""
Function to determine the amount of water drained from the reservoir over a specified time increment,
given the amount of water currently in the reservoir and the
"""
water_height = water_mass / WATER_DENSITY / RESERVOIR_FOOTPRINT
energy_diff = water_height * GRAVITY # [J/kg]
water_speed = sqrt(energy_diff * 2) # [m/s]
water_flow = WATER_DENSITY * water_speed * OUTLET_AREA # [kg/s]
water_out = water_flow * time_increment # [kg]
return water_out
Hi
I have checked your project description. I have excellent programming and
development skills. Contact me with all the details and requirements for
your project for further discussion. I will provide you with dedicated support
and follow-up.
Regards
Farah Khan
Hello Sir/Madam
I have development experience in various Programming Languages, OOP,
Data Structures, Database Driven applications, APIs, Files handling
and Data Transformation, ETL and various frameworks. I assure you an
excellent solution of your project within the time frame and exactly
according to the requirements.
Thanks
@CodingHelpLine
Hello
My name is Ahmed, i'm a top rated freelancer.
i worked over 400 projects and over 700 hours doing java and python projects.
small overview of feedback on my profile
"you want to get your projects completed with quality? Hire Ahmed. Highly recommended."
"Thoroughly satisfied with Ahmed, and would recommend him to anyone looking for an excellent developer!"
"Highly recommended. Very smart and well experience"
looking forward to work with you
Regards
Hi there, I am a solution architect from Turkey. I am expert on Python. I checked your description and It seems clear. I can help you. Please contact me. Thanks.
✅ Full Experiences and Profound Knowledge in ⭐Python Programming⭐✅.
Hi, how are you?
I am very confident to complete your project perfectly.
I can start your work right now.
Of course, since I am new here, then my job history and feedback score on freelancer is not sufficient, but you don’t need to worry!
I can guarantee the quality of the job and deliver the result on time.
I hope we will discuss in more detail via chat.
Best regards!
https://www.freelancer.com/u/KawlCarter
Hi
Python is my major skill.
I can deliver this project in the next couple of days.
Let's discuss the project in more detail.
Looking forward to hearing from you.
Regards
Hello
I am a professional python developer. My main specializations are automation, web scrapers and bots development.
I have already developed over 200 scrapers. From the simplest (for example, a competitor's price collector) to complex parsers (with authorization, bypassing captcha, rotating ips and others) which can collect millions of products from amazon.
I have done web scrapers for:
- Amazon
- Instagram
- Facebook
- Google
- Twitter
- LinkedIn
- Pinterest
- Walmart
- And many others
For scraping I use:
- Python
- Requests
- BeautifulSoup
- Selenium
- Scrapy
- Pyautogui
- Undetected Chromedriver
- Rotating ips
I can bypass:
- CloudFlare
- IP blocking
- Captcha
- Authorization required
- Other limitations
Django / PostgreSQL
For big scraping projects I usually use Django with PostgreSQL. This allows us to store information in a database for further processing and use. I also set up an administration area which allows us to check the data and set up scraper configs.
If you need a professional solution in this area - I am ready to cooperate.
I am ready to make a sample script before we start
Regards, Oleg
Hello, I'm Mohammad.
I'm Python/Web Scraping/Automation Expert.
I’ve reviewed your requirements and checked the attached file, it perfectly matches my skills.
I am interested in working with you on this project.
Ready to assist you and start working immediately, can we have a discussion, please?
Hi!
I have 5 years of experience in ⭐ python for OOP ⭐.
I've read the project description carefully and can start work immediately.
Let`s discuss about more detail of project deadline and budget in chat box.
Best regards!
More than four years of experience in Machine Learning with Python. Sound exposure to functions, data structures, data indexing, etc.
The tasks demand simple Python programming skills. Looking forward to discussing this with you further.
I'm confident that I can help you on it after I read the specs and the attached files.
I ask for at least $150AUD since it will take at least 4-5 hours including reading the docs, coding and troubleshooting.
If you can afford it, let me know.
Hello i did read your description about python code
I interested about your project and think i can do your project well.
i be happy to have a conversation in chat with you
I am a highly motivated and skilled professional with one year of experience in utilizing Python to effectively analyze, scrape and automate various tasks. My expertise in web scraping and automation testing in Python has enabled me to competently gather and analyze data whilst increasing efficiency and productivity. My technical expertise is complemented by my analytical skills, enabling me to effectively identify trends and patterns within datasets. I possess excellent problem solving skills and thrive delivering high-quality results with attention to detail.
I can help you with writing the function, water_flow_out. Here is my bid:
I estimate that this task will take me around 2 hours to complete, at a rate of $50 per hour, for a total bid of $100.
Please let me know if you have any questions or if you would like to proceed with my bid.
Greetings!
As a member of a team of highly experienced developers, I can help you with your project. I possess over 10 years of Python development experience. I look forward to discussing the finer points of your requirement with you.
Maheswaran
P.S. These values (297136.33234594524, 296915.525303218) should prompt you to contact us. I believe we have what you need.