I need C++ program that Read an input file of text.txt one word at a time. The file should consist of about 500 words. The program should remove all punctuations,keep only words. Store the words in a built-in STL container, such as vector or map.Can someone help with any additional comments that I can understand the logic?thank you
In: Computer Science
On March 1, 2012, the company purchased a building for $1,200,000 which is expected to last 40 years. When purchased, the building was not in a desirable area, but a new stadium is being built nearby, so the value of the building on December 31, 2015 is $2,000,000.
Assuming the company only adjusts depreciation at year-end, the adjusting journal entry on December 31, 2015 is:
In: Accounting
This question is on Apache Spark setup on both local machine and
Amazon Web Services (AWS) cloud platform. Please include detail
elaboration and screenshot for all key steps.
- Discuss on how to setup Apache Spark using Amazon EMR cluster.
Demonstrate how to plan and execute any one of the built-in PySpark
examples in non-interactive mode.
In: Computer Science
You are invited to design a vehicle identification number (VIN) system for the vehicles sold in the U.S.
The VIN number should reflect: a. the vehicle’s make, model, and model year; b. the country, state/province, and assembly plant where the vehicle is built; c. the sequence number of the vehicle.
Please EXPLAIN your design of this VIN number system with appropriate examples.
In: Accounting
For those fortunate souls who do not need glasses, the lens of the eye adjusts its focal length in order to form a proper image on the retina. This typically means that very distant objects as well as objects as close as 25 cm can be seen clearly. Many of us need corrective lenses since the lens in our eye cannot adjust sufficiently to produce a clear image over the full range object distances. This may be because the lens itself does not adjust well or because the eye is either longer or shorter than ‘normal’. In the case of someone who is nearsighted (can see up close) the eye may only be able to see clearly items up to 50cm or 1m away (this would be the far point). In order to see something further away, a lens (either glasses or contacts) is used to produce a virtual image of a distant object at the person’s far point. Their eye can then accommodate the rest of the way and produce a clear image. Suppose a person who has a far point of 63.0 cm is trying to view a distant object. What is the focal length (with correct sign) of a lens that would take a distant object and make an image on the same side of the lens as the object a distance 63.0 cm from the lens? Incorrect.
Is the lens converging or diverging?
Lenses are prescribed in terms of their refractive power, which is expressed in terms of diopters (see the text or your favorite search engine for the definition of a diopter). What is the refractive power of this lens in terms of diopters? (do not enter units.)
In the case of someone who is farsighted, the eye is not able to focus clearly on objects closer than a certain distance. This closest point on which a person’s eye can focus is called the near point. In this situation the corrective lens is used to make an object closer than the near point produce an image further away from the lens at the near point. Suppose a person who has a near point of 53.1 cm is trying to view a book at a distance of 25.0 cm. What is the focal length (with correct sign) of a lens that would take the book and make an image on the same side of the lens as the book a distance 53.1 cm from the lens?
Is the lens converging or diverging?
What is the refractive power of this lens in terms of diopters? (do not enter units.)
In: Physics
EcoBrite Labs performs tests on water samples supplied by outside companies to ensure that their waste water meets environmental standards. Customers deliver water samples to the lab and receive the lab reports via the Internet. The EcoBrite Labs facility is built and staffed to handle the processing of 100,000 tests per year. The lab facility cost $150,000 to build and is expected to last 10 years and will have no salvage value. Processing equipment cost $210,000 and has a life expectancy of five years and will have no salvage value. Both facility and equipment are depreciated on a straight-line basis. EcoBrite Labs has six salaried laboratory technicians, each of whom is paid $32,000. In addition to the salaries, facility, and equipment, EcoBrite Labs expects to spend $48,000 for chemicals and other supplies (assuming 100,000 tests are performed). Last year, 88,000 tests were performed.
Required:
1. Classify the resources associated with the water testing activity into one of the following types: (1) committed resources and (2) flexible resources.
Committed resources: Lab facility, equipment and technician
salaries
Flexible resources: Chemicals and
supplies
2. Calculate the total annual activity rate for the water testing activity. Break the activity rate into fixed and variable components. (Round your answers to three significant digits.)
| Total water testing rate: | $ per test |
| Variable activity rate: | $ per test |
| Fixed activity rate: | $ per test |
3. Compute the total activity availability, and break this into activity output and unused activity.
| Activity availability: | tests |
| Activity usage: | tests |
| Unused activity: | tests |
4. Calculate the total cost of resources supplied, and break this into the cost of activity used and the cost of unused activity.
| Cost of activity supplied: | $ |
| Cost of activity used: | $ |
| Cost of unused activity: | $ |
In: Accounting
Resource Usage and Supply, Activity Rates, Service Organization
EcoBrite Labs performs tests on water samples supplied by outside companies to ensure that their waste water meets environmental standards. Customers deliver water samples to the lab and receive the lab reports via the Internet. The EcoBrite Labs facility is built and staffed to handle the processing of 100,000 tests per year. The lab facility cost $180,000 to build and is expected to last 10 years and will have no salvage value. Processing equipment cost $290,000 and has a life expectancy of five years and will have no salvage value. Both facility and equipment are depreciated on a straight-line basis. EcoBrite Labs has six salaried laboratory technicians, each of whom is paid $35,000. In addition to the salaries, facility, and equipment, EcoBrite Labs expects to spend $50,000 for chemicals and other supplies (assuming 100,000 tests are performed). Last year, 88,000 tests were performed.
Required:
1. Classify the resources associated with the water testing activity into one of the following types: (1) committed resources and (2) flexible resources.
Committed resources:
Flexible resources:
2. Calculate the total annual activity rate for the water testing activity. Break the activity rate into fixed and variable components. (Round your answers to three significant digits.)
| Total water testing rate: | $ per test |
| Variable activity rate: | $ per test |
| Fixed activity rate: | $ per test |
3. Compute the total activity availability, and break this into activity output and unused activity.
| Activity availability: | tests |
| Activity usage: | tests |
| Unused activity: | tests |
4. Calculate the total cost of resources supplied, and break this into the cost of activity used and the cost of unused activity.
| Cost of activity supplied: | $ |
| Cost of activity used: | $ |
| Cost of unused activity: | $ |
In: Accounting
Resource Usage and Supply, Activity Rates, Service Organization
EcoBrite Labs performs tests on water samples supplied by outside companies to ensure that their waste water meets environmental standards. Customers deliver water samples to the lab and receive the lab reports via the Internet. The EcoBrite Labs facility is built and staffed to handle the processing of 100,000 tests per year. The lab facility cost $160,000 to build and is expected to last 10 years and will have no salvage value. Processing equipment cost $250,000 and has a life expectancy of five years and will have no salvage value. Both facility and equipment are depreciated on a straight-line basis. EcoBrite Labs has six salaried laboratory technicians, each of whom is paid $30,000. In addition to the salaries, facility, and equipment, EcoBrite Labs expects to spend $50,000 for chemicals and other supplies (assuming 100,000 tests are performed). Last year, 86,000 tests were performed.
Required:
1. Classify the resources associated with the water testing activity into one of the following types: (1) committed resources and (2) flexible resources.
Committed resources: Lab facility, equipment and technician
salaries
Flexible resources: Chemicals and
supplies
2. Calculate the total annual activity rate for the water testing activity. Break the activity rate into fixed and variable components. (Round your answers to the nearest cent.)
| Total water testing rate: | $ per test |
| Variable activity rate: | $ per test |
| Fixed activity rate: | $ per test |
3. Compute the total activity availability, and break this into activity output and unused activity.
| Activity availability: | tests |
| Activity usage: | tests |
| Unused activity: | tests |
4. Calculate the total cost of resources supplied, and break this into the cost of activity used and the cost of unused activity.
| Cost of activity supplied: | $ |
| Cost of activity used: | $ |
| Cost of unused activity: | $ |
In: Accounting
1.) As each extra unit is sold, what happens to a monopolist’s marginal revenue? ...... (A) A monopolist's marginal revenue decreases. (B) A monopolist's marginal revenue increases. (C) A monopolist's marginal revenue increases then increases again as even more units are sold. (D) A monopolist's marginal revenue remains static.
2.) When government price regulations paves a way for competitors to band together to reduce output, keep away competition and keep prices high it is known as ________....... (A) regulatory capture. (B) deregulatory limits. (C) deregulation policy.
3.) An example of a natural monopoly is a(n) ________ because the infrastructure has already been built so the marginal cost is relatively low....... (A) cereal producer (B) tire distributor (C) electric company
4.) Monopolists will earn the most profit by producing....... (A) where total revenue is farthest above total cost. (B) where total cost in the lowest. (C) where total revenue is highest.
5.) If two companies are seeking regulatory approval to merge their respective businesses, which of the following will most likely be the focus of the arguments that they will present in favor of the merger?........(A) The newly created firm is able to take advantage of additional trade barriers. (B) The newly created firm will benefit consumers by operating in the same manner as before. (C) Consumers can purchase better-quality goods or services at a lower price.
In: Economics
A company called Worldwide Development Ltd from Europe, had an electronic software manufacturing plant built for them by Electronic Merchandise Ltd, a company from the United States of America (USA). The amount that Worldwide Development Ltd owes to Electronic Merchandise Ltd for the manufacturing plant is $10,000,000. Worldwide Development Ltd Electronic agreed to pay Electronic Merchandise Ltd six months from now for the manufacturing plant. The current spot rate is €0.8573/$, the three month forward rate is €0.8617/$ and the six month forward rate is €0.8650/$. The annual interest rate is 0.2% in the USA and 2.0% in Europe. Electronic Merchandise Ltd can buy a six-month call or put option on $ at the strike price of €0.8649/$. The premium for put and call options are the same, namely €0.03 per $.
i. Should Electronic Merchandise Ltd enter into a put or call option? (Specify put or call and on what currency in the space provided below.)
ii. Compute the expected total future dollar cost (premium plus strike) of meeting this obligation if the option hedge is entered into by Electronic Merchandise Ltd. Show your workings and the correct answer as follows in the space provided below:
Premium:
Strike price:
Total cost:
One of the following answers will be correct for the total future dollar cost:
a. € 8,952,000.00
b. € 8,949,300.00
c. € 11,865,030.29
d. € 11,862,330.29
In: Finance