Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Martinha RosaFinance
(5/5)

557 Answers

Hire Me
expert
Santosh SaxenaComputer science
(5/5)

995 Answers

Hire Me
expert
Caden ButlerEngineering
(5/5)

502 Answers

Hire Me
expert
Samuel BarberaMathematics
(5/5)

997 Answers

Hire Me
Others
(5/5)

Change function createorder to take productname and product code as input

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Module 3: Deep Dive - Functions, OOPs, Modules, Errors, and Exceptions 

Case Study

Domain – E-Commerce

focus – Optimization

Business challenge/requirement

GoodsKart—largest e-commerce company of Indonesia with revenue of $2B+ acquired another eCommerce company fair deal. the fair deal has its own IT system to maintain records of customers, sales, etc. For ease of maintenance and cost savings GoodsKart is integrating customer databases of both the organizations hence customer data of FairDeal has to be converted in GoodsKart Customer Format.

Key issues

GoodsKart customer data has more fields than in FairDeal customer data. Hence FairDeal data needs to be split and stored in GoodsKart Customer Object-Oriented Data Structure

Considerations

The system should convert the data at run time

Data volume

- NA

Additional information

- NA

Business benefits

GoodsKart can eventually sunset IT systems of FairDeal and reduce IT cost by 20- 30%

Approach to Solve

You have to use the fundamentals of Python taught in module 2

1. Read FairDealCustomerData.csv

2. Name field contains full name – use a regular expression to separate title, first name, last name

3. Store the data in Customer Class

4. Create Custom Exception – CustomerNotAllowedException

5. Pass a customer to function "createOrder" and throw CustomerNotAllowedException in case of blacklisted value is 1

Enhancements for code

You can try these enhancements in code

1. Change function createOrder to take productname and product code as input

2. Create Class Order

Return object of type Order in case customer is eligible

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

stay-icon
stay-icon

Stay Updated with latest info & offers