Complete the code to finish this program to analyze the inventory for a store that sells purses and backpacks.
Each record is composed of the catalog number, the type of item, its color, the length, width, height, and the quantity in stock.
Sample rows of the file are below.
234 purse, blue, 12,4,14,10
138,purse,red, 12,4,14,4
934 backpack, purple 25,10,15,3
925, backpack, green, 25,10,15,7

Complete The Code To Finish This Program To Analyze The Inventory For A Store That Sells Purses And Backpacks.Each

Answers

Answer 1

The complete code to finish this program to analyze the inventory for a store that sells purses and backpacks is written below.

What is coding?

Coding, often known as computer programming, is the method through which we connect with computers. Code informs a machine what to do, and writing code is similar to writing a set of instructions.

import csv

fileIn = open("data/bags.txt","r")

countPurse = 0

textFile= csv.reader(fileIn)

for bag in textFile:    

  if bag[ 1 ] == 'purse':

      countPurse = countPurse + int(bag[6])

fileIn.close()

print("Number of purses:",countPurse)

Therefore, the complete code is written above.

To learn more about coding, refer to the link:

https://brainly.com/question/20712703

#SPJ1


Related Questions

Why Artificial intelligence is a risk to a human being ? ​
please answer fast

Answers

Answer:

Artificial intelligence is the intelligence or logical reasoning exhibited by artificial devices, as opposed to natural intelligence exhibited by humans and animals.

The main threat that artificial intelligence poses to humans is not, as many fantasize, the possibility of a future apocalyptic scenario; but the very limitation that artificial intelligence makes to human intelligence: each time the human atrophies his capacities more, since he relies on artificial intelligence processes instead of using his own. A clear example is the GPS, where the human no longer has to exercise his memory to know a path, but simply depends on what the map tells him in his car.

What is a return statement used for?
o beginning a function
O repeating a value
copying a function
exiting a function
DONE

Answers

Answer:

Exiting a function

Explanation:

Return simply returns a specified value at the end of a def function (if you're in python). It does not print or do anything else. You could set variables equal to a def function that returns or you could put the def function in a print statement to print the returned value.

Engineers use the following tools to perform their duties. A: science and math, B: math and English, C: science and English, D: math, science , and English​

Answers

Answer:

Science and math

Explanation:

Answer:

D

Explanation:

You need all 3.

Read the paragraph.

Several species of geese fly south in the winter to find food and mates. In fact, several geese from canada make their nests at Bartholomew park, which is only minutes from my home. My friends and I often take picnic lunches there to feed them and see their hatchlings. Of course, the number of birds in my area dwindles significantly once the seasons change.

Which two words in the paragraph should be capitalized?

south; winter
canada; park
geese; home
picnic; seasons

Answers

Canada; Park I think

Answer:

Canada; Park

Explanation:

If the user inputs “10” for the first expense and “20” for the second expense, what will the interpreter show in the final line when this program is run? If this result in not what the programmer intended, how would you explain what went wrong?

Answers

Yes :) I totally agree with the person above me ^

Help Me Please. I'm Begging you

Answers

Answer:

d and b can't see the last ones answer so im guessing this is what you needed.

Explanation:

The dns server translates the URL into the IP address 8.8.8.8. What is the next step in the process?

Answers

Answer:

The web browser sends an HTTP request to the IP address, the IP address then sends the content that are displayed by the browser

Explanation:

The process of converting the typed in URL to a displayed page is as follows;

1) The typed in URL is sent to a DNS recursor by the browser

2) The recursor gets the DNS record for the domain from the cache if the record is cached or when the DNS record for the domain is not cached, the recursor makes a requests to the DNS root from which the name of the TLD nameserver is received

3) The TLD nameserver is contacted by the resolver to obtain the authoritative nameserver's IP address

4) With the information, the resolver contacts the authoritative nameserver and obtains the domain's IP address for the domain the resolver contacts

5) The obtained IP address for the URL's domain is then sent to the browser by the resolver

6) An HTTP request is sent by the browser to the IP address and the data received by the browser from that IP address is rendered and seen as the page content.

What is abacus. List it's features in points.​

Answers

Answer:

An abacus is a manual aid to calculating that consists of beads or disks that can be moved up and down on a series of sticks or strings within a usually wooden frame. The abacus itself doesn't calculate; it's simply a device for helping a human being to calculate by remembering what has been counted.

