1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Oksana_A [137]
3 years ago
7

Python program: Develop a program that will keep track of inventory for a local retail store. Fortunately, the store only offers

five items for sale (at the current time). The data to include is as follows:
Beginning Inventory – this data can be hard coded in the program.

Item # Description # in Inventory

111 Jacket 2300

222 Blazer 1000

333 Sweater 500

444 Hoodie 340

555 Make one up 400



During the day, the following transactions occur:

ALL transactions are entered by a user. The user should run the program one time and enter all of the transactions (and a few more if they would like!) below. Keep in mind that not all users type 100% accurately! You decide how to have your user stop entering data.



Item# # Sold

111 1200

222 300

333 250

444 270

555 300



Item# # Added (Received a shipment from vendor)

111 1100

222 400

333 50

444 250

555 300



After all of the transactions have been entered, print the item #, description, and end of the day inventory quantity.



At the end of the report, provide a grand total of ALL items sold and a grand total of all items delivered.



The better programs will only process data for shipments and sales if the code is correct and allow users to enter both upper case and lower case data. Your program should be able to process more transactions than the ones included above.



For this program, you do not have to worry about it if your inventory falls into negative numbers. That data will be used by the procurement department to purchase any items needed to fulfill the outstanding orders!
Computers and Technology
2 answers:
EastWind [94]3 years ago
7 0
333 Sweater 500 The better programs will only process data
Westkost [7]3 years ago
6 0
I can get it to you within 5 days
You might be interested in
What are the different between Facebook and LinkedIn
DIA [1.3K]
Face you can talk to friends post picture's and see pictures of friends i am not really sure what is linkedln
7 0
3 years ago
Read 2 more answers
I watched an ad but the im button done is no where in sight, has anyone else experienced this recently. it was fine a few days a
Maurinko [17]

Answer:

This is usually just a small glitch that happens sometimes when you are seeing an ad and wanting to skip. Simple fixes to this problem include refreshing the browser or closing the application that you are in. This also would happen to me but following this fix should help with the problem.

7 0
2 years ago
The function below takes one parameter: a string (date_string) containing a date in the mm/dd/year format. Complete the function
Natalija [7]

Answer:

The solution code is written in Python 3.

  1. def convertDate(date_string):
  2.    date_list = date_string.split("/")
  3.    for i in range(0, len(date_list)):
  4.        date_list[i] = int(date_list[i])
  5.    return date_list  
  6. print(convertDate('06/11/1930'))

Explanation:

Firstly, create a function convertDate() with one parameter, <em>date_string</em>. (Line 1).

Next, use the Python string <em>split()</em> method to split the date string into a list of date components (month, day & year) and assign it to variable <em>date_list</em>. (Line 3) In this case, we use "/" as the separator.

However, all the separated date components in the <em>date_list</em> are still a string. We can use for-loop to traverse through each of the element within the list and convert each of them to integer using Python<em> int() </em>function. (Line 5 - 6)

At last return the final date_list as the output (Line 8)

We can test our function as in Line 11. We shall see the output is as follow:

[6, 11, 1930]

8 0
3 years ago
Quick time and flash are two examples of what product
zheka24 [161]

there apps .........

8 0
3 years ago
Explain the role of computers in accounting
Inessa05 [86]

Answer:

A computer helps accountants store and access financial records, make changes and alleviate the need to keep paper files. If paper work is needed, computer files can easily be accessed and printed along with any changes the accountant makes at any given time.

8 0
2 years ago
Other questions:
  • 10 facts about turbines
    11·2 answers
  • Public static String doSomething(String s) { final String BLANK = " "; //BLANK contains a single space String str = ""; //empty
    6·1 answer
  • Match each word to its correct meaning.
    5·1 answer
  • In the Programming Process which of the following is not involved in defining what the program is to do:_____________ Group of a
    10·1 answer
  • Write a function named change() that has an integer parameter and six integers reference parameters named hundreds, fifties, twe
    7·1 answer
  • When replacing a thermostat or water pump, coolant drained from the cooling system should be ________.
    9·1 answer
  • What is the core function of an enterprise platform
    12·2 answers
  • In PowerPoint, a picture might be a photograph, a shape you draw, a piece of clip art, or an illustration created using a graphi
    7·2 answers
  • Steps for Saving and opening a document.​
    14·1 answer
  • Jazmine just finished setting up an operating system that's designed to work between a VM guest OS and computer hardware. What i
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!