In: Computer Science
Python 3.7:
1. Write a generator expression that repeats each character in a given string 4 times. i.e. given “gone”, every time you call the next method on the generator expression it will display “gggg”, then “oooo”, … etc and instantiate it to an object called G. G = (…..) # generatorExpression object
2. Test and verify that iter(G) and G are the same things. What does this tell you about the nature of a Generator object/expression?
3. Assign Iter(G) to an iterator object called it1 and advance it to the next element by using next method.
4. Instantiate a new Iter(G) object called it2. Use the next method and advance it to the next element. Observe the result and compare it with the results of it1.
5. Does the new Iter(G) object start the iterator from the start of the string object? Write down your understanding/conclusion from this experiment.
6. How can you get back the Iter(G) to point back to the beginning of the string?
In: Computer Science
A power line 50km long has a total resistance of 0.60ohm. A generator produces 100V at 70A. in order to reduce energy loss due to heating of the transmission line, the voltage is stepped up with a transformer with a primary to secondary turns ratio of 1 to 100. What percentage of the original energy is lost when the transformer is not used?
In: Physics
Write a java program creating an array of the numbers 1 through 10. Shuffle those numbers.
Randomly pick a number between one and ten and then sequentially search the array for that number.
Once the number is found, place that number at the top of the list.
Print the list. Perform #3 thru #5 ten times.
In: Computer Science
You are Head of HR for your company. Tell me what you would be doing to work with the staff and overall organization in this current COVID-19 crisis? Consider everything we have discussed up to this point around performance, measurements, talent management, compensation, and overall strategic objectives
In: Operations Management
A. What can happen if pointer is uninitialized. Explain the concept
and what should ideally be done
in such case
B. Memory was allocated initially for 5 elements,
later on two more elements added to list. How can
space be managed in such case. Implement the scenario in C.
In: Computer Science
In: Operations Management
The three methods of managing risk are: Loss control Loss financing Internal risk reduction Discuss these, making specific reference to how they apply to the role of a treasury risk manager
In: Finance
You are a new Irish based portfolio manager serving international clients. You have
€500 million of capital to invest and are currently formulating an investment and asset
allocation strategy.
Assuming your investment holding period is medium term (5 to 7 years), outline how
you would construct your portfolio and apportion capital to various assets.
Please outline your overall investment philosophy and general viewpoint on potential
returns during the holding period.
In terms of specific allocation please indicate the reasoning behind the asset selection.
considering you are a moderate investor
In: Finance
The liquid portion of a diet is to provide at least 300 calories, 36 units of vitamin A, and 90 units of vitamin C daily. A cup of one dietary drink provides 60 calories, 12 units of vitamin A, and 10 units of vitamin C. A cup of another dietary drink provides 60 calories, 6 units of vitamin A, and 30 units of vitamin C. Suppose that the first dietary drink costs $0.12 per cup while the second dietary drink costs $0.15 per cup. Determine how many cups of each drink should be consumed each day to minimize the cost and still meet the stated daily requirements using the Standard Simplex Method.
In: Advanced Math
In: Computer Science
Full Limo Inc. offers high-end transportation services between the King of Prussia Mall (KPM) and Center City Philadelphia (22.5 miles). The invested capital is $800,000, corresponding to the investment in the 4 luxury vans it owns (you can ignore all other invested capital). Each van can carry 10 passengers. Each van makes 12 daily trips from Philadelphia to KPM and 12 from KPM to Philadelphia. The company charges $10 for each one-way ride. The current load factor is 40% (that is, each ride has 4 passengers on average). A significant source of operating costs is the fuel cost. The company vans have a fuel economy of each of 20 mpg (miles/gallon). Current fuel prices are 2.629 $/gallon. The staff costs and other costs of operating the service and running the business are $1M per year. The company operates 365 days a year.
a) Draw an ROIC (return on invested capital) tree for the company.
b) What is the ROIC?
c) Assume that the company can increase the fuel efficiency of the vans to 25mpg. What would be the new ROIC?
In: Finance
You are the Compensation Manager for Chatham-Kent Health Alliance and I am the VP of Human Resources. I have tasked you with doing an external compensation survey. Using the information , develop an in-depth, comprehensive compensation survey and present your plan to me. minimum 500 words.
In: Operations Management
Consider the following three tables, primary and foreign keys.
Table Name SalesPeople
Attribute Name Type Key Type
EmployeeNumber Number Primary Key
Name Character
JobTitle Character
Address Character
PhoneNumber Character
YearsInPosition Number
Table Name ProductDescription
Attribute Name Type Key Type
ProductNumber Number Primary Key
ProductName Character
ProductPrice Number
Table Name SalesOrder
Attribute Name Type Key Type
SalesOrderNumber Number Primary Key
ProductNumber Number Foreign Key
EmployeeNumber Number Foreign Key
SalesOrderDate Date
Assume that you draw up a new sales order for each product sold.
Develop the following queries in SQL:
a. All the Sales People with less than four years in position.
b. All the Product Names sold on April 4th.
c. All the Products sold by Sales People less than 3 years in the position.
In: Computer Science
Q1: Choose the correct answer:
1- If the rotor of the induction motor is ……, then the rotor frequency will be zero
(A) Rotating at no load.
(B) rotating at the synchronous speed.
(C) locked.
(D) All of the above.
2- The …….. winding is placed near the transformer
core.
A) primary.
B) secondary.
C) low-voltage.
D) high-voltage.
3- An ideal transformer does not have any
A) copper losses.
B) core losses.
C) leakage
flux.
D) All of the above.
Q2: True or false:
1) The synchronous speed of the induction motor decreases as the supply frequency increases ( )
2) The motoring mode of the induction machine, the slip is lower than zero. ( )
3) Normally, the transformer efficiency does not depend on load current and load power factor ( )
4) The excitation current of the transformer is a very large current compared to the load current ( )
5) the open-circuit test of the transformer, the wattmeter reading represents the core-losses in the windings ( )
6) The induction motors are used in wind power generation ( )
In: Electrical Engineering