Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A SalesForDay object represents the sales for a particular day. It has two data members: an integer for the number of days the stand has
A SalesForDay object represents the sales for a particular day. It has two data members:
an integer for the number of days the stand has been open so far
a dictionary whose keys are the names of the items sold and whose values are the numbers of those items sold that day
The SalesForDay methods are:
init method takes two parameters number of days, sales dictionary and uses them to initialize the data members
get methods for each of the data members: getday and getsalesdict
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