Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

a EOF error

Hello I am trying to make a program to help asset the cost of painting. I have wrtten a code for it, but I keep getting a EOF error. I have been at this for hours now and I cant figure this out.

import math

# Dictionary of paint colors and cost per gallon

paintColors = {

‘red’: 35,

‘blue’: 25,

‘green’: 23

}

# FIXME (1): Prompt user to input wall’s width

# Calculate and output wall area

wallHeight = float(input(‘Enter wall height (feet):n’))

wallwidth = float(input(‘Enter wall width (feet):n’))

wallArea = int(wallHeight * wallwidth)

print(‘Wall area:’, wallArea, ‘square feet’) 

# FIXME (2): Calculate and output the amount of paint in gallons needed to paint the wall

paintNeeded = wallArea / 350

print(‘Paint needed: %f’ % paintNeeded, ‘gallons’)

cansNeeded = math.ceil(paintNeeded)

print(‘Cans needed:’, cansNeeded,’can(s)n’)

# FIXME (3): Calculate and output the number of 1 gallon cans needed to paint the wall, rounded up to nearest integer

# FIXME (4): Calculate and output the total cost of paint can needed depending on color

paintColor = input()

print(‘Choose a color to paint the wall:’)

paintCost = {‘red’:35, ‘blue’:75}

print(‘Cost of purchasing’, paintColor, ‘paint: $’, paintCost)

That is what I have so far, the error I keep getting is: Enter wall height (feet):nTraceback (most recent call last):

File “main.py”, line 13, in <module>

wallHeight = float(input(‘Enter wall height (feet):n’))

EOFError: EOF when reading a line

Please help

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"