Answered step by step
Verified Expert Solution
Question
1 Approved Answer
vtrying to figure out what im missing the python file wont run correctly. its is a two part program two files file 1 import customer
vtrying to figure out what im missing the python file wont run correctly. its is a two part program two files file import customer
def main : # Intro message intro # Create four instances of Customers. customer customer.StoreCustomerFrank
customer customer.StoreCustomerLois customer customer.StoreCustomerJessica
customer customer.StoreCustomerTom # Display information. print Customer #: print
customer printO print Customer #: print customer printO print Customer #: print customer printO print
Customer #: print customer def intro : printThis program will demonstrate the use of classes to create a Customer'
printobject to save information. # Call the main function. mainO file which is called customer class StoreCustomer: def
initself name, itemsbought, total: self.name name self.itemsbought itemsbought self.
nameself name: self.name name def setitemsboughtself itemsbought: self.itemsbought itemsbought def
settotalself total: self.total total def getnameself: return self.name def getitemsboughtself: return self.
bought def gettotalself: return self.self: return 'Customer Name: self.name 'Number of
Items: self.itemsbought 'Total Cost: $ self.total should print out something like this for each customer Customer
#: Customer Name: Frank Number of Items: Total Cost: $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started