Import Sys Initial Beginning Balance Account Balance Float 500 25 Defines Balanc

import sys

#Initial beginning balance

account_balance = float(500.25)

#defines balance

def account_balance():

 #print the beggining balance amount

  print(“Your current balance:n$%.2f”%account_balance)

#defines deposit

def deposit_amount():

#req user to input amt of depsit

 deposit_amount = float(input(“How much would you like to deposit?”))

   # calulated new bal with amt deposited

account_balance = account_balance + deposit_amount**** keeps erroring and i can’t figure out the issue?  account_balance = account_balance + deposit_amount

TypeError: unsupported operand type(s) for +: ‘function’ and ‘function’

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Important Use The Internet To Study Two Franchisees In Two Different Industries

IMPORTANT** Use the Internet to study two franchisees in two different industries (or sectors). Then, carefully evaluate and compare their “vertical restraints” for the purposes of assessing the consequences of these provisions for strategic decision making. “Vertical Restraints”Please respond to the following:From the your online research, evaluate and compare the “vertical restraints” of the TWO INDUSTRIES/ SECTORS for the purposes of assessing the consequences of these provisions for strategic decision making.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Import String From Graphics Import Tells The User What The Program Does Def Prin

import stringfrom graphics import *# tells the user what the program doesdef printGreeting():print “This program finds hailstone sequences of numbers that you input.”print “The output numbers are found based on if it is odd or even.”print “If the number is odd, it is multiplied by 3 and then 1 is added to”print “it. If the number is even its divided in half.”# gives the user menu optionsdef printMenu():print “ntI : View sequences for an Individual valuen”print “tR : View sequences for a Range of Valuesn”print “tL : find the Longest Chainn”print “tH : view a Histogram of chain lengths for a rangen”print “tQ : Quitnnn”# returns number if it is odddef isOdd(n):return n % 2 == 1# creates a sequence of numbers and prints them outdef hailstone(num):sequence = [num]print “n %d –>>” % num,while num != 1:# odd number is multiplied by 3 and then adds 1# number is added to sequenceif isOdd(num):sequence.append(num)num = (num * 3) + 1# even number is divided by 2# number is added to sequenceelse:sequence.append(num)num = num / 2# prints numbersif num != 1:print num, “–>>”,else:# determines length of sequence and prints lengthlength = len(sequence)print “; length = “, lengthreturn length# finds the longest sequence in a range of numbers does not print them out# for the L option on menudef hailstone2(num):length = 1while num != 1:if isOdd(num):num = (num * 3) + 1length = length + 1else:num = num / 2length = length +1return length# error checks for bad numbersdef getValidInt(question, min, max):# use a bad value to enter the loopvalue = max + 1# compose the promptprompt = question + ” (” + str(min) + “-” + str(max) + “): “# continue to get values until the user enters a valid onewhile value == “” or value < min or value > max:value = raw_input(prompt)if len(value) != 0:value = int(value)# return a valid valuereturn valuedef longChain():quest1 = “Enter the starting interger “quest2 = “Enter the ending interger “startNum = getValidInt(quest1, 1, 10000)stopNum = getValidInt(quest2, startNum + 1, 10000)largestChain = startNumfor i in range(startNum, stopNum+1):if largestChain <= hailstone2(i):largestChain = ilength = hailstone2(i)print largestChain, ” had the longest chain “, lengthdef histogram():# initialize variableslongestLength = 1list = []start = input(“Please enter the beginning interger for the range: “)for n in range(start, start + 10):length = hailstone2(n)list.append(length)if longestLength <= hailstone2(n):longestLength = nlength = hailstone2(n)print longestLengthprint listdef main():choice = ”quest1 = “Enter the starting interger “quest2 = “Enter the ending interger “quest3 = “Enter a number”printGreeting()# runs program until they quitwhile choice != “Q” and choice != “q”:printMenu()choice = raw_input(“Enter your Choice: “)# runs program for numbers in rangeif choice == “r” or choice == “R” :start = getValidInt(quest1, 1, 10000)stop = getValidInt(quest2, start, 10000)for i in range(start, stop +1):hailstone(i)elif choice == “i” or choice == “I”:indVal = input(“Enter a number (1-10000): “)hailstone(indVal)elif choice == “l” or choice == “L”:longChain()elif choice == “h” or choice ==”H”:histogram()else:print choice, “is not a valid choice”printMenu()choice = input(“Please enter your choice : “).upper() BUT I WANT TO use some methods from the graphics library to draw a histogram of chain lengths for a range of values using the drawHistogram() function. This histogram will be drawn in a window thats is 500*500 and entitle it as “Histogram of chainlength”.For the y axis,The length of the longest chain plus some room for the labels at the bottom where n is shown.For the x axis, We want to show bars for 10 values and histograms look better if there is some space between the bars AND we’ll need some space on the left for the lengths to be printed. Let’s try 20.i want to have a range of 10 values and just let the user pick the starting value.want to allow the user to draw histograms for more than one range of numbers during the running of the program, we’ll want to close the window after having enough time to view it. You should close the window after 10 seconds. You’ll need to use sleep() to do this.All handling of the graphics window should be done within the drawHistogram() function.histogram should look like thishttp://www.cs.umbc.edu/courses/201/fall11/images/histo2.jpgplease i will need much help, i forever appreciate it.thanks in advance

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Important Trends That Have Changed Since The Original Rm Algorithms Were Develop

  • Important trends that have changed since the original RM algorithms were developed?
  • What is the basis for the theory of price optimization?
  • Describe the elements of an optimization problem.
  • What is the goal for price optimization in hotels?
  • What role do competitive price effects play in the price optimization decision?
  • Why in today’s social world will price optimization general more revenue than traditional / original revenue management techniques?

