Questions
Create a Python program that: Reads the content of a file (Vehlist.txt) The file contains matching...

Create a Python program that:

Reads the content of a file (Vehlist.txt)
The file contains matching pairs of vehicle models and their respective makes
Separate out the individual make and model on each line of the file
Add the vehicle make to one list, and the vehicle model to another list; such that they are in the same relative position in each list
Prompt the user to enter a vehicle model
Search the list containing the vehicle models for a match
If a match is found, display the vehicle make by accessing the vehicle make list entry in the same relative position the match was found
If no match is found, display a message saying so to the user
Allow the user to enter name for the file
The program should:

Use variables with meaningful names
Display easily understood prompts when collecting user input
Have appropriate comments indicating what each part of the program is doing
Have a comment area at the beginning of the program identifying the author of the program and the class it was created for
Save the program as a Python module, and submit the program through this assignment

In: Computer Science

Question 2 (Function Template) Write a template version of the iterative binary search algorithm that searches...

Question 2 (Function Template)

Write a template version of the iterative binary search algorithm that searches an array of arbitrary type for a given key.

Declare and implement a class called Student that keeps the student id, name, and grade. Include a default constructor, the overloaded insertion (<<) operator and also the overloaded extraction operator (>>).

Declare and implement another class called Book that keeps the book’s title, author, and price. Just like the Student class, Include in class Book a default constructor, the overloaded insertion (<<) operator and also the overloaded extraction operator (>>).

Write a main() function that test your function by passing parameters of type int, float, char, Student, and Book. Identify and implement additional suitable operators needed to be overloaded in the Student and Book class that you define above so that it can work well with the template binary search function that you have written. A Student object should be searched using the student id and the Book object should be searched using its title.

In: Computer Science

Use the Target Corporation’s Form 10-K to answer the following questions related to Target’s fiscal year...

Use the Target Corporation’s Form 10-K to answer the following questions related to Target’s fiscal year end of January 30, 2016. Target’s Form 10-K is available at https://www.sec.gov/cgi-bin/viewer?action=view&cik=27419&accession_number=0000027419-16-000043&xbrl_type=v# Section 2: Chapter 3 material: What percentage of Target’s total revenues end up as net earnings? What percentage of Target’s sales go to pay for the costs of the goods being sold? What costs does Target include in its Cost of Sales account? When does Target recognize revenue from the sale of gift cards?

In: Accounting

Calculate the monthly returns for 08/01/2015 – 08/31/2019 period for (iii) Chevron: Date Adj Close 8/1/2015...

Calculate the monthly returns for 08/01/2015 – 08/31/2019 period for

(iii) Chevron:

Date Adj Close
8/1/2015 67.98351
9/1/2015 67.04664
######## 77.24643
######## 77.62042
######## 77.39832
1/1/2016 74.39566
2/1/2016 71.78875
3/1/2016 83.11975
4/1/2016 89.02702
5/1/2016 87.99893
6/1/2016 92.30142
7/1/2016 90.23226
8/1/2016 88.55934
9/1/2016 91.57452
######## 93.20279
######## 99.26207
######## 105.7736
1/1/2017 100.0671
2/1/2017 101.1006
3/1/2017 97.41397
4/1/2017 96.80608
5/1/2017 93.88468
6/1/2017 95.61873
7/1/2017 100.0729
8/1/2017 98.63402
9/1/2017 108.7711
######## 107.2807
######## 110.1504
######## 116.9746
1/1/2018 117.1241
2/1/2018 104.5755
3/1/2018 107.6171
4/1/2018 118.0636
5/1/2018 117.2992
6/1/2018 120.3496
7/1/2018 120.1973
8/1/2018 112.7629
9/1/2018 117.5152
######## 107.2994
######## 114.3053
######## 105.5726
1/1/2019 111.2593
2/1/2019 116.0435
3/1/2019 120.7387
4/1/2019 117.6805
5/1/2019 111.5936
6/1/2019 123.1738
7/1/2019 121.8573
8/1/2019 116.5222

(iv) Intel:

Date Adj Close
8/1/2015 25.32108
9/1/2015 26.96275
######## 30.29062
######## 31.10468
######## 31.03551
1/1/2016 27.94547
2/1/2016 26.65721
3/1/2016 29.40016
4/1/2016 27.51891
5/1/2016 28.70946
6/1/2016 30.06661
7/1/2016 31.95494
8/1/2016 32.89911
9/1/2016 34.86641
######## 32.2064
######## 32.04939
######## 33.7531
1/1/2017 34.26493
2/1/2017 33.68795
3/1/2017 33.80661
4/1/2017 33.88159
5/1/2017 33.8441
6/1/2017 31.85807
7/1/2017 33.49157
8/1/2017 33.11388
9/1/2017 36.22591
######## 43.27512
######## 42.65676
######## 44.17273
1/1/2018 46.06749
2/1/2018 47.16798
3/1/2018 50.17598
4/1/2018 49.73279
5/1/2018 53.18191
6/1/2018 48.16903
7/1/2018 46.60894
8/1/2018 46.92871
9/1/2018 46.10273
######## 45.70302
######## 48.07202
######## 46.0397
1/1/2019 46.22609
2/1/2019 51.9553
3/1/2019 53.01519
4/1/2019 50.38911
5/1/2019 43.47838
6/1/2019 47.54896
7/1/2019 50.21099
8/1/2019 47.09205

