A 2.49-kg cart on a long, level, low-friction track is heading for a small electric fan at 0.25 m/s . The fan, which was initially off, is turned on. As the fan speeds up, the magnitude of the force it exerts on the cart is given by at2, where a = 0.0200 N/s2.
Part A
What is the speed of the cart 3.5 s after the fan is turned on?
Part B
After how many seconds is the cart's velocity zero?
In: Physics
Develop a simple point-to-point Message communication system(Java Message Service) using ActiveMQ. Provide the necessary code.
In: Computer Science
Using C++,
Write a program that will use pointer syntax to access variables, dynamically allocate memories, and pass pointers to functions.
1. The program should ask the user to enter a size to the array.
2. The program should dynamically allocate an array with the size.
3. The program should then ask user to input values to the array
4. The program should then find the maximum, display all elements forward and reversed using two different ways of pointer access
5. The program must use functions with pointers as parameters.
6. The manipulation/access of the array must be done through pointer syntax.
7. Your main function should only declare the variables and call the functions.
Variable:
You’ll need the following pointer to be declared in your main function.
float * ptData;
Data Validation:
1. The size of the array cannot be less or equal to 1 (E.g. 2, 5, 100 is fine, but 1 or 0 is no acceptable).
2. Check if pointer has successfully allocated the array.
Functions:
You should have separate functions to handle user input, maximum, and display the array (all the values needs to be returned to the function call, you need to have pointer as the input parameter). Main function should only call other functions.
|
Function Header |
Explanation |
|
void getSize(int * ptr) |
This function will ask user to enter a size to the array. The size of the array cannot be less or equal to 1. For example: 2, 5, 100 is fine, but 1 or 0 is no acceptable. |
|
float * getValues(const int SIZE) |
This function will declare and use a pointer to dynamically allocate an array with the size user has entered. The pointer should be returned to the function’s call. Check if pointer has successfully allocated the array. |
|
float getMax(const float * ptr, const int SIZE) |
This function will find and return the maximum value of the array using pointer syntax. |
|
void displayForward(const float * ptr, const int SIZE) |
This function should display all array elements forward (from the first to the last) |
|
void displayBackward(float * const ptr, const int SIZE) |
This function should display all array elements backward (from last to the first) You are required to use the following pointer and loop to accomplish this task. float * ptr2 = ptr + SIZE; while (ptr < ptr2) |
Sample Output:
|
Please enter a size to the array: -9 !!!Error: an array’s size cannot be less or equal to 1 Please enter a size to the array: 6 Please enter all values of the array: Value 1: 4 Value 2: 5 Value 3: 7 Value 4: 2 Value 5: 1 Value 6: 8 Displaying all values forward: 4 5 7 2 1 8 Displaying all values backward: 8 1 2 7 5 4 The maximum value of this array is: 8 |
In: Computer Science
4. Forty-three milliliters of 0.130 M nitric acid is added to 30.0 mL of 0.095 M calcium hydroxide. Calculate the pH of the initial nitric acid solution and then calculate the pH of the combined solutions. Assume the solution volumes are additive. Hint: determine whether excess H+ or OH- remain in solution after neutralization, then calculate the pH.
Show all steps please to help me understand, thank you!
In: Chemistry
For each of the situations described below, select the type of analytics that would address the specific organizational need and justify your selection.
b. A large retail chain wants to understand what factors contributed to the overall sales decline it experienced in a specific month in the past.
c. To support staffing analysis for a holiday season, a clothing store wants to improve its understanding of the number of customers that are likely to visit each of its stores during the November 15–January 15 time frame.
d. A gaming company wants to provide all of its employees an up-to-date graphical representation of the number of downloads of its game products and in-app revenue associated with them.
In: Operations Management
You are the owner of Smalltown Computer, a local computer repair store that also assembles custom computers to order. The company has been very successful and is growing exponentially. However, the company is having difficulty preparing for future growth. The only information system the company has is an accounting system.
In: Operations Management
1. List and explain at least two forces of the external environment (General or Industry) that are causing all companies --not just Volkswagen-- to become more sensitive to environmental issues.
2. Before the scandal, what was Volkswagen's apparent position on the environment, and what did the company do to ensure that stakeholders (i.e., customers, employees, society) knew this position?
-List at least two ways in which VW communicated this stance to stakeholders
3. Based on the industry forces, describe the nature of competition in the global automobile industry and explain the reasons for this rivalry.
To what extent do you think competition led to the Volkswagen scandal?
4. Describe two (2) of Volkswagen's responses to the allegations.
In: Operations Management
A load ZL = 80− j100 is located at z = 0 on a lossless 50-
line.
The operating frequency is 200 MHz and the wavelength on the line
is 2 m.
(a) If the line is 0.8 m in length, use the Smith chart to find the
input impedance.
(b) What is s? (c) What is the distance from the load to the
nearest voltage
maximum? (d) What is the distance from the input to the nearest
point at which
the remainder of the line could be replaced by a pure
resistance?
In: Computer Science
Blue Skies Equipment Company uses the aging approach to estimate bad debt expense at the end of each accounting year. Credit sales occur frequently on terms n/60. The balance of each account receivable is aged on the basis of three time periods as follows: (1) not yet due, (2) up to one year past due, and (3) more than one year past due. Experience has shown that for each age group, the average loss rate on the amount of the receivable at year-end due to uncollectibility is (a) 9 percent, (b) 12 percent, and (c) 35 percent, respectively.
At December 31, 2019 (end of the current accounting year), the Accounts Receivable balance was $49,900 and the Allowance for Doubtful Accounts balance was $1,000 (credit). In determining which accounts have been paid, the company applies collections to the oldest sales first. To simplify, only five customer accounts are used; the details of each on December 31, 2019, follow:
| B. Brown—Account Receivable | ||||
| Date | Explanation | Debit | Credit | Balance |
| 03/11/2018 | Sale | 14,200 | 14,200 | |
| 06/30/2018 | Collection | 4,300 | 9,900 | |
| 01/31/2019 | Collection | 4,700 | 5,200 | |
| D. Donalds—Account Receivable | ||||
| Date | Explanation | Debit | Credit | Balance |
| 02/28/2019 | Sale | 21,100 | 21,100 | |
| 04/15/2019 | Collection | 8,500 | 12,600 | |
| 11/30/2019 | Collection | 4,500 | 8,100 | |
| N. Napier—Account Receivable | ||||
| Date | Explanation | Debit | Credit | Balance |
| 11/30/2019 | Sale | 8,900 | 8,900 | |
| 12/15/2019 | Collection | 1,900 | 7,000 | |
| S. Strothers—Account Receivable | ||||
| Date | Explanation | Debit | Credit | Balance |
| 03/02/2017 | Sale | 5,300 | 5,300 | |
| 04/15/2017 | Collection | 5,300 | 0 | |
| 09/01/2018 | Sale | 10,500 | 10,500 | |
| 10/15/2018 | Collection | 3,700 | 6,800 | |
| 02/01/2019 | Sale | 22,300 | 29,100 | |
| 03/01/2019 | Collection | 7,200 | 21,900 | |
| 12/31/2019 | Sale | 3,200 | 25,100 | |
| T. Thomas—Account Receivable | ||||
| Date | Explanation | Debit | Credit | Balance |
| 12/30/2019 | Sale | 4,500 | 4,500 | |
Required:
1. Compute the estimated uncollectiable amount for each age category and in total
Not yet Due______
Up to one year past due______
More than one year past due____
Total accounts recieveable___
2) Journal Entry
3)Partial Income Statement & Partial Balance sheet
In: Accounting
g. Crazing and peeling are defects associated with glazing
process; explain how they are different, and how they can be
prevented?
h. Identify at least THREE processes that are line of sight
processes.
i. List at least one limitation of PVD process.
j. Identify at least one failure mechanism associated with CVD
coatings.
k. Gas turbine blades are to be refurbished; identify the
process(es) and major steps involved in this process.
l. Identify at least TWO limitations of flame spraying.
m. What is a comparative advantage of using plasma arc thermal
spraying process?
In: Mechanical Engineering
Discuss if ethically managed organisations are more profitable than other. Also, explain can an installation of ethics officer and adoption of “compliance and ethics program” will improve the organisational efficiency and effectiveness.
In: Operations Management
b) How much work in Joules must be done for a heat transfer of 4.925x10^6 J from the cold environment?
c) What is the cost of doing this, if the work costs 16.5 cents per 3.60x10^6 J (a kilowatt-hour)?
d) How many Joules of heat transfer occurs into the warm environment?
In: Physics
As a result of technology, more and more of us are interacting with and operating within networks than ever before. Facebook is an obvious example of how network externalities are generated by the addition of new users. How has your own life (social, work and school related) been affected by the growing importance of networks? Can you think of any downsides to the trend?
In: Economics
can you please explain the Violation-of-Expectation Method?
In: Psychology
You are part of a marketing team that needs to research the potential of a new product. Your team decides to e-mail an interactive survey to a random sample of consumers. Write a short questionnaire that will generate the information you need about the new product. Select a sample of 200 using an SRS from your sampling frame. Discuss how you will collect the data and how the responses will help your market research.
In: Math