McGuire, Kelly A. (2016). Hotel pricing in a social world: Driving value in the digital economy. Hoboken, NJ: John Wiley & Sons, Inc

Read chapter 2: Demystifying Price Optimization

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Import Random Class Person Object Friend Def Init Self Ssn Fname Lname Dob 0

I am working in Python and the question is for each person in the person list choose a number of friends (minimum is zero and maximum is size/200).  Assume this number is x.  Now you need to generate x locations of the friends and add them as friends to the list of friends of the current person.  The attached file shows that I have generated a random number using the random library.  However, how do I randomly select lines from the file and assign them to the friends list in the class.  I have attached both my code and the file I am using.

Once I complete this one, I will need to write a function that will sort the list by the number of friends in a descending order.  I think I have a function that will do that, but I am unable to test it, because I don’t think I am doing the first part correctly.  Then finally, for each person, I will need to find all people who have that person as a friend.  I think if I can figure out the first part, I can do the rest, but I am stuck on properly assigning friends.

  • Attachment 1
  • Attachment 2
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Important To Note The Sentence In Item 13 Of The Instruction Data That States As

Need help putting this information into the correct tax forms. Thank you

5. Important to note the sentence in item #13 of the instruction data that states &quot;assume that the self—employed health insurance deduction is $384&quot;. This means enter as adeduction on Form 1040. line 29 $384, assume this is an acceptable deduction for CA with no adjustment. (no further explanation provided) 6. Be sure to view the State Tax Video to help support the Schedule A Income tax deduction calculation. FORM 1040 LINE 44. TAX. Included in the tax calculation for the Cortez family are two taxes. a. Use the Qualified Dividends and Capital Gain Tax Worksheet to calculate regulartaxI]. Use the Form 8314 to calculate the Kiddie Tax c. Add the regular tax to the Kiddie tax and enter the sum on line 44. FORM 1040 LINE 61. SHARED RESPONSIBILITY PAYMENTWORKSHEET. Note: the textbook version or the worksheet is what we are using, this was available BEFORE the official version so is dinerent than in the instmctions to Fonn 3965 HealthCoverage Exemptions. Here are hints to support your completion of the worksheet: a. Household Income: AGI plus any tax-exempt interest line so plus any Gary’s interest income I]. Line #8 of Shared Responsibility Payment Woncsheet: Enter the amount listed below for your filing status: Single—$10,350 Head of household—$13,350 Married filing jointly— 4i1i’i’201? $20,?od Married filing separately—$4,050 Qualifying widower) with dependent child—$15,650 FORM 1040 LINE 67. SCHEDULE 8812.Be sure to consider that the Cortez family mayr qualify for additional child tax credit from the completion of the schedule 8812. FORM 1040 LINE 69. FORM 3962. Yes, the Cortez family will receive some tax credit, AND they have to pay some individual responsibility {Form 1040 line 61). Modified AGI Form 8962 Box 2A will be the federal AGI that you have calculated plus any tax—exempt interest income. Dependent’s modified AGI will be for Gregory. $2,100 (3,100 minus 1,000 already included in AGI for Cortez). Enter $2,100 on line 2b Form 3962. CALIFORNIA — FORM 3803We did not cover a sample or this in our California study. This is for Gary. Line 1a: $3,100, then continue with the remainder of the form. CALIFORNIA -ASSUME DO NOT QUALIFY FOR RENTERS’ CREDIT

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Import Numpy As Np Import Matplotlib Pyplot As Plt Load An Image I Plt Imread C

import numpy as np

import matplotlib.pyplot as plt

#load an image

I = plt.imread(‘C:UsersTinaDesktopimage.jpg’)

#display the shape of the array and data type

print(“I.shape=”,I.shape,”nI.dtype=”,I.dtype)