(v) Tesla:

Date Adj Close
8/1/2015 249.06
9/1/2015 248.4
######## 206.93
######## 230.26
######## 240.01
1/1/2016 191.2
2/1/2016 191.93
3/1/2016 229.77
4/1/2016 240.76
5/1/2016 223.23
6/1/2016 212.28
7/1/2016 234.79
8/1/2016 212.01
9/1/2016 204.03
######## 197.73
######## 189.4
######## 213.69
1/1/2017 251.93
2/1/2017 249.99
3/1/2017 278.3
4/1/2017 314.07
5/1/2017 341.01
6/1/2017 361.61
7/1/2017 323.47
8/1/2017 355.9
9/1/2017 341.1
######## 331.53
######## 308.85
######## 311.35
1/1/2018 354.31
2/1/2018 343.06
3/1/2018 266.13
4/1/2018 293.9
5/1/2018 284.73
6/1/2018 342.95
7/1/2018 298.14
8/1/2018 301.66
9/1/2018 264.77
######## 337.32
######## 350.48
######## 332.8
1/1/2019 307.02
2/1/2019 319.88
3/1/2019 279.86
4/1/2019 238.69
5/1/2019 185.16
6/1/2019 223.46
7/1/2019 241.61
8/1/2019 225.61

In: Finance

1. Economic research shows that the “UC tomato harvester” created significant net economic benefits for California agriculture, even though the University of California got sued because of it.


1. Economic research shows that the “UC tomato harvester” created significant net economic benefits for California agriculture, even though the University of California got sued because of it.

2. The greatest legacy of Cesar Chavez and the United Farm Workers was their success at unionizing most agricultural workers in California.

3. The Coalition of Immokalee Workers used strike tactics to win concessions from tomato growers.

4. When it was discovered that farm employers were enslaving immigrant workers in Florida, farm labor advocates took their campaign to Taco Bell, which did not hire farm workers.

5. The Fair Foods Movement is about getting consumers a fair price for the food they purchase in the grocery store.

In: Economics

Consider the following situation: Three particles +3q, +q, and -2q are placed on a line in...

Consider the following situation:
Three particles +3q, +q, and -2q are placed on a line in that order. The middle charge, the +q, is a distance d from the other two charges.
a) Conceptually comment on what the net electric force, magnitude and direction, on the middle particle due to the other two will be.
b) Calculate the net electric force, magnitude and direction, on the middle particle due to the other two.
c) Let q = 25 uC and d = 0.35 m. Compute the net force on the middle charge due to the other two charges.
d) Do your answers in parts (a) and (b) agree with one another? If not, please explain what your misunderstanding was and how you corrected that misunderstanding.

In: Physics

4. You are given an animal whose development has never been characterized before. You note that...

4. You are given an animal whose development has never been characterized before. You note that at the four-cell stage, one blastomere transiently shows dark pigmentation. However, as embryogenesis proceeds, the dark pigmentation fades and you are unable to determine what becomes of the blastomere in the fully-developed embryo.

a) [4pts] Describe a simple experiment you can do to determine the fate of the dark blastomere. Provide sufficient detail to show that you understand the technique and its interpretation.

b) [5pts] For the animal described above, you find that the dark-pigmented blastomere at the four-cell stage ultimately gives rise to all of the central nervous system of the embryo. Using this information, devise an experiment to determine whether this cell is specified to be CNS at the 4-cell stage. In addition to describing the experimental procedure, describe the possible results and how you would interpret them.

c) [1pt] As this embryo undergoes gastrulation you notice that the ectodermal cells surround the endoderm similar to Xenopus. What is the name to describe the movement of these ectodermal cells?

In: Biology

Determine the missing properties for refrigerant R134a (CF3CH2F) for each state given. Show your three step...

Determine the missing properties for refrigerant R134a (CF3CH2F) for each state given. Show your three step decision process: i.e. 1) list two known properties, 2) determine the phase, 3) look up/interpolate properties from the correct table and show all calculations made for each case.

Phase/quality T P v u h
Phase name/X celcius kPa m^3/kg kJ/kg kJ/kg
Sat. liquid 520
10 0.012
73 685
375 120

In: Mechanical Engineering

Consider the Rankine power cycle using vapor and liquid. a: Explain what kinds of problems the...

Consider the Rankine power cycle using vapor and liquid.

a: Explain what kinds of problems the Carnot Vapor Cycle has.

b: Draw a T-s diagram for the ideal Rankine cycle and label each process explicitly.

c: There is a method to superheat steam to high temperature in order to improve the efficiency of the ideal Rankine cycle. Explain its advantages and disadvantages explicitly.

d: Name the gas power cycle which uses the same four processes in its cycle and draw the T-s diagram and the P-v diagram for the gas power cycle.

In: Mechanical Engineering

3: Consider the Rankine power cycle using vapor and liquid. a: Explain what kinds of problems...

3: Consider the Rankine power cycle using vapor and liquid.
a: Explain what kinds of problems the Carnot Vapor Cycle has.
b: Draw a T-s diagram for the ideal Rankine cycle and label each process explicitly.
c: There is a method to lower the condenser pressure in order to improve the efficiency of the ideal Rankine cycle. Explain its advantages and disadvantages explicitly.
d: Name the gas power cycle which uses the same four processes in its cycle and draw the T-s diagram and the P-v diagram for the gas power cycle.

In: Mechanical Engineering