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 is the term for a web site that uses encryption techniques to protect its data?
vesna_86 [32]
The answer is secure site, I hope it helps.
8 0
3 years ago
The Register Set that stores temporary results related to the computations are<br>​
Natasha_Volkova [10]

Answer:

ooh Bhai sahab

Explanation:

ooh Bhai Yaar Mata tyo gari sanisanisanisani

5 0
3 years ago
Consider the following code segment:
Leni [432]

The code segment is an illustration of loops and arrays

<h3>What is a loop?</h3>

A loop is a program statement used to perform repetitive operations

<h3>What is an array?</h3>

An array is a variable used to hold multiple values

<h3>How to analyze the program?</h3>

The loop of the program adds the index 0 elements of the first and the second row of the 2-dimensional array.

From the program, the numbers to add are 1 and 100

The sum of 1 and 100 is 101

Hence, 101 will be displayed when the code segment is executed

Read more about code segments at:

brainly.com/question/26683418

7 0
2 years ago
The Math class provides a static method, max, that accepts two int arguments and returns the value of the larger one. Two int va
Dimas [21]

Answer:

int result=max(population1,population2);

printf("%d",result);

Explanation:

in above result variable holds the largest value of two variables population1 and population2.Printf displays that largest value.

int result=max(population1,population2);

in above expression , right hand side we are calling max function and on the left hand side we are saving the return value of the function in result variable

8 0
3 years ago
Choose the 3 correct statements for the code below.
Nookie1986 [14]

Answer:

True

False

True

False

True

Explanation:

So I'll go through each statement and explain why or why not they're correct.

An object of the ActivationLayer class has a name attribute. So because ActivationLayer is inheriting the BaseLayer and it's calling super().__int__("Activation") it's going to call the BaseLayer.__init__ thus setting a name attribute equal to "Activation" for any ActivationLayer object that is initalized. So this is true

An object of the BaseLayer class has a size attribute. While it is true that FC layer is inheriting from BaseLayer and it has a size attribute, this does nothing to change the BaseLayer class. So any object initialized to a BaseLayer object will only have the instance attribute "self.name". So this is false

print(FCLayer(42)) prints FullyConnectedLayer. So whenever you print an object, it tries to convert the object to a string using the __str__ magic method, but if that wasn't defined it then tries the __repr__ method, which the FCLayer class technically doesn't define, but it inherits it from the BaseLayer class. And since whenever you define an FCLayer object it calls super().__init__ with "FullyConnected", which will then be assigned to the instance variable self.name,  it will print "FullyConnectedLayer". So this is true

When creating an object of the ActivationLayer class, the size argument must be given. This is true, because the size is a parameter of the __init__ method of ActivationLayer, it is not an optional parameter, and is something that must be passed otherwise an error will be raised. So this is false

When creating an object of the BaseLayer class, the name argument must be given. This is not true, because name is a default argument. This means if you do not pass an argument for name, then name will equal an empty string

4 0
2 years ago
Other questions:
  • There are many careers within the IT industry. _____ are responsible for organizing a company's data, making sure all the data i
    9·1 answer
  • ​according to your text, digital natives tend to prefer different digital communication channels more than do digital immigrants
    5·1 answer
  • In ancient times what did kings and tribals chiefs use to communicate
    10·1 answer
  • What game involves controlling a character who is trying to rescue his girlfriend from an ape?
    6·2 answers
  • What is different between attaching a file on an email program versus a smartphone?
    12·2 answers
  • Write a program that takes in an integer in the range 20-98 as input. The output is a countdown starting from the integer, and s
    12·1 answer
  • Which is better computer science or software engineering?
    10·2 answers
  • Example of negative body language include all but
    8·1 answer
  • Virtual Memory involves swapping between which 2 devices?
    7·1 answer
  • What are the common uses of joysticks? ​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!