Are You In Need Of ITECH1400 Biorhythms Assignment Help And Assessment Writing Service? Get Help From Skilled Tutors!

Home   Course  
Previous << || >> Next

ITECH1400 Biorhythms, Federation University, Australia

Foundations Of Programming

ARE YOU LOOKING FOR RELIABLE ITECH1400 BIORHYTHMS ASSIGNMENT HELP SERVICES? EXPERTSMINDS.COM IS RIGHT CHOICE AS YOUR STUDY PARTNER!

Question: Develop a Python application that can display Biorhythms for a person given their date of birth and the target date.

Answer: Biorhtyhms are an attempt to predict various aspects of a person's life through simple mathematical cycles. It was postulated that there exist three cycles - physical, emotional and intellectual, with time periods of 23,28 and 33 days.

The cycles are sine waves, and go from +ve to -ve and vice versa. Biorhtyhms used to be of much interest earlier, but it is settled to be a pseudo-science now.

The positive phase of each cycle is a period when the person will experience +ve aspects in his life. For instance, if his emotional cycle is above the axis, he will experience a sense of happiness. The same is the case with other cycles too.

Biorhythms are calculated based on the number of days elapsed from the date of birth. This is done by the python program.

The python program asks the user to enter his date of birth, and then sketches the three cycles over a spread of dates entered by the user. The output is plotted to the text file biorhythm.txt.

Please find the output in the .txt file.

PSEUDOCODE

import datetime
from math import *
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt

phy = [] #physical values
emo =[] #emotional values
intl= [] #intellectual values

dob = Get date of birth from user
datespread = Get count from user

date1 = today - datespread/2
date2 = today + datespread/2

for i = date1 to date2
phy(i) = 15*sin(2*pi*(i-dob)/23)
emo(i) = 15*sin(2*pi*(i-dob)/28)
intl(i) = 15*sin(2*pi*(i-dob)/33)

Plot graphs of phy(i), emo(i), intl(i) versues i

SOURCE CODE

import datetime
from math import *

import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt

pi = 3.141592653589793

phy = [] #physical values
emo =[] #emotional values
intl= [] #intellectual values
d = [] #dates

dob = input('Enter date of birth mm/dd/yyyy: ').split('/')
dspread = int(input('Enter number of dates: '))+20
bday = datetime.date(int(dob[2]), int(dob[0]), int(dob[1]))
today = datetime.date.today()
dcount = (today-bday).days

date = datetime.datetime.now() - datetime.timedelta(days=20)
for temp in range(dcount-20,dcount+dspread):
a = float(15*sin(2*pi*temp/23))
b = float(15*sin(2*pi*temp/28))
c = float(15*sin(2*pi*temp/33))

phy.append(a)
emo.append(b)
intl.append(c)
d.append(date)
date = date + datetime.timedelta(days=1)

print('-'*60)
print('Biorhythm for person with dob: ',bday.strftime('%d %b %Y'))
print('Today is ',today.strftime('%d %b %Y'))
print('# of days from dob = ',dcount)
print('-'*60)

fig = plt.figure(figsize=(10, 8))
ax = fig.add_subplot(111)
fig.suptitle('Biorhythm chart (Blue - phy, Red - emo, Green - intl)', fontsize=20)
plt.xlabel('Dates', fontsize=18)
plt.ylabel('P/I/E levels', fontsize=16)

ax.plot(d,phy)
ax.plot(d,emo)
ax.plot(d,intl)

fig.savefig('graph.png')

EXPERTSMINDS.COM ACCEPTS INSTANT AND SHORT DEADLINES ORDER FOR ITECH1400 BIORHYTHMS ASSIGNMENT - ORDER TODAY FOR EXCELLENCE!

Graph:

ITECH1400 Biorhythms 1.jpg

ITECH1400 Biorhythms 2.jpg

ITECH1400 Biorhythms 3.jpg

ORDER NEW ITECH1400 BIORHYTHMS ASSIGNMENT AND GET 100% ORIGINAL SOLUTION AND QUALITY WRITTEN CONTENTS IN WELL FORMATS AND PROPER REFERENCING!

Conclusion: A python program was written to accept the date of birth from the user, and plot the physical, emotional and intellectual sine curves over a spread of dates around the present date. The curves are sine curves going from positive to negative, and vice versa and have been scaled to -15,+15.

Acquire reliable and genuine online Federation University, Australia assignment help service for its related courses and units, such as:

  • ITECH1300 - Mobile Computing Platforms And Development Fundamentals Assignment Help
  • ITECH2000 - Mobile Development Fundamentals Assignment Help
  • ITECH2001 - Game Development Fundamentals Assignment Help
  • ITECH2002 - Systems Modelling Assignment Help
  • ITECH2003 - Web Design Assignment Help
  • ITECH2004 - Data Modelling Assignment Help
  • ITECH2100 - Programming Assignment Help
  • ITECH2102 - Digital Image Manipulation Assignment Help
  • ITECH2103 - Open Source & Linux Assignment Help
  • ITECH2104 - Industry Awareness Assignment Help
Tag This :- EM19187ASH2905PYTH ITECH1400 Biorhythms Assignment Help

get assignment Quote

Assignment Samples

    Queuing Methodology Assignment Help

    queuing methodology assignment help - this work has been done with the intention of helping the reader to understand more about queuing methodologies .

Get Academic Excellence with Best Skilled Tutor! Order Assignment Now! Submit Assignment