ITECH 1400 Foundations of Programming, Federation University
ARE YOU LOOKING FOR RELIABLE ITECH1400 FOUNDATIONS OF PROGRAMMING ASSIGNMENT HELP SERVICES? EXPERTSMINDS.COM IS RIGHT CHOICE AS YOUR STUDY PARTNER!
Question: Provide a Python script which will calculate the Biorhythms for an individual and present the data graphically using libraries and a common algorithm.
Answer: #importing required builtin modules
import datetime as dt
from numpy import sin
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from pylab import figure
#reading Date of birth from user
print('Reading Date of Birth....')
day=int(input('enter Day of DOB:'))
month=int(input('enter Month of DOB:'))
year=int(input('enter Year of DOB:'))
#converting individual date components into a date object
dob=dt.date(year,month,day)
#reading target date from user
print('Reading Target Date....')
day=int(input('enter Day :'))
month=int(input('enter Month :'))
year=int(input('enter Year :'))
#converting individual date components into a date object
td=dt.date(year,month,day)
Ageindays=(td-dob).days
listofdays=[i for i in range(Ageindays-20,Ageindays+20) ]
average=[]
#calculating physical,emotional and intellectual skills of an individual
listofPhySkill=[100*sin(2*3.14*i/23) for i in listofdays]
listofEmoSkill=[100*sin(2*3.14*i/28) for i in listofdays]
listofIntellSkill=[100*sin(2*3.14*i/33) for i in listofdays]
for i in range(len(listofdays)):
t=(listofPhySkill[i]+listofEmoSkill[i]+listofIntellSkill[i])/3
average.append(t)
NEVER LOSE YOUR CHANCE TO EXCEL IN ITECH1400 FOUNDATIONS OF PROGRAMMING ASSIGNMENT - HIRE BEST QUALITY TUTOR FOR ASSIGNMENT HELP!
#Calculating values for x-axis
listofxaxislabels=[dt.date.fromordinal(i) for i in listofdays]
fig, ax = plt.subplots()
#ploting curve for physical values
plt.plot(listofxaxislabels,listofPhySkill,color='red',linewidth=3)
#ploting curve for emotional values
plt.plot(listofxaxislabels,listofEmoSkill,color='green',linewidth=3)
#ploting curve for intellectual values
plt.plot(listofxaxislabels,listofIntellSkill,color='blue',linewidth=3)
plt.plot(listofxaxislabels,average,color='yellow',linewidth=3,linestyle='dashed')
#displaying legend for the graph
plt.legend([' Physical', 'Emotional','Intellectual','Average'])
#plt.gcf().xaxis.set_major_formatter(mdates.DateFormatter('%d/%b'))
cc=plt.gcf()
dateFmt = mdates.DateFormatter('%d/%b')
ax.xaxis.set_major_formatter(dateFmt)
fig.autofmt_xdate()
#plt.gcf().autofmt_xdate()
#ax.xaxis.set_major_formatter(mdates.DateFormatter('%m/%d/%Y'))
#displaying title for the graph
t='BioRhythms graph DOB:'+str(dob)+' and Target date:'+str(td)
plt.title(t)
#making graph visible on the screen
plt.show()
GET ASSURED A++ GRADE IN EACH ITECH1400 FOUNDATIONS OF PROGRAMMING ASSIGNMENT ORDER - ORDER FOR ORIGINALLY WRITTEN SOLUTIONS!
Access our Federation University assignment help service for different courses and units such as:
- ITECH1003 - Network Protocols & Services Assignment Help
- ITECH1004 - Introduction To Multimedia Assignment Help
- ITECH1005 - Business Information Systems Assignment Help
- ITECH1006 - Database Management Systems Assignment Help
- ITECH1100 - Understanding The Digital Revolution Assignment Help
- ITECH1101 - It Problem Solving Assignment Help
- ITECH1102 - Networking And Security Assignment Help
- ITECH1103 - Big Data And Analytics Assignment Help
- ITECH1104 - Cloud And Enterprise Computing Assignment Help
- ITECH1300 - Mobile Computing Platforms And Development Fundamentals Assignment Help