Suppose you put positive charge on an insulated metal box
(actually, remove electrons from the box). Since it is a conductor,
the charges will rearrange.
- The greatest accumulation of charges will be
- The electric field inside the box will be
2. Suppose identical metal spheres are insulated from their
surroundings and touching each other. A positive charge is brought
near,
but not touching
sphere A, and held near to sphere A as the two spheres are
separated. Now, the positive charge is removed. What charge will be
left on sphere A and sphere B, respectively?
In: Physics
PYTHON PYTHON
Recursive Functions. In this problem, you are asked to write three recursive functions. Implement all functions in a module called problem1.py.
(10 points) Write a recursive function called remove char with two parameters: a string astr and a character ch. The function returns a string in which all occurrences of ch in astr are removed. For example, remove char("object oriented", ’e’) returns the string "objct orintd". Your implementation should not contain any loops and may use only the index [] and slice operators [:] for strings. No other built-in functions may be used.
(10 points) Write a recursive function called occurrences with two parameters: a string astr and another (nonempty) string substr. The function returns the number of times the substring substr appears in the string astr. For example, occurrences("how now brown cow", "ow") should return 4, occurrences("house mouse louse", "ow") should return 0, and occurrences("green eggs and ham", "egg") should return 1. Your implementation should not contain any loops and may use only the index [] and slice operators [:] for strings. No other built-in functions may be used. Please note that in is a built-in function, and you may not use it to implement your function.
3. (10 points) Write a recursive function called duplicates with a single parameter L, a list of items. The function returns True if L has any duplicate (i.e. repeating) items and False otherwise. The function must be implemented recursively. The base case occurs when the list is empty (in which case it returns False). Your function should consist only of the base case and recursive calls in an if/else statement. You are not allowed to use any built-in functions other than len for lists. Please note that in is a built-in function, and you may not use it to implement your function. In addition, you are only allowed to use the index operator [] and the slice operator [:] for lists. There should not be any loops (for or while) in your implementation! Hint: Your function will need two recursive calls, not just one.
In: Computer Science
Write a Matlab function for a matrix that takes in a matrix in echelon form and will return the row canonical form. The function cannot use rref, or any other matlab built in functions.
In: Advanced Math
In python
Write a program to implement RSA algorithm based on the public key.
def encryptmessage():
def decryptmessage():
encryptmessage ()
decryptmessage ()
No in-built functions and third-party APIs will be allowed.
In: Computer Science
Vision Resort is a five-star resort and spa founded in 2012. Vision believes in offering authentic services to every customer by fulfilling and catering the needs of their guests efficiently. Facilities and services include spacious rooms, banquet halls, gardens, restaurants, a wide range of food with delicious cuisines. All its employees are well trained and provide high customer satisfaction.
Vision resort focuses on premium pricing strategy for its products as they cater to high profile business class and upper class of the society. The value provided through the luxurious experience to the customers during their stay in the resort and the first class royal service explains the high prices of the resort packages. However, in light of the current economic condition in the world due to the Coronavirus, the resort is currently trying to provide a combination of high quality and service while also providing fair prices.
Also, Vision resort is the owner and operator of the franchise system. They are present in 20 countries prominent ones being in Bahrain, Oman, Kuwait, and Dubai Chicago, Hong Kong, Manila, Mumbai, San Francisco, and Tokyo. It is noteworthy that the prices of the resort packages differ based on the geographic location. Also, prices fluctuate during different times of the year, as they tend to increase during the weekends and Eid holidays and decrease during the low seasons.
Regarding the promotion strategy, vision resort has built and maintained positive awareness, and brand value by word of mouth. This has been achieved by gaining high customer satisfaction and providing excellent customer relationship management. They reward loyalty to regular clients by their signature membership cards known as Vision Gold Passport accepted globally which fetches them extra discounts and additional perks. Due to the social distancing, vision resort adopted advertising via TV broadcasting. Moreover, digital marketing tools such as instagram sponsorship allowed reaching target customers through a click of a button.
Recently, a new global disease has spread rapidly among people and the resort decided to open its doors to the passengers arriving into the country by air and border crossings and were taken to stay for free in a 14-day coronavirus quarantine. This initiative shows the social responsibility that the resort holds towards the community.
Answer the following questions:
1. What is the major pricing strategy vision resort follows and why?
2. What is the price elasticity of demand for rooms in the resort and why?
3. What is the price adjustment strategy followed by the resort management?
4. Give examples of the promotion mix?
5. The hotel resort management is planning to open a new shop in the resort, a brain storming session was held with the hotel employees where they suggested the following ideas: A coffee shop, diving equipment shop, gifts shop. Explain the process (steps) undertaken by the resort management to introduce a new product.
In: Economics
Bramble Company owns 9,000 acres of timberland purchased in 2009 at a cost of $1,596 per acre. At the time of purchase, the land without the timber was valued at $456 per acre. In 2010, Bramble built fire lanes and roads, with a life of 30 years, at a cost of $95,760. Every year, Bramble sprays to prevent disease at a cost of $3,420 per year and spends $7,980 to maintain the fire lanes and roads. During 2011, Bramble selectively logged and sold 798,000 board feet of timber, of the estimated 3,990,000 board feet. In 2012, Bramble planted new seedlings to replace the trees cut at a cost of $114,000.
Determine the depreciation expense and the cost of timber sold
related to depletion for 2011. (Round intermediate
calculations to 5 decimal places, e.g. 1.54687 and final answers to
0 decimal places, e.g. 5,125.)
| Depreciation expense |
$ |
|
| Cost of timber sold |
$ |
Bramble has not logged since 2011. If Bramble logged and sold
1,026,000 board feet of timber in 2019, when the timber cruise
(appraiser) estimated 5,700,000 board feet, determine the cost of
timber sold related to depletion for 2022. (Round
intermediate calculations to 5 decimal places, e.g. 1.54687 and
final answers to 0 decimal places, e.g.
5,125.)
| Cost of timber sold |
$ |
In: Accounting
Soap Makers International
Several years ago, Ingrid Krause wanted some international expertise and applied for a transfer to her company’s soap division, which is located south of Warsaw, Poland. The soap division manufactures hand soap for use in a large number of settings, from hospitals to luxury hotels. Ingrid was awarded the transfer to the soap division and was assigned to the accounting department. She is responsible for overseeing the costing and probability analysis of the various soaps and soap-making processes. During her tenure in the soap division, there were numerous changes in the number of soaps manufactured and the processes to make the different soaps. Consequently, Ingrid’s position required her to consider changes in the accounting processes to reflect the changes in the soap division’s business.
For several decades, the company’s soap-making process required a large labour force that manufactured and packaged the soap mainly by hand. Local economic changes meant that the labour force that the factory required was not as available as it had been in the past. As a result, the division was experiencing slower processing time, and more snap being rejected during inspections because of quality concerns. To address the issues related to the lack of labour availability, the division’s management decided three years ago that automation was the way to go. Consequently, over the last three years, the soap making processes have changed with the implementation of automation.
The automation of the soap making processes have allowed for a much larger variety of soap and packing, a reduced direct labour force and direct labour costs, and a higher level of traceability of costs to the various soaps because of technological improvements. Soaps made for industrial applications require different ingredients, less time in processing, less time in finishing, and less time in and cheaper packaging than do soaps for the hotel industry. The costs of materials and packaging are directly traceable to the various types of soaps through new software that uses bar codes and counters to trace material costs to the various soaps directly.
Ingrid feels that the current costing system should be revisited. The cost driver for allocation of the overhead costs (such as supervisory salaries and plant utilities) have always been direct labour hours cost. However, given the decline in the use of labour due to automation, Ingrid is questioning its suitability as a basis of allocation. Ingrid would like to explore activity based costing to allocate overhead costs.
Ingrid has gathered cost data for two representative soaps: one sold to hospitals and one sold to hotels. Further, Ingrid has gathered data from the automated system on the amount of time each type of soap spends in the three manufacturing processes: processing, finishing, and packaging. The soap is produced in large batches, consequently, the data are adjusted to reflect the average cost per 100g of soap. The data for type of soap for one month’s production are in Exhibit 1.
REQUIRED
EXHIBIT 1 – COSTS FOR ONE MONTH’S PRODUCTION OF SOAP
|
Cost Components |
Total |
Costs Per 100 g of soap |
|
|
Industrial Soap (Hospital) |
Luxury Soap (Hotel) |
||
|
Direct Materials |
$4.000,000 |
$0.40 |
$0.80 |
|
Packaging |
$2,000,000 |
$0.10 |
$0.60 |
|
Direct Labour |
$750,000 |
$0.14 |
$0.15 |
|
Manufacturing |
$5,000,000 |
||
|
Processing |
$2,500,000 |
||
|
Finishing |
$1,500,000 |
||
|
Packaging |
$1,000,000 |
||
EXHIBIT 2 – TIME REQUIRED FOR ONE MONTH’S PRODUCTION OF SOAP
|
Time Components |
Total |
Time per 100 g of soap |
|
|
Industrial Soap (Hospital) |
Luxury Soap (Hotel) |
||
|
Processing |
750,000 seconds |
0.2 second |
0.4 second |
|
Finishing |
300,000 seconds |
0.03 second |
0.4 second |
|
Packaging |
100,000 seconds |
0.006 second |
0.5 second |
In: Accounting
the manager of an amusement park would like to be able to predict daily attendance in order to develop more accurate plans about how much food to order and how many ride operators to hire. after some consideration, he decided the following three factors are critical: 1. Yesterday's attendance 2. Weekday or Weekend 3. Predicted Weather He then took a random sample of 40 days. For each day, he recorded the attendance, day of the week, and weather forecast. The first independent variable is interval, but the other two are nominal. Accordingly, he created the following sets of indicator variables:
I1 = 1- (IF WEEKEND) 0 - (IF NOT)
I2 = 1 - (IF MOSTLY SUNNY IS PREDICTED) 2 - (IF NOT)
I3 = 1 - (IF RAIN IS PREDICTED) 2 - (IF NOT)
A. Conduct regression analysis
B. Is model valid? Explain
C. Can we conclude weather is a factor in determining attendance
D. Do these results provide sufficient evidence that weekend attendance is, on average, larger than weekday attendance?
I will attach data in another question
In: Statistics and Probability
#1. [Water Slide & Swing] You are designing a slide for a water park. In a sitting position, park guests slide a vertical distance h down the water slide, which has negligible friction. When they reach the bottom of the slide, they grab a handle at the bottom end of a 6.00-m-long uniform pole. The pole hangs vertically, initially at rest. The upper end of the pole is pivoted about a stationary, frictionless axle. The pole with a person hanging on the end swings up through an angle theta max , and then the person lets go of the pole and drops into a pool of water. Treat the person as a point mass. The pole’s moment of inertia is given by I = (1/3)ML , where L = 6.00 m is the length of the pole and M = 24.0 kg is its mass. In your design, a person of mass m = 70.0 kg is to have a maximum angle of swing of theta max = 72.0˚ after their collision with the pole.
(a) In the "collision" between the slider and the pole, why is angular momentum about the pole's pivot conserved, but linear momentum and kinetic energy are not conserved? Assume that the slider is moving horizontally when they grab the handle on the vertically hanging pole.
(b) What is the angular speed of rotation of the pole & swinger just after the swinger grabs on, in terms of the final height the swinger reaches?
(c) What is the speed of the swinger at the bottom of the slide just before reaching the pole, in terms of their speed just after grabbing the pole?
(d) For a person of mass m = 70.0 kg, what must be the starting height h in order for the pole with person to have a maximum angle of swing of theta max = 72.0˚ after the collision?
In: Physics
For questions 5 – 6, assume that to ride the Whirling Dervish at an amusement park, riders must be no taller than 75 in. Assume that men have normally distributed heights with a mean of 70 in. and a standard deviation of 2.8 in. 5. Find the percentage of men who will not meet the height requirement. Round to two percentage decimal places (for example, 38.29%). 6. If the height requirement is changed so that only the tallest 5% of men will be excluded from riding the Whirling Dervish due to height restrictions, what is the new height limit? Round to the nearest inch.
In: Statistics and Probability