Questions
import os def process_dir(p, indent): for item in os.listdir(path): if os.path.isfile("{0}/{1}".format(path, item)): print("\t"*indent, item) elif os.path.isdir("{0}/{1}".format(path,...

import os

 
def process_dir(p, indent):
    for item in os.listdir(path): 
        if os.path.isfile("{0}/{1}".format(path, item)):
            print("\t"*indent, item)
        elif os.path.isdir("{0}/{1}".format(path, item)):
            print("\t"*indent, "\x1b[1;31m{}\x1b[0;0m".format(item))
            process_dir("{0}/{1}".format(path, item), indent+1)
        else:
            print("Not a file or directory")

path=input("Enter a valid system path: ")
print("\x1b[1;31m{}\x1b[0;0m".format(path))
process_dir(path, 1)
  1. 1. Figure out what the program is trying to do.
    1. Add meaningful comments that tell what the program is doing.
    2. There is a bug in this program that causes it to work incorrectly; find the bug, and fix it
  2. c. Put in some error detection code so that the program will not be able to crash

In: Computer Science

After its passage, the Civil Rights Act of 1964 was eventually challenged in the Supreme Court...

After its passage, the Civil Rights Act of 1964 was eventually challenged in the Supreme Court as violating the freedom of private businesses to refuse service to anyone, including African Americans. The Court, however, ruled that the creation of this landmark legislation was within the authority of congressional power. Congress and the Court agreed that the _____________ clause justified congressional action on this civil rights issues.

a.

Elastic Clause

b.

Supremacy Clause

c.

Privileges and Immunities Clause

d.

Commerce Clause

e. Equal Protection Clause

States are now prohibited from preventing same-sex couples from getting married due to the Supreme Court's decision regarding which case?

a.

Bakke vs. The Regents of the University of California

b.

Obergefell vs. Hodges

c.

Shelby County vs. Holder

d.

Bowers vs. Hardwick

e. United States vs. Windsor   

A law prohibiting _______________ from becoming firefighters would be subject to the rational basis test.

a.

Catholics

b.

senior citizens

c.

women

d.

African Americans

e. people from Latin America   

What criterion/a does a political jurisdiction need to meet in order to be identified as a covered area under Section 4 of the Voting Rights Act of 1965?

a.

the jurisdiction must have used a device (literacy tests, poll taxes, etc.) that was intended to restrict the voting rights of Blacks

b.

In the past, the jurisdiction must have received at least 7 different fines for violating state electoral rules.

c.

Less than 50% of the voting age population in that jurisdiction had voted in the 1964 election or were registered to vote in that election.

d.

both a & c

e.    a, b & c

Which of the following best describes the current state of affirmative action law in the aftermath of the Fisher vs. University of Texas case (2016)?

a.

Race can be used as a factor in admission or hiring, and can be the only factor used in certain circumstances.

b.

Race can be used as a factor, but it cannot be the only factor used in hiring and admission.

c.

Race can never be used under any circumstances in hiring and admissions.

d.

Special quotas for different races are allowed.

e.

The U.S. Congress has authority over what types of affirmative action are legal, and what are not.

In: Psychology

1-How is the term "market value" used in real estate valuation? 2-. How is the term...

1-How is the term "market value" used in real estate valuation?

2-. How is the term "investment value" used in real estate valuation?

3-How are transaction prices used in real estate valuation?

4- List the eight steps of the valuation process used in conformity with Uniform Standards of Professional Appriasal Practice.

5- Explain the importance of arm's-length transactions when selecting comparable sales data , give examples that do not qualify as such.

NOTE: please write the answer in short

In: Accounting

Natural gas for a typical residence has a monthly demand (in MMBtus) of D(P)=12-0.2P. The market...

Natural gas for a typical residence has a monthly demand (in MMBtus) of D(P)=12-0.2P. The market price of natural gas is $4 per MMBtu, and natural gas has an external cost from CO2 emissions of $2.60 per MMBtu^3. Assume natural gas is competitively supplied.

1. Calculate the market equilibrium price and quantity of natural gas.

2. Calculate the social benefit of the market equilibrium (i.e. consumer surplus plus consumer surplus minus the external cost)

3. How much natural gas should be used? (i.e. calculate the socially efficient quantity of natural gas)

4. Calculate the deadweight loss of the market equilibrium. Illustrate on a graph.

In: Economics

Considering the Constitutional principle of federalism, explain the state’s potential stance for rejecting each of the...

Considering the Constitutional principle of federalism, explain the state’s potential stance for rejecting each of the three federal policies or proposals below. Clarify the rationale behind the federal government mandates. Federal requirements that states adopt Common Core curriculum standards or risk losing federal funding

In: Psychology

how to Download Ubuntu 20.04 and store on a USB memory stick, which must act as...

how to Download Ubuntu 20.04 and store on a USB memory stick, which must act as a bootable DVD.

In: Computer Science

Write a JAVA program that implements the following disk-scheduling algorithms: FCFS

Write a JAVA program that implements the following disk-scheduling algorithms:

  1. FCFS

In: Computer Science

1. What is the difference between the implementation of innovation and entrepreneurship within the organization from...

1. What is the difference between the implementation of innovation and entrepreneurship within the organization from a strategic management and business strategy perspective?

2. What are some of the benefits and risks of vertical integration as part of a company’s business strategy?

3 What are some of the strengths and weaknesses of mergers and acquisitions that would determine which is best for the organization?   

4. From a business strategy perspective, what factors must be considered as part of a successful global strategy?

5. Why is it important for the organizational structure to be in alignment with the organization business strategy?     

In: Operations Management

1.What is the role of an administrator at the home healthcare facility 2. What are the...

1.What is the role of an administrator at the home healthcare facility

2. What are the cheapest ways to advertise healthcare services in marketing?

3. How can a home healthcare facility gain more employees

4. How can healthcare facility gain private pay clients?

5.

In: Economics

What are the factors impacting on achieving sustaining competitive advantage of Corus hotels and What will...

What are the factors impacting on achieving sustaining competitive advantage of Corus hotels and What will be the Future strategic direction of Corus Hotels to gain competitive advantage?

Risk associated with gaining competitive advantages by Corus hotels?

In: Operations Management

A wheel, starting from rest, has a constant angular acceleration of 0.7 rad/s^2. In a 0.5-s...

A wheel, starting from rest, has a constant angular acceleration of 0.7 rad/s^2. In a 0.5-s interval, it turns through an angle of 101 rad. How long has the wheel been in motion at the start of this 0.5-s interval?

In: Physics

2. Define the following terms in your own words : a. Computer. b. Hardware (H/W). c....

2. Define the following terms in your own words :

a. Computer.

b. Hardware (H/W).

c. Software (S/W).

d. Input Devices.

e. Output devices.

f. Primary Memory.

g. Peripheral device.

In: Computer Science

COURSE : IT Enterprise systems Consider the following enterprise scenario and answer the following questions. ABC...

COURSE : IT Enterprise systems

Consider the following enterprise scenario and answer the following questions. ABC is a wholesale company that sells electrical equipment and provides a website from which customers can inquiry about products and identify what they want to buy. When costumers order electrical equipment, they place their order on the ABC website. ABC does not own or hold any equipment as inventory. Rather, the ABC orders the equipment from the appropriate supplier and ranges for the equipment to be shipped directly from the supplier to the customers. The customers pay ABC and receive receipts. The ABC also pays the suppliers and keeps the excess as revenues.

  1. Create a value chain REA model that represents the flow of ABC's resources between the sales/collection process with other business processes.
  2. Create a business process level REA model for ABC's sales/collection process. Be sure to include all relevant entities, relationships, and attributes.

note: NEED A UNIQUE ANSWER AND NO HANDWRITING PLEASE..

THANK YOU

In: Computer Science

1. Between religious wars and disease outbreaks can we really blame the Europeans for growing less...

1. Between religious wars and disease outbreaks can we really blame the Europeans for growing less enamored of their Faith or any Faith by the time the late 17th Century rolled around?

2. Did some Europeans find themselves attracted to commercial endeavors instead?

3. Why would many Europeans entertain and welcome idea of absolute rulers sent or chosen by God?

4. Is it any surprise that artists and authors found fertile ground for personal and individual success in this changing environment?

5. And was once almost all powerful Renaissance Spain a surprisingly golden place to satirize the human condition of this era?

In: Psychology

Cesar Rego​ Computers, a Mississippi chain of computer hardware and software retail​ outlets, supplies both educational...

Cesar Rego​ Computers, a Mississippi chain of computer hardware and software retail​ outlets, supplies both educational and commercial customers with memory and storage devices. It currently faces the following ordering decision relating to purchases of​disks:

D

37,000 disks

S

​$23

I

23​%

Purchase price

​$0.88

Discount price

​$0.82

Quantity needed to qualify for the discount​ = 5,900 disks.

What is the​ EOQ?

EOQ​ = ___ units ​(round your response to the nearest whole​number).

Since the total cost with discounted volume is (greater than or equal to/ less than?) the total cost at the EOQ​ volume, Cesar Rogo should (take or not take)

the​ discount, provided other factors such as storage​ space, etc. permits.

In: Operations Management