Explanation:

What is the best way to prove you did your research on a person you contact via email for help or guidance? A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background B. Tell the person generally how much you respect his/her career; if you're too specific, it will be overboard and you may turn the person off

Answers

Answer: A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background.

Explanation:

If you were to write an application letter for employment at a company, you would include certain details of the company that you found out whilst researching them so that your chances of being hired are improved.

The logic is the same here. In order to prove that you have researched a person, the proof lies in what you found out during that research. In this scenario, that includes specific projects that the person has worked on of recent.

A piece of hardware used to enter data into a computer: Output Device Backing Storage Device Programming language Input Device

Answers

Answer:

Input Device.

Explanation:

A piece of hardware used to enter data into a computer is known as an input device.

Basically, this input device is also known as peripherals and it comprises of all of the devices that are interconnected with the CPU. Some examples of input devices used with a computer includes keyboards, scanner, mouse, etc. They avail the end users the ability to send an information to the computer system for processing into a desired output.

Match the terms with their explanations.

Answers

Answer:

Zoom helps move the object of view further or closer

White Balance tells the camera what each color should look like

Shutter controls how long light enters the camera

focus provides sharper images by way of a ring at the front of the lens

Explanation:

Took photography classes

HELP. PLZZZZZZZZ. ASAP


Dropdown.


You defined the raft class as shown.

class raft:
def __init__(self,capacity):
self.capacity = capacity
self.location = 'Gauley'
self.repairs = []
The code, raftA = raft(45), creates a(n) of the raft class.


instance

function

method

constructor

Answers

Code, raft A = raft(45), creates a(n) self of the raft class.

What is raft class?

Code is a term used to describe a set of rules or instructions expressed in a specific computer language.

Raft is a mechanism that ensures that every node in the group of computer systems accepts the same set of state transitions and is universal for spreading state machines among them.

Therefore, Using the raft consensus technique for both the election of the leader and data replication,  raft A = raft(45), creates a(n) self of the raft class.

Learn more about raft class, here:

https://brainly.com/question/21709647

#SPJ1

Use the drop-down menus to complete the steps to share a presentation through OneDrive.
1. Go to the File tab, and select
2. A Windows screen will open, asking you to upload a copy of your presentation to
3. If you do not upload the presentation, another user cannot edit the file
4. After uploading the document, select the editing rights to give to the recipient.
5. Enter the email address of the user you want to receive the presentation, and click
V

Answers

Answer:

Share

OneDrive

In real time

Send

Explanation:

How do we store value in a variable? Give an example

How do we use the value in variable? Give an example

Answers

Answer:

hi

Explanation:

im not smart

How did Bill Gates benefit from free enterprise? Need a paragraph please. Will give the branliest!!

Answers

Answer:

Bill Gates used his skills and brains to build a business. In conclusion, Bill Gates was very successful with his industry thanks to free enterprise. He, along with his employees and friends, created and almost perfected the software known as Microsoft. The free enterprise system provides the right to private enterprise, which allowed him to choose his own business and to run it without governmental influence. Because he could create his own business and design his own products, Gates was able to specialize in technology.

Explanation:

Find the quotient. 2.5 ÷ 5

Answers

Answer:

.5

Explanation:

you just divide 2.5 by 5

2.5 divided by 5 = 0.5

file:///media/fuse/drivefs-0142e6928396ed2afff070ead0fbbbcd/root/JerooLessonFourLabA_1.pdf
my teacher told said to clean the whole map in jeroo and plant the flowers all around how do i do it?

Answers

Answer:

it says page does not exist

Explanation:

You are 18 years old and need to write an email for the first time to a woman in her 40s( you can tell her age based on when she graduated college via he LinkedIn profile). How do you address her in the email? A. (First name) B. Hi(First name), C. Hi Ms.(Last name), D. Hi Mrs.(Last name) E. None of the above

Answers

E. None of the above

Its not formal to address someone with their first name, but it is also not right to assume if the woman is married or not.

can anyone unscramble this words

Answers

Answer: The one that is gtenemamna might be management

Explanation: this is impossible but this is my best guess.

Workers in a child care facility or preschool are part of what career path?
A. education and training
B. health care
C. human services
D. hospitality

Answers

Answer:

A

Explanation:

Preschool teachers show education

A. Education and training

If you could design an app for a phone or tablet, what would it be? Explain your design in at least a paragraph.

Answers