#convert to float data type and scale to [0..1] if necessary

if (I.dtype == np.uint8):

  I = I.astype(float) / 256

#I.dtype should now be float

#if your image is color (shape HxWx3), convert to grayscale by averaging together R,G,B values

R = np.array(img[:, :, 0])

G = np.array(img[:, :, 1])

B = np.array(img[:, :, 2])

R = (R *.299)

G = (G *.587)

B = (B *.114)

np.mean

#display the image in the notebook using a grayscale colormap

plt.imshow(I,cmap=plt.cm.gray)

#force matplotlib to go ahead and display the plot now

plt.show()  

#select out a 100×100 pixel subregion of the image

w,h = I.size

A = I.crop((w-50, h-50, w+50, h+50))

#display the selected subregion

plt.imshow(A,cmap=plt.cm.gray)

plt.show()

I am not sure if I am doing this right.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Important The Account Cycle To Be Known By The Accounting And Also How Should It

i need a research paper talk about how important the account cycle to be known by the accounting and also how should it be taught practically( by teaching the cycle with a real example ) ?

please i need the link of the research paper

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Important Refer To The Paper That Is Attatched Please Draw From The Information

Important refer to the paper that is attatched please!

Draw from the information gained in your first research paper and expand your research to follow up in a new paper. Write three to four (3-4) new pages that address the following:

  1. Define presidential doctrine and summarize the regional or global events during the Cold War leading up to the formation of the presidential doctrine you wrote about in Assignment 1.  
  2. Select one country you wrote about in Assignment 1 and describe the Cold War relationship that existed between the country you selected and the U.S. before the presidential doctrine was announced.
  3. Describe the relationship that currently exists between the U.S. and the country you selected in section (2) above.
  4. Describe the effect that the presidential doctrine has had on regional or global affairs since it was announced during the Cold War.
  5. Assess whether the presidential doctrine you wrote about in Assignment 1 had had the intended effect of altering the behavior of the country you selected in section (2) above in the time since the doctrine was first announced.
  6. Cite at least four (4) reputable sources in addition to the textbook, not including Wikipedia, encyclopedias, or dictionaries.

To help you understand this assignment further, the following description and examples may be useful.

Step 1: Define a doctrine and identify why a president would want to announce one. A doctrine is an ideological platform that a president uses to advance a policy towards a country or region in order to accomplish foreign policy goals for the United States, so you will need to expand on this theme. 

Refer back to Assignment 1 and build on whatever doctrine you wrote about then.  Say, for example, you selected the Truman Doctrine. Therefore, this is the only thing you will write about in Assignment 2 step 1.

Step 2: Select one country you wrote about in Assignment 1 and describe the Cold War relationship that existed between it and the U.S. before the presidential doctrine was announced. 

In the case of Truman, you would pick either the Soviet Union, Greece, or Iran, because all three were affected by his doctrine.  If you are writing about the Eisenhower Doctrine, you would choose Lebanon or Egypt; if you wrote about the Kennedy Doctrine, you would have write about Cuba or Vietnam; if your wrote about the Nixon Doctrine, you would choose either Vietnam, Saudi Arabia, or Iran; if you chose Carter, you would select either Iran or Afghanistan; and if you wrote about the Reagan Doctrine, you would select Nicaragua, Angola, Russia, or Afghanistan (although there were several others).

Step 3: Describe what effect the presidential doctrine you chose has had on regional or global affairs since it was announced during the Cold War. 

That is, how did the doctrine change the status quo regionally or globally after it was announced by the U.S.?  What happened in Western Europe after the Truman Doctrine was announced?  What happened in the Middle East after the Eisenhower Doctrine was announced?  What happened with Cuba or Vietnam after Kennedy offered up his doctrine of flexible response?  What happened in Southeast Asia or the Persian Gulf after the Nixon Doctrine went in effect?  What happened in the Middle East after the Carter Doctrine was announced?  What happened in Central America or Africa or the Middle East after Reagan announced his doctrine?

Step 4: Refer back to the country you selected in step two and describe the relationship that currently exists between the U.S. and that country. 

How has the relationship changed between the U.S. and that country since the doctrine was announced?

Step 5: Evaluate whether the presidential doctrine had had the intended effect of altering the behavior of the one country you selected in section (2) above since the doctrine was first announced.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Important Question A Study Was Conducted To Determine If The Salaries Of The Pro

Important Question. Need help in checking if I got it right.

A study was conducted to determine if the salaries of the professors from two neighbouring universities were equal. A sample of 20 professors from each university was randomly selected. The mean from the first university was $109,100 with a population standard deviation of $2300. The mean from the second university was $110,500 with a population standard deviation of $2100. Assume that the distribution of professor salaries, at both universities, are approximately normally distributed. Level of significance = 0.05.

a.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW