subject
Computers and Technology, 24.02.2021 02:30 aupein

Question # 2 Multiple Choice
You text file begins with the following rows.
The pattern is a description of the item to be repaired, its color, and the issue.
bike, red, flat tire
bike. blue, broken chain
skate, blue. loose wheel
mitt, red, tom lace
Your program starts with the following lines.
import csv
aFile = open("data broken. txt","r")
aReader = csv. reader/aFile)
countRed = 0
for item in aReader
When you write code to count the number of times red is the color, what is the index of "red"?
3

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
File account.java (see previous exercise) contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance and account number, and return a string representation. note that the constructor for this class creates a random account number. save this class to your directory and study it to see how it works. then write the following additional code: 1. suppose the bank wants to keep track of how many accounts exist. a. declare a private static integer variable numaccounts to hold this value. like all instance and static variables, it will be initialized (to 0, since itÒ€ℒs an int) automatically. b. add code to the constructor to increment this variable every time an account is created. c. add a static method getnumaccounts that returns the total number of accounts. think about why this method should be static - its information is not related to any particular account. d. file testaccounts1.java contains a simple program that creates the specified number of bank accounts then uses the getnumaccounts method to find how many accounts were created. save it to your directory, then use it to test your modified account class.
Answers: 3
question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
You know the right answer?
Question # 2 Multiple Choice
You text file begins with the following rows.
The pattern...
Questions
question
Social Studies, 05.05.2021 19:20
question
Health, 05.05.2021 19:20
question
Mathematics, 05.05.2021 19:20
Questions on the website: 13722363