Answer:

If i were to design an app for a phone or a tablet, it would probably be about cloth styles...

Explanation:

Sowwy but I don't have time to write a paragraph.. tho search information about this and see what you find.. hope I helped :)

Answer:

I would design  an app for hospital patients to communicate on.

Explanation:

Due to the pandemic, people admitted to the hospital for long term diseases are currently stuck in their rooms not being able to communicate with other patients on their floors. This app can fix that and help people make new friends.

Multiple Select
How do you print a document?


Click on Print in the system tray.

Click on the Print icon at the top of the screen.

Select Print from the File menu.

Select Print from the Start menu.

Answers

Select Print from the File menu.

Explanation:

Other options listed are either impossible or a bit difficult to achieve. "Selecting Print from the File menu" not only allows for easy access, it also ensures that the target document is being printed without much effort. Many applications have a file menu from where certain processes could be accessed and done easily.

Hope this helps!

To print a document the correct option is select Print from the File menu.

The correct answer is (c).

Select Print from the File menu: In various applications, including word processors, PDF readers, and image editors, you can find a "Print" option in the "File" menu. Clicking on "File" and then selecting "Print" will open the print dialog box.

Therefore, To print a document the correct option is select Print from the File menu. The correct answer is (c).

To know more about the document:

https://brainly.com/question/33561021

#SPJ4

Which of the following does not demonstrate a harmful consequence of increased anonymity on the Internet?
A. Users can avoid targeted discrimination in an online forum.
B.People can create avatars to interact inappropriately with other users in
a forum
C.People can post hate speech in video comments without consequences.
D.People can easily create fake profiles to impersonate others online.

Answers

Answer: A. Users can avoid targeted discrimination in an online forum

Explanation:

Despite the many advantages that comes with social media, it also had it's own disadvantages and one of such is the increase in anonymity on the Internet.

Some of the consequences of the increase in anonymity is that people can make hate speech, create fake profiles to scam others or interact inappropriately, impersonation etc.

Therefore, the correct option will be option A"Users can avoid targeted discrimination in an online forum" as this isn't a harmful consequence of increased anonymity on the Internet.

In your opinion which of the following is the most convenient way to create a bootable USB flash drive? Why?

Answers

Answer:

here

Explanation:

Plug the USB drive into your computer’s USB port.

Search for the “cmd” application in the Windows start menu, right-click on the item, and select “Run as administrator” from the context menu. This opens a small window with white text on a black background.

Type the command “diskpart” and confirm your input with the enter key (you’ll also do this after every other entered command). This starts the storage device manager.

Enter the command “list disk” to display all available storage devices.

You can recognize your USB by its storage capacity, and it’s usually listed as “disk 1”. In the system partition, “disk 0” is usually your PC, so a hard drive or solid state drive in your computer.

Based on the assumption that your USB has the label “disk 1”, enter the command “sel disk 1” to select it (or the corresponding “disk 2”, etc.).

Enter then command “clean” to delete all files from the USB.

Enter the command “create partition primary” to create a main partition.

Enter the command “list par” and select the newly created main partition with “sel par 1”.

Activate the partition with the command “active”.

Format the USB with the command “format fs=FAT32 label=“WINDOWSUSB” quick override” (in place of “WINDOWS USB” you can also choose another label, so long as it doesn’t contain any spaces or special characters. The drive will later be displayed under this name if you plug into a running Windows computer). Formatting may take a while. You can track its progress in the percentage bar.

As soon as the process is finished, enter the command “assign” to automatically assign a drive letter (for example “G:”) to your USB.

Enter “exit” to close DiskPart, and then “exit” again to close the command prompt

What are the steps to debugging?

Answers

Answer:

The basic steps in debugging are:

Recognize that a bug exists.

Isolate the source of the bug.

Identify the cause of the bug.

Determine a fix for the bug.

Apply the fix and test it.

Explain the difference between undecidable problems and unreasonable time algorithms. Be specific.

Answers

One for which no algorithm can ever be written to find the solution is an unsolvable problem. An undecidable problem is one for which no algorithm can ever be written that will always provide any input value with a correct true/false option.

An insoluble issue is one for which there is no algorithm that can ever be constructed to locate the solution. Undecidable problems are those for which there is no method that will ever be developed that can consistently return a true/false answer for any input value.

What is time algorithms?

