Question: Problem: Haggling Electronics Haggling Electronics is a new store that just opened where customers can haggle to get the best deal possible for each item
Problem: Haggling Electronics
Haggling Electronics is a new store that just opened where customers can haggle to get the best deal possible for each item they buy.
The owner of the store, which just opened this year, heard you are taking a course on foundations in computing, and asks you to assist with some inquiries they have.
separated by a comma. The first line of this file is the header of the three columns mentioned above respectively. Here is a sample from the file:
transactionsProducts.csv
ProductID ProductNane, Price
Pin Laptop,
P Game Laptop,
PTitan Laptop,
Each time a customer comes to the store they can haggle and obtain a special discount.
percentage of discount after haggling, all separated by a comma. The first line of this file is the header of these five columns. Here is a sample from the file:
transactionsSales.csv
transactionid date, productid quantity, discount
of these two columns. Here is a sample of the file:
transactionsReturns.csV
transactiond date
What is the product that led to the larger number of sales in units?
forget to account for the returns.
Here is a template for the output:
XXXXXXXXXXXXXXXXXXXXXX
What is the product that led to the larger number of sales in dollars?
$ Obviously, don't forget to account for the returns.
Here is a template for the output:
What is the turnover for all sales?
the decimal point sorted by the total discounted amount. All dollar amounts should be prefixed by the $ sign. The comma should be used for thousand separators like in $
Do not forget to account for the returns.
The table should be framed with and Here is a sample output:
PUniversal Smart Remo$
What are the number of transactions per weekday?
Print the number of sales transactions per weekday. The weekday should be on positions followed by the character : followed by the count on positions.
Here is a template for the output:
XXXXXXXXXX:
What are the returned products?
was returned positions, right aligned all separated by a space.
Here is a template for the output:
XXX XXXXXXXXXXXXXXXXXXXXXX
What is the performance of each product?
Create a text file named "transactionsunits.txt to record each line with the product ID and corresponding total units sold, separated by a comma.
When the alignment left right or other is not specified in any of the questions above, use the default alignment.
just examples to indicate the format of all of the files. DO NOT hard code your output. The TAs will evaluate your assignment with different input files.
Stick to the required output format. Do not try to make it "nicer" or "more practical", or anything else. This is what the customer wants.writewwr
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
