Write a C++ program that asks the user to enter in three numbers and displays the numbers in ascending order.
If the three numbers are all the same the program should tell the user that all the numbers are equal and exits the program.
Be sure to think about all the possible cases of three numbers.
Be sure to test all possible paths.
Sample Runs:
NOTE: not all possible runs are shown below.
Sample Run 1
Welcome to the order numbers program
Please enter in a number... 8
Please enter in a number... 8
Please enter in a number... 8
All the numbers are equal.
Sample Run 2
Welcome to the order numbers program
Please enter in a number... 8
Please enter in a number... 9
Please enter in a number... 3
3
8
9
1. No global variables (variables outside of main() )
2. All input and output must be done with streams, using the
library iostream
3. You may only use the iostream and iomanip libraries (you do not
need any others for these tasks)
4. NO C style printing is permitted. (Aka, don’t use printf). Use
cout if you need to print to the screen.
5. When you write source code, it should be readable and
well-documented (comments).
In: Computer Science
Explain why depository institutions are more prone to “runs” than other financial intermediaries.
In: Finance
1) Identify the sources and discuss the consequences of bank runs, bank panics, and financial crises
In: Economics
Try to control 3 LEDs by Potentiometer. Take 3 LEDs and connect it up the same way we use to do and connect the potentiometer to one of the analog pins. Observe the values coming out from it. Program the code such a way, when it runs, first, LED 1 should turn ON, then after a certain amount of value range, LED 1 should be OFF and LED 2 should be ON. Again, the same way, LED 2 should be OFF and LED 3 should be ON. The value ranges from 0-1023. It is up to you how these values should be divided into 3 parts. It would be nice if you would use Nested loops because there are more than two conditions.
using Arudrino and Sparkfun kit
In: Computer Science
) (Take eastward as the positive direction) Zachary, who is a runner, runs 8.30m/s westward for 12.0s. Zachary then turns around and runs 50.0m eastward toward the starting point in 30.0s. What is the Zachary’s a) total displacement b) total distance traveled c) explain the difference in your values for parts (a) and (b) d) average speed for the entire run e) average velocity for the entire run f) explain the difference in your values for parts (d) and (e)
In: Physics
Adjusted WACC. Lewis runs an outdoor adventure company and wants to know what effect a tax change will have on his company's WACC. Currently, Lewis has the following financing pattern:
Equity: 41% and cost of 15.66%
Preferred stock: 13% and cost of 12.93%
Debt: 46% and cost of 9.5% before taxes
What is the adjusted WACC for Lewis if the tax rate is
a. 40%?
b. 30%?
c. 15%?
d. 5%?
e. 0%?
In: Finance
One unit of A is composed of two units of B and three units of C. Each B is composed of one unit of F. C is made of one unit of D, one unit of E, and two units of F. Items A, B, C, and D have 20, 40, 60, and 25 units of on-hand inventory, respectively. Items A, B, and C use lot-for-lot (L4L) as their lot-sizing technique, while D, E, and F require multiples of 50, 100, and 85, respectively, to be purchased. B has scheduled receipts of 30 units in Period 1. No other scheduled receipts exist. Lead times are one period for Items A, B, and D, and two periods for Items C, E, and F. Gross requirements for A are 20 units in Period 1, 20 units in Period 2, 50 units in Period 6, and 40 units in Period 8.
| Period | 1 |
1 & 2 |
3 | 4 | 5 | 6 | 7 | 8 | |||
| Item A OH = 20 LT = 1 SS = 0 Q = L4L |
Gross requirements | ||||||||||
| Scheduled receipts | |||||||||||
| Projected available balance | |||||||||||
| Net requirements | |||||||||||
| Planned order receipts | |||||||||||
| Planned order releases | |||||||||||
| Item B OH = 40 LT = 1 SS = 0 Q = L4L |
Gross requirements | ||||||||||
| Scheduled receipts | |||||||||||
| Projected available balance | |||||||||||
| Net requirements | |||||||||||
| Planned order receipts | |||||||||||
| Planned order releases | |||||||||||
| Item C OH = 60 LT = 2 SS = 0 Q = L4L |
Gross requirements | ||||||||||
| Scheduled receipts | |||||||||||
| Projected available balance | |||||||||||
| Net requirements | |||||||||||
| Planned order receipts | |||||||||||
| Planned order releases | |||||||||||
| Item D OH = 25 LT = 1 SS = 0 Q = 50 |
Gross requirements | ||||||||||
| Scheduled receipts | |||||||||||
| Projected available balance | |||||||||||
| Net requirements | |||||||||||
| Planned order receipts | |||||||||||
| Planned order releases | |||||||||||
| Item E OH = 0 LT = 2 SS = 0 Q = 100 |
Gross requirements | ||||||||||
| Scheduled receipts | |||||||||||
| Projected available balance | |||||||||||
| Net requirements | |||||||||||
| Planned order receipts | |||||||||||
| Planned order releases | |||||||||||
| Item F OH = 0 LT = 2 SS = 0 Q = 85 |
Gross requirements | ||||||||||
| Scheduled receipts | |||||||||||
| Projected available balance | |||||||||||
| Net requirements | |||||||||||
| Planned order receipts | |||||||||||
| Planned order releases | |||||||||||
Hints
References
In: Operations Management
Suppose we have two different water-benzene-acetic acid solutions, one with 40% water, 50% benzene and 10% acetic acid, the other with 52% water, 42% benzene and 6% acid.
(a) An experiment we want to conduct requires a solution with 43% water, 48% benzene and 9% acid. Representing each acid solution as a vector, determine if we can we make this new acid solution by mixing the first two solutions, or do we have to run to the chemical solutions market to get the solution we want?
(b) Using the water-benzene-acetic acid solutions in the previous problem, can we obtain an acid solution which contains 50% water, 43% benzene and 7% acid? (c)
Determine the relationship between the percentages of water, benzene, and acid in solutions which can be obtained by
mixing the two given water-benzene-acetic acid solutions above.
Hi, Could you please help me to solve the question. Also, could you please answer questions in clear hand-writing and show me the full process, thank you (Sometimes I get the answer which was difficult to read).Thanks a lot.
In: Advanced Math
3) You have been asked to study whether there is a statistical relationship between the region of the country and the categorical number of stores that have experienced at least a 20% return rate of the item you are studying. Sample data concerning these two variables is given in appendix three. At both the 5% and 2% levels of significance, is there evidence of a relationship between the region of the country and the categorical number of stores that have experienced at least a 20% rate of return of the item? Appendix Three: Region Number of Stores One Two Three Four <25 18 21 13 28 [25-50) 11 20 19 24 [50-75) 15 17 22 18 [75-100) 9 7 8 10 ≥100 6 5 6 7
In: Statistics and Probability
Appendix Three:
Region
Number of Stores One Two Three Four
<25 18 21 13 28
[25-50) 11 20 19 24
[50-75) 15 17 22 18
[75-100) 9 7 8 10
≥100 6 5 6 7
In: Statistics and Probability