Question

The Business: Smart-Mart is a convenient that is located in Toronto, Canada. The store needs an...

The Business:

Smart-Mart is a convenient that is located in Toronto, Canada. The store needs an application to use it in its daily business. The application will be written by your company for the store.

The Application Description:

Registering products: Each product that the system will be dealing with must be registered. The product has the following info:
1. Product Number
2. Product Name
3. Product Description
4. Product Unit Price
5. Product expiry date (if exist)
Individual Billing: When a person shops in the convenient store, the user will do the following:
1. User will input the product, number of units
2. Step 1 will be repeated until all products entered
3. At the end of the billing, the bill will be generated
Sales Report: At end of the day or when requested, the system will show the following:
1. The product Names bought
2. Number of units bought per product
3. Total price of the product
4. Totals of the ALL products bought in that day


Stocking Report: Another report can be generated. The report will show the products that are about to finish. The minimum number of the product that should be in store is 10. otherwise, system will put the product on request.


Write the code that will create the interfaces of the application. The application will be GUI interface. The operations’ code will be ignored in this part. You need just to write the code to create the interface and move from window to another window and closing the application.

Write the code the implement the described operations
▪ Your code must be completely documented (i.e. commented)

python program

Homework Answers

Answer #1

def product_details():
print("Enter your product details to save it to showcase to the customers")
c=0
gr=[]
gr1={}
while True:
p=input("Enter the product number")
p1=input("Enter the product name")
p2=input("Enter the product description")
p3=input("Enter the product unit price")
p4=input("Enter the product expiry date")
  
  
gr.append(p)
gr.append(p1)
gr.append(p2)
gr.append(p3)
gr.append(p4)
  
gr1[c]=gr
c+=1
x=input("Do you want to add more y/n")
if x=="n":
print(gr1)
break
  
gr=[]
  
return gr1
  
def indiual():
gr1{}
  
gr1=product_details()
print(gr1,"enter the number of the product which you wanna buy")
c=input()
print("You bought",gr1[c])
return gr1[c]

def stokingreport():
print("enter 1 if you want to buy 2 to see the report")
ab={}
count=0
c=input()
if c==1:
  
while True:
ab[count]=indiual()
count+=1
check=input("Do you want to continue shoping y/n")
if check=="n":
print(ab)
break
  
if c==2:
print(ab)
  

product_details()
stokingreport()
Hope it answers your question

Have a nice day

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
SKILLED CARE PHARMACY Skilled Care Pharmacy, located in Mason, Ohio, is a $25 million dollar privately...
SKILLED CARE PHARMACY Skilled Care Pharmacy, located in Mason, Ohio, is a $25 million dollar privately held regional provider of pharmaceutical products delivered within the long-term care, assisted living, hospice, and group home environments. The following products are included within this service: Medications and related billing services Medical records Information systems Continuing education Consulting services to include pharmacy, nursing, dietary, and social services The key customer groups that Skilled Care provides services to include the senior population housed within the...
Introduction Purpose Your goal is to create a design for a software interface. You will experience...
Introduction Purpose Your goal is to create a design for a software interface. You will experience the scope of the design process from brainstorming ideas and gathering information about users’ needs to storyboarding, prototyping, and finally, testing and refining your product. As you work on the software interface, you will demonstrate your ability to apply fundamental Human-Computer Interaction principles to interface analysis, design, and implementation. You will be responsible for delivering project components to your professor at several points during...
Wal-Mart Online Wal-Mart is one of the largest companies in America. It is definitely the largest...
Wal-Mart Online Wal-Mart is one of the largest companies in America. It is definitely the largest retailer, both in terms of the number of stores (8,970 worldwide in 2011) and the level of sales ($419 billion from the 2011 Annual Report). By pushing suppliers to continually reduce costs, Wal-Mart is known for pursuing low prices and the stores often attract customers solely in-terested in lower prices. With Wal-Mart’s expansion into groceries, the company has be-come the largest retail grocer in...
in jGRASP INVENTORY CLASS You need to create an Inventory class containing the private data fields,...
in jGRASP INVENTORY CLASS You need to create an Inventory class containing the private data fields, as well as the methods for the Inventory class (object). Be sure your Inventory class defines the private data fields, at least one constructor, accessor and mutator methods, method overloading (to handle the data coming into the Inventory class as either a String and/or int/float), as well as all of the methods (methods to calculate) to manipulate the Inventory class (object). The data fields...
Heinz Children’s Health is a small pediatric practice serving the health- care needs of children in...
Heinz Children’s Health is a small pediatric practice serving the health- care needs of children in a small, rural community. Twenty-five years ago, Dr. Helen Heinz founded the practice, which now includes two physician assistants, two registered nurses, a home health nurse, an office manager, and a receptionist. The practice has always used paper records, but when Dr. Heinz learns that, under the American Recovery and Reinvestment Act (ARRA) of 2009, the Centers for Medicare & Medicaid Services is offeringsignificant...
Analysis: This section should include the issue register as a bare minimum, but may include also...
Analysis: This section should include the issue register as a bare minimum, but may include also why-why diagrams, a Pareto chart, a waste table and/or value-added analysis table. Flow analysis or simulation of this case study might be possible but might require making a lot of assumptions given the provided data. The first part of the project: Introduction    Walmart has continued to retain the top position on the Fortune 500 list for a consecutive fifth year. The brand has...
The Business Case for Agility “The battle is not always to the strongest, nor the race...
The Business Case for Agility “The battle is not always to the strongest, nor the race to the swiftest, but that’s the way to bet ’em!”  —C. Morgan Cofer In This Chapter This chapter discusses the business case for Agility, presenting six benefits for teams and the enterprise. It also describes a financial model that shows why incremental development works. Takeaways Agility is not just about the team. There are product-management, project-management, and technical issues beyond the team’s control. Lean-Agile provides...
CASE 3.2 Horizon Consulting Patti Smith looked up at the bright blue Carolina sky before she...
CASE 3.2 Horizon Consulting Patti Smith looked up at the bright blue Carolina sky before she entered the offices of Horizon Consulting. Today was Friday, which meant she needed to prepare for the weekly status report meeting. Horizon Consulting is a custom software development company that offers fully integrated mobile application services for iPhonetm, Androidtm, Windows Mobile® and BlackBerry® platforms. Horizon was founded by James Thrasher, a former marketing executive, who quickly saw the potential for digital marketing via smartphones....
Mattel Responds to Ethical Challenges Business Ethics This case was written by Debbie Thorne, John Fraedrich,...
Mattel Responds to Ethical Challenges Business Ethics This case was written by Debbie Thorne, John Fraedrich, O. C. Ferrell, and Jennifer Jackson, with the editorial assistance of Jennifer Sawayda. This case was developed for classroom discussion rather than to illustrate either effective or ineffective handling of an administrative, ethical, or legal discussion by management. All sources used for this case were obtained through publicly available material. Mattel, Inc. is a world leader in the design, manufacture, and marketing of family...
Case stydy - customers Businesses of all sizes are finding Facebook, Twitter, and other social media...
Case stydy - customers Businesses of all sizes are finding Facebook, Twitter, and other social media to be powerful tools for engaging customers, amplifying product messages, discovering trends and influencers, building brand awareness, and taking action on customer requests and recommendations. Half of all Twitter users recommend products in their tweets. About 1.6 billion people use Facebook, and more than 30 million businesses have active brand pages, enabling users to interact with the brand through blogs, comment pages, contests, and...