-
Notifications
You must be signed in to change notification settings - Fork 0
/
Py2_ACT_Task2_nscarfe.py
52 lines (51 loc) · 1.58 KB
/
Py2_ACT_Task2_nscarfe.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Activity 2 Task 2 Part A and B
# File: Py2_ACT_Task_nscarfe.py
# Date: 13 September 2018
# By: Nicholas Giovanni Scarfe
# nscarfe
# Stella Erickson
# ericks30
# Emily Tonkovich
# etonkovi
# Gautam Fotedar
# gfotedar
# Section: 1
# Team: 20
#
# ELECTRONIC SIGNATURE
# Nicholas Giovanni Scarfe
# Stella Erickson
# Emily Tonkovich
# Gautam Fotedar
#
# The electronic signatures above indicate that the program
# submitted for evaluation is the combined effort of all
# team members and that each member of the team was an
# equal participant in its creation. In addition, each
# member of the team has a general understanding of
# all aspects of the program development and execution.
#
# A BRIEF DESCRIPTION OF WHAT THE PROGRAM OR FUNCTION DOES
# This program takes differnt aspects of a rover and prints
# the distance the rover has driven and the required solar panel
# area power it
#---------------------------------------------------
# Inputs
#---------------------------------------------------
speed = 1
time = 2
power = 100
irradiance = 590
efficiency = 0.25
#---------------------------------------------------
# Computations
#---------------------------------------------------
def distanceRover(speed,time):
return (speed * time)
def solarPanelArea(requPow, solarIrradiance,matEfficiency):
return (requPow/(solarIrradiance * matEfficiency))
#---------------------------------------------------
# Outputs
#---------------------------------------------------
print(distanceRover(speed,time))
print(solarPanelArea(power, irradiance, efficiency))