design a program that manages the inventory of an electronics store. You will need to use...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
design a program that manages the inventory of an electronics store. You will need to use a number of concepts that you learned in class including: use of classes, use of dictionaries and input and output of comma delimeted csv files. Input: a) ManufacturerList.csv contains items listed by row. Each row contains item ID, manufacturer name, item type, and optionally a damaged indicator b) PriceList.csv-contains items listed by row. Each row contains item ID and the item price. items listed by row. Each row contains item ID and service c) ServiceDatesList.csv-contains date. Required Output: 1) Interactive Inventory Query Capability a. Query the user of an item by asking for manufacturer and item type with a single query. i. Print a message("No such item in inventory") if either the manufacturer or the item type are not in the inventory, more that one of either type is submitted or the combination is not in the inventory. Ignore any other words, so "nice Apple computer" is treated the same as "Apple computer". ii. Print "Your item is:" with the item ID, manufacturer name, item type and price on one line. Do not provide items that are past their service date or damaged. If there is more than one item, provide the most expensive item. iii. Also print "You may, also, consider:" and print information about the same item type from another manufacturer that closes in price to the output item. Only print this if the same item from another manufacturer is in the inventory and is not damaged nor past its service date. iv. After output for one query, query the user again. Allow 'q' to quit. design a program that manages the inventory of an electronics store. You will need to use a number of concepts that you learned in class including: use of classes, use of dictionaries and input and output of comma delimeted csv files. Input: a) ManufacturerList.csv contains items listed by row. Each row contains item ID, manufacturer name, item type, and optionally a damaged indicator b) PriceList.csv-contains items listed by row. Each row contains item ID and the item price. items listed by row. Each row contains item ID and service c) ServiceDatesList.csv-contains date. Required Output: 1) Interactive Inventory Query Capability a. Query the user of an item by asking for manufacturer and item type with a single query. i. Print a message("No such item in inventory") if either the manufacturer or the item type are not in the inventory, more that one of either type is submitted or the combination is not in the inventory. Ignore any other words, so "nice Apple computer" is treated the same as "Apple computer". ii. Print "Your item is:" with the item ID, manufacturer name, item type and price on one line. Do not provide items that are past their service date or damaged. If there is more than one item, provide the most expensive item. iii. Also print "You may, also, consider:" and print information about the same item type from another manufacturer that closes in price to the output item. Only print this if the same item from another manufacturer is in the inventory and is not damaged nor past its service date. iv. After output for one query, query the user again. Allow 'q' to quit. design a program that manages the inventory of an electronics store. You will need to use a number of concepts that you learned in class including: use of classes, use of dictionaries and input and output of comma delimeted csv files. Input: a) ManufacturerList.csv contains items listed by row. Each row contains item ID, manufacturer name, item type, and optionally a damaged indicator b) PriceList.csv-contains items listed by row. Each row contains item ID and the item price. items listed by row. Each row contains item ID and service c) ServiceDatesList.csv-contains date. Required Output: 1) Interactive Inventory Query Capability a. Query the user of an item by asking for manufacturer and item type with a single query. i. Print a message("No such item in inventory") if either the manufacturer or the item type are not in the inventory, more that one of either type is submitted or the combination is not in the inventory. Ignore any other words, so "nice Apple computer" is treated the same as "Apple computer". ii. Print "Your item is:" with the item ID, manufacturer name, item type and price on one line. Do not provide items that are past their service date or damaged. If there is more than one item, provide the most expensive item. iii. Also print "You may, also, consider:" and print information about the same item type from another manufacturer that closes in price to the output item. Only print this if the same item from another manufacturer is in the inventory and is not damaged nor past its service date. iv. After output for one query, query the user again. Allow 'q' to quit. design a program that manages the inventory of an electronics store. You will need to use a number of concepts that you learned in class including: use of classes, use of dictionaries and input and output of comma delimeted csv files. Input: a) ManufacturerList.csv contains items listed by row. Each row contains item ID, manufacturer name, item type, and optionally a damaged indicator b) PriceList.csv-contains items listed by row. Each row contains item ID and the item price. items listed by row. Each row contains item ID and service c) ServiceDatesList.csv-contains date. Required Output: 1) Interactive Inventory Query Capability a. Query the user of an item by asking for manufacturer and item type with a single query. i. Print a message("No such item in inventory") if either the manufacturer or the item type are not in the inventory, more that one of either type is submitted or the combination is not in the inventory. Ignore any other words, so "nice Apple computer" is treated the same as "Apple computer". ii. Print "Your item is:" with the item ID, manufacturer name, item type and price on one line. Do not provide items that are past their service date or damaged. If there is more than one item, provide the most expensive item. iii. Also print "You may, also, consider:" and print information about the same item type from another manufacturer that closes in price to the output item. Only print this if the same item from another manufacturer is in the inventory and is not damaged nor past its service date. iv. After output for one query, query the user again. Allow 'q' to quit.
Expert Answer:
Answer rating: 100% (QA)
To create a program that manages the inventory of an electronics store as described you can use Python Heres a Python program that accomplishes the specified tasks import csv from datetime import date... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
You are Assistant Manager of Royal Bank of Canada. Your bank recently changed policy in regard to dressing in the bank. With effect from April 1, 2021 only formal clothing is allowed from Monday to...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Can you help me change this in c++ update your payroll program to use a C++ class. Each employee class object should hold the master file information for one employee. You can assume that the company...
-
Develop a data type Quote that implements the following API for quotations: To do so, define a nested class Card that holds one word of the quotation and a link to the next word in the quotation:...
-
An industrial plant with an inductive load consumes 10 kW of power from a 220 V rms line. If the load power factor is 0.8, what is the angle by which the load voltage leads the load current?
-
The concept of GDP is used by policy makers for many purposes that include keeping track of the growth of our economy and forecasting a recession; but it is also abused by some. Discuss some...
-
For a random sample of n = 60, find the probability of a sample mean being greater than 132 when = 130 and = 16.1. The population mean and standard deviation are given. Find the indicated...
-
A plant engineering group needs to set up an assembly line to produce a new product. The following table describes the relationships between the activities that need to be completed for this product...
-
Why are there such discrepancies in the view of performance by the manager and the employees? Is this a good place for 360 feedback? How much should the manager be influenced by employee opinions?...
-
A one-dimensional harmonic oscillator has an infinite series of equally spaced energy states, with E x = sh, where s is a positive integer or zero, and is the classical frequency of the oscillator....
-
If ammeters and voltmeters are not to significantly alter thequantities they are measuring, the resistance of an ammeter should be much higher, and theresistance of a voltmeter should be much lower,...
-
How does the alignment between organizational culture and enterprise resource planning (ERP) implementation affect the success of ERP adoption in large multinational corporations?
-
The bob of a pendulum has a mass of 1.00kg. The bob is suspended 15.0cm above the floor. The length of the pendul is such that when the string is pulled aside 15, the bob is 20.0 cm above the floor....
-
Whole Foods structure It's organization in a decentralized manner.what does that mean for the company's operations?
-
What is the output of the unit testing? #include using namespace std; class TempConvert { public: }; } void SetTemp(int tempVal) { temp = tempVal; } int GetTemp() const { return temp; } }...
-
Rewrite the following one line statement as another one line statement, but without x = a; X= Note: You may assume that the first line compiles correctly without warning.
-
Let a, b are real number such that F = (x+z)i +a(y+z)j +b(x+y)k is a conservative field then a-b equals (Answer should be integer)
-
What are the risks and liability factors in an audit? What are the implications to the auditor? What are the implications to the organization? How can the auditor mitigate these risks and liability...
-
Write a program in a class CountFamiles that counts the number of families whose income is below a certain value. Read an integer k from the keyboard and then create an array of double values of size...
-
Add methods to the Person class from Self-Test Question 16 to perform the following tasks: Set the name attribute of a Person object. Set the age attribute of a Person object. Test whether two Person...
-
Repeat Exercise 1 for a collection of coins instead of a credit card. Exercise 1 Design a class to represent a credit card. Think about the attributes of a credit card; that is, what data is on the...
-
If a politician running for office does not speak in general terms, does not try to move to the middle of the political spectrum, and does not take polls, is the median voter model therefore wrong?
-
Voters often criticize politicians running for office who do not speak in specific terms (i.e., who do not specify which spending programs will be cut, whose taxes will be raised, etc.). If voters...
-
Suppose the United States can produce 120 units of X at an opportunity cost of 20 units of Y and the United Kingdom can produce 40 units of X at an opportunity cost of 80 units of Y. Identify...
Study smarter with the SolutionInn App