ITECH1400 Foundations of Programming Assignment - Biorhythms, Federation University, Australia
Provide a Python script which will calculate the Biorhythms for an individual and present the data graphically using libraries and a common algorithm. Develop a Python application that can display Biorhythms for a person given their date of birth and the target date. You should be able to provide the Biorhythms for a suitable spread around the target date as well.
ORDER NEW BIORHYTHMS PYTHON APPLICATION ASSIGNMENT & GET 100% ORIGINAL SOLUTION AND QUALITY WRITTEN CONTENTS IN WELL FORMATS AND PROPER REFERENCING.
Answer - Biorhythm
In this Biorhythm application we are calculating the physical, emotional and Intellectual skills of an individual person. In order to calculate these values we need individual person's Date of Birth and target date. The following formulas are used for calculating physical, emotional and Intellectual skills of an individual:
a. Physical = sin(2*PI*t/23)
b. emotional = sin(2*PI*t/28)
c. Intellectual skills = sin(2*PI*t/33)
GET GUARANTEED SATISFACTION OR MONEY BACK UNDER BIORHYTHMS PYTHON APPLICATION ASSIGNMENT HELP SERVICES OF EXPERTSMINDS.COM - ORDER TODAY NEW COPY OF THIS ASSIGNMENT!
Program Code:
#importing required builtin modules
import datetime as dt
from numpy import sin
import matplotlib.pyplot as plt
#function for reading input date from user
def readingInputDate(inp):
day=int(input('enter Day of your '+ inp+':'))
month=int(input('enter Month of your '+ inp+':'))
year=int(input('enter Year of your '+ inp+':'))
#converting individual date components into a date object
resultDate=dt.date(year,month,day)
return resultDate
#function to find diffenernce in days between DOB and Target date
def noOfDaysBetweenDOBTarget(Dob,Td):
return (Td-Dob).days
#function to find values to be displayed on xaxis
def CalculateXaxisValues(dayslist):
xaxis=[]
for i in dayslist:
xaxis.append(dt.date.fromordinal(i))
return xaxis
#function finds physical values for an individual based on his DOB and Target date
def CalculatePhysicalList(dayslist):
phyList=[]
for i in dayslist:
phyList.append(100*sin(2*3.14*i/23))
return phyList
#function finds emotional values for an individual based on his DOB and Target date
def CalculateEmotionalList(dayslist):
emoList=[]
for i in dayslist:
emoList.append(100*sin(2*3.14*i/28))
return emoList
#function finds intellectual values for an individual based on his DOB and Target date
def CalculateIntellectualList(dayslist):
intellList=[]
for i in dayslist:
intellList.append(100*sin(2*3.14*i/33))
return intellList
#reading Date of birth from user
print('Reading Date of Birth....')
dateOfBirth=readingInputDate('Date of Birth')
#reading target date from user
print('Reading Target Date....')
dateOfTarget=readingInputDate('Target Date')
gapInDays=noOfDaysBetweenDOBTarget(dateOfBirth,dateOfTarget)
DaysList=[]
for i in range(gapInDays-10,gapInDays+10):
DaysList.append(i)
#calculating physical,emotional and intellectual values of an individual
ValuesForphysical=CalculatePhysicalList(DaysList)
ValuesForEmotional=CalculateEmotionalList(DaysList)
ValuesForIntellectualline=CalculateIntellectualList(DaysList)
#Calculating values for x-axis
XaxisList=CalculateXaxisValues(DaysList)
'''print(XaxisList,len(XaxisList))
print(ValuesForphysical,len(ValuesForphysical))
print('''
#ploting curve for physical values
plt.plot(XaxisList,ValuesForphysical)
#ploting curve for emotional values
plt.plot(XaxisList,ValuesForEmotional)
#ploting curve for intellectual values
plt.plot(XaxisList,ValuesForIntellectualline)
#displaying legend for the graph
plt.legend([' Physical', 'Emotional','Intellectual'])
#displaying title for the graph
plt.title('Individual BioRhythms graph for DOB:'+str(dateOfBirth)+' and Target date:'+str(dateOfTarget))
#making graph visible on the screen
plt.show()
Conclusion:
By Implementing this program, I understood how to use sin() function and how to plot graphs in python.
DO WANT TO HIRE TUTOR FOR ORIGINAL BIORHYTHMS PYTHON APPLICATION ASSIGNMENT SOLUTION? AVAIL QUALITY BIORHYTHMS PYTHON APPLICATION ASSIGNMENT WRITING SERVICE AT BEST RATES!
Acquire our Federation University, Australia Assignment Help services for major related courses and academic units such as -
- ITECH2003 - WEB DESIGN ASSIGNMENT HELP
- ITECH1000 - PROGRAMMING ASSIGNMENT HELP
- ITECH2002 - SYSTEMS MODELLING ASSIGNMENT HELP
- ITECH3104 - GAME PROGRAMMING ASSIGNMENT HELP
- ITECH3220 - SYSTEMS PROGRAMMING ASSIGNMENT HELP
- ITECH1103 - BIG DATA AND ANALYTICS ASSIGNMENT HELP
- ITECH1102 - NETWORKING AND SECURITY ASSIGNMENT HELP
- ITECH3107 - MOBILE DEVICE PROGRAMMING ASSIGNMENT HELP
- ITECH3229 - MOBILE DEVICE PROGRAMMING ASSIGNMENT HELP
- ITECH1104 - CLOUD AND ENTERPRISE COMPUTING ASSIGNMENT HELP
- ITECH2001 - GAME DEVELOPMENT FUNDAMENTALS ASSIGNMENT HELP
- ITECH2000 - MOBILE DEVELOPMENT FUNDAMENTALS ASSIGNMENT HELP
- ITECH3205 - COMPUTER GRAPHICS AND ANIMATION PROGRAMMING ASSIGNMENT HELP
- ITECH3218 - C PROGRAMMING, DATA STRUCTURES AND ALGORITHMS ASSIGNMENT HELP
- ITECH1300 - MOBILE COMPUTING PLATFORMS AND DEVELOPMENT FUNDAMENTALS ASSIGNMENT HELP