If the value of an algorithm is constrained by a value that is independent of the amount of the input, the algorithm is said to be constant time sometimes written as time. For instance, accessing any individual element in an array requires a constant amount of time because just one operation is required to find it.

We employ a technique known as "Big O notation" to describe how time-consuming a method is. We employ a language called the Big O notation to express how time-consuming an algorithm is.

Therefore, we would argue that the insertion sort's best-case time complexity is O. (n). Linear complexity is another name for O(n) complexity.

Thus, An insoluble issue is one for which there is no algorithm.

For more information about time algorithms, click here:

https://brainly.com/question/14635830

#SPJ6

What is the importance of different camera angles ?

Answers

Answer:

the camera angle helps the Creator to establish different relationships between the subject and even between the audience and the subjects. it's very important to master these techniques if you want to become a pro filmmaker!

Different camera angles can capture
a different point of view. This means that with a different angle and the same subject you can get different pictures that evoke different feelings.

What uses HTML hypertext links that users can click to access different locations or information?

Answers

Answer:

a button

Explanation:

I am not too familiar with HTML terminology (self-taught), but button (classes?) use hypertext links to access different locations on a website.

I'm pretty sure the syntax is something like <button = *stuff*>

As you are designing a site for a client, you notice that the bulleted lists do not appear when a blog is published. You look in the code and see you have used the proper < li > tag. What else needs to be in the code?


notli

/li

unli

-li

Answers

Answer:

B

Explanation:

Which set of symbols encloses an if-then code block? Choose the best answer.

straight brackets []
curly brackets {}
backslashes \\
vertical bars ||

Answers

Here's some code that might help, assuming that you are using JavaScript.

e = "Hello"

if(e === "Hello"){

    alert(":D")

}else{

    console.log("Um.")

}

I think that the answer is curly brackets.

Other Questions
sorry this isn't an academic question but- if im 13, 74 or such pounds and 5'3, where can i shop for cute trendy clothesim super skinny and really struggle so can u find it in ur heart to let people help me and not delete this thanks its not harming anyoen. How did the increasing power of military leaders help bring about the end of the republic?O A. The military leaders freed the slaves that worked in the mines.B. The military leaders refused to help the poor in the cities.C. The military leaders began to get more loyalty from soldiers than the government did.O D. The military leaders forbade the poor from serving in the military. Which statement best describes a belief of the Federalist Party? A line is parallel to y = -3x + 2 andintersects the point (4,3). What is theequation of this parallel line?y = [?]x + [ ] Find the solution of this system of equations.Separate the x- and y-values with a comma.X + 2y = 8x - y = 2 f(x) = x2 + 1f(-3)=) Two brothers, Gethin and David, share a sum of money in the ratio 2:7.David gets 30 more than Gethin. Calculate how much money the brothers share. What is this surface area?!!?? if you have three apples and john takes 1 how many do you have Which of the following shows the correct solution steps amd solution to 7x-4=-18 What event started the First Punic War?The Carthaginians sent an army to Rome.The Romans sent an army to Sicily.The Romans sent an army to Carthage.The Carthaginians sent an army to Greece.B Mary bought a 2 pound bag of dog food. Her dog ate 3/6 pound on Monday and 2/6 pound on Tuesday. How many pounds of dog food remain in the bag? (work it out) The Internal Revenue Service Department of Tax Regulations writes regulations in accord with laws passed by Congress. On average, the department completes 300 projects per year. The Wall Street Journal reported that, as of October 11, 1997, the number of projects "on the Departments plate" was 588. Nevertheless, the department head claimed that average time to complete a project was under six months. Do you have any reason to disagree? Why or why not? A circle has a diameter of 28 feet. What is thecircumference of the circle? In what two ways can we increase the potential difference? 2 /8 The Math Clubs spring banquet was a huge success, and Ray and Aletha are calculating the tip. The total bill was $360. What is the amount of tip that Ray and Aletha if they leave a 20% tip? $50 $542 $72 $56 The table shows the fees to park in a parking lot.first hour = $1second hour = $1.50 each additional hour or part of an hour = $2. How much does it cost to park for 4 1/2 hours? One parent has the blood type A and the other blood type B. What are the genotypes of the parents if they produce children with only blood type AB? Lauren ran the 400-meter dash in fifty-three and ten hundredths seconds. Howshould this decimal be written correctly?A: . 5310 B: 53.10C: 53.01 Think about what competition is. Write a short definition in your own words.