In C++, create two vectors, one a vector of ints and one a vector of strings. The user will fill each one with data, and then your program will display the values.
Sample Output
The following is an example of output for this program:
Enter int: 3
Enter int: 12
Enter int: 4
Enter int: 0
Your list is:
3
12
4
Enter string: The
Enter string: quick
Enter string: brown
Enter string: fox
Enter string: jumps
Enter string: over
Enter string: the
Enter string: lazy
Enter string: dog
Enter string: quit
Your list is:
The
quick
brown
fox
jumps
over
the
lazy
dog
In: Computer Science
The parking authority in downtown Halifax reported the following information for a sample of 270 customers on the number of hours cars are parked and the amount they are charged:
| Number of Hours | Frequency | Amount Charged |
| 1 | 19 | $3 |
| 2 | 44 | 6 |
| 3 | 64 | 9 |
| 4 | 48 | 12 |
| 5 | 38 | 14 |
| 6 | 16 | 16 |
| 7 | 7 | 18 |
| 8 | 34 | 20 |
| Total | 270 | |
a-1. Convert the information on the number of hours parked to a probability distribution. (Round the final answers to 3 decimal places.)
| Hours | Probability |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
a-2. Is this a discrete or a continuous probability distribution?
(Click to select)DiscreteContinuous
b-1. Find the mean and the standard deviation of the number of hours parked. (Round the final answers to 3 decimal places.)
Mean
Standard deviation
b-2. How would you answer the question, how long is a typical customer parked? (Round the final answer to 3 decimal places.)
The typical customer is parked for hours.
c. Find the mean and standard deviation of the amount charged. (Round the final answers to 2 decimal places.)
Mean
Standard deviation
In: Statistics and Probability
The team agrees that the goal is to have a winning boat ready to leave for the competition in 45 weeks at a cost of $3.2 million.
Design of the hull, deck, mast, and accessories will initiate the boat construction. After the design is complete, the hull can be constructed, the mast ordered, sails ordered, and accessories ordered. As soon as the hull is finished, the ballast tanks can be installed. Then the deck can be built. Concurrently with the deck construction, the hull can be treated with sealant. When the deck is completed and mast, sails, and accessories received, the mast and sails can be installed concurrently with the accessories. When these installations are complete, the boat can be sea-tested.
On the parallel path, choosing the crew and relocating them on site will take 6 weeks. At the same time, housing for the crew can be secured. Once the crew arrives and is housed, the training program using the old vessel will take place. After crew arrival, crew equipment can be selected and then ordered while training is underway. When training is complete, crew maintenance on the new vessel can begin. In order for the maintenance to begin, the deck must also be complete. Once crew maintenance is complete and while the boat is being sea-tested, sailing training on the new boat can be implemented. Finally, after the boat is sea-tested and sailing training is completed, regular sea training can be implemented, weather permitting.
- Fill in correct Predecessors, Contruct AON , If it’s currently the end of week 20 and $2 million has been spent to date, calculate SPI and CPI based on the following completion information: all tasks on track as planned for week 20 except C is 50%, F is 100%, and Q is 50%.
|
Activity |
Predecessor |
Weeks |
Cost ($000) |
|
A Design |
—— |
6 |
40 |
|
B Build hull |
12 |
1000 |
|
|
C Install ballast tanks |
2 |
100 |
|
|
D Order mast |
8 |
100 |
|
|
E Order sails |
6 |
40 |
|
|
F Order accessories |
15 |
600 |
|
|
G Build deck |
5 |
200 |
|
|
H Coat hull |
3 |
40 |
|
|
I Install accessories |
6 |
300 |
|
|
J Install mast and sails |
2 |
40 |
|
|
K Sea-test boat |
5 |
60 |
|
|
L Sea training |
8 |
200 |
|
|
M Select & relocate crew |
—— |
6 |
10 |
|
N Secure housing |
—— |
3 |
30 |
|
O Select crew equipment |
2 |
10 |
|
|
P Order crew equipment |
5 |
30 |
|
|
Q Training with old boat |
15 |
40 |
|
|
R Crew maintenance on new boat |
10 |
100 |
|
|
S Sail training on new boat |
7 |
50 |
- Fill in correct Predecessors, Find SPI , Find CPI
In: Operations Management
You are playing rock, paper, scissors (RPS) with a friend.
Because you are good at predicting your friend’s strategy, there is
a 60% chance each time that you play her, that you win. You play 7
games of rock, paper scissors with your friend and would like to
know how many of them you win. Use this information to answer the
following questions.
1. What is the random variable in this example?
a. X = number of times your friend wins at RPS
b. X = wins
c.X = times you win
d. X = number of times you win at RPS
2. What kind of random variable is X?
a. Discrete
b. Continuous - unbounded
c. Continuous - bounded
3. For this problem, what would constitute a success and what is
the probability that a success occurs?
a. Your friend winds a game of RPS, 60%
b. Your friend winds a game of RPS, 40%
c. You win a game of RPS, 40%
d. You win a game of RPS, 60%
4. What is the distribution of the random variable?
a. X ~ negbin(7, 0.6)
b. X ~ binomial
c. X ~ bin(7, 0.6)
d. X ~ bin(3, 0.6)
5. What is the probability that you win exactly three of the seven
games played? (To four decimal places)
6. What is the probability that you win five or fewer games? (To
four decimal places)
In: Statistics and Probability
home / study / math / statistics and probability / statistics and probability questions and answers / you were assigned to an audit of a wholly owned subsidiary of cba. you began with assessing ... Question: You were assigned to an audit of a wholly owned subsidiary of CBA. You began with assessing inter... You were assigned to an audit of a wholly owned subsidiary of CBA. You began with assessing internal controls over purchasing, specifically purchase transactions. Based on experience you decided on an 8% tolerable deviation rate. Given the importance you believed a 95% confidence level is justified. After estimating the expected deviation rate (4%) you selected a sample size of 100. Sixty sample items had values greater than $5,000 and was selected first. The remaining sample was selected at random from the month of January. January was chosen because most of the purchases were made in January. The sample was taken and eight deviations were found. The attribute tested was purchase authorization. Therefore, you chose vendor invoices as your sampling unit. You discovered following deviations were found. One invoice was not found One invoice was voided Three invoice was missing supporting documentation One invoice amount did not match the supporting documentation Two sampling units were credit memos not invoices Your conclusion is that the internal controls over purchasing is weak and additional accounts payable substantive testing is required. Required: List any weaknesses or improper assumptions used in the sampling.
In: Accounting
Suppose that XTel currently is selling at $50 per share. You buy 900 shares using $36,000 of your own money, borrowing the remainder of the purchase price from your broker. The rate on the margin loan is 9%.
a. What is the percentage increase in the net worth of your brokerage account if the price of XTel immediately changes to (a) $56; (b) $50; (c) $44? (Leave no cells blank - be certain to enter "0" wherever required. Negative values should be indicated by a minus sign. Round your answers to 2 decimal places.)
b. If the maintenance margin is 20%, how low can XTel’s price fall before you get a margin call? (Round your answer to 2 decimal places.)
c. How would your answer to requirement 2 would change if you had financed the initial purchase with only $22,500 of your own money? (Round your answer to 2 decimal places.)
d. What is the rate of return on your margined
position (assuming again that you invest $36,000 of your own money)
if XTel is selling after one year at (a) $56; (b) $50; (c)
$44? (Negative values should be indicated by a minus sign.
Round your answers to 2 decimal places.)
e. Continue to assume that a year has passed. How
low can XTel’s price fall before you get a margin call?
(Round your answer to 2 decimal places.)
In: Finance
In the code cell below, use two input() commands to collect two positive, non-zero integers from the user. These values represent the starting and ending values of a range (you may assume that the first value is always strictly less than the second value).
Next, use a loop to examine and count every integer in the range (including the starting and ending values) that contains at least one 7 among its digits. When your loop ends, print the total number of integers that contain at least one 7 and no other output.
For example, the input values 42 and 75 would produce the result 9 (within that range, we have the numbers 47, 57, 67, 70, 71, 72, 73, 74, and 75).
for example:
# Assume that my_number already has a value
number_string = str(my_number)
if 7 in number_string: # Add the rest of your code below...
In: Computer Science
A portfolio's performance is summarized in the table below. What is the geometric average return for the entire period?
| Year | Beginning of Year Price |
| 2017 | $40 |
| 2018 | $45 |
| 2019 | $41 |
| 2020 | $44 |
Multiple Choice
3.23%
10.00%
6.48%
2.41%
4.88%
In: Finance
For each of the following, indicate if the person would be classified officially as employed, unemployed (STRUCTURAL/FRICTIONAL/CYCLICAL), or not in the labor force: GIVE AN EXPLANATION IN EACH CASE IN FEW WORDS ONLY.
(i) A worker quits his job at the Post office to find more interesting work.
(ii) Collin has lost his job with a telemarketing company, which has moved its operation to India and he is now looking for a new job.
(iii) Frank recently lost his job as the computer manufacturing company he works for recently downsized after poor sales and poor performance of the economy during the last year
In: Economics
For each of the following, indicate if the person would be classified officially as employed, unemployed (STRUCTURAL/FRICTIONAL/CYCLICAL), or not in the labor force: GIVE AN EXPLANATION IN EACH CASE IN FEW WORDS ONLY.
(i) A worker quits his job at the Post office to find more interesting work.
(ii) Collin has lost his job with a telemarketing company, which has moved its operation to India and he is now looking for a new job.
(iii) Frank recently lost his job as the computer manufacturing company he works for recently downsized after poor sales and poor performance of the economy during the last year
In: Economics