C++
[2] Write a program that prompts the user to enter a
non-negative decimal number and a base in the range 2 <= base
<= 16. Write a function multibaseOutput() that displays the
number in the specified base. The program terminates when the user
enters a number of 0 and a base 0.
Run:
Enter a non-negative decimal number and base (2 <= B <= 16)
or 0 0 to terminate: 155 16
155 base 16 is 9B
Enter a non-negative decimal number and base (2 <= B <= 16)
or 0 0 to terminate: 3553 8
3553 base 8 is 6741
Enter a non-negative decimal number and base (2 <= B <= 16)
or 0 0 to terminate: 0 0
In: Computer Science
2. Non-Local Strings
For this question, a block is a sequence of 20 characters, where each character is one of the 26 lowercase letters a-z. For example, these are blocks:
iwpiybhunrplsovrowyt rpulxfsqrixjhrtjmcrr fxfpwdhwgxtdaqtmxmlf
Sanity check: The formula you get for 2.4 gives the answer to 2.2 when k=1 and gives the answer to 2.3 when k=2.
In: Math
In: Computer Science
The 2017 balance sheet of Kerber’s Tennis Shop, Inc., showed long-term debt of $2.7 million, and the 2018 balance sheet showed long-term debt of $2.9 million. The 2018 income statement showed an interest expense of $95,000.
What was the firm’s cash flow to creditors during 2018?
In: Finance
Cutter Enterprises purchased equipment for $60,000 on January 1, 2018. The equipment is expected to have a five-year life and a residual value of $3,600. Using the sum-of-the-years'-digits method, depreciation for 2018 and book value at December 31, 2018, would be: (Do not round depreciation rate per year)
In: Accounting
On November 1, 2018, Company borrowed $30,000 from a bank sign a 12-month, 6% interest rate the first payment due on December 1, 2018. What should the company report on B/S, I/S and Statement of cashflow on Dec 31, 2018 and Dec 31, 2019?
In: Accounting
Tom and Betsy, who are married filing jointly, reported a standard deduction of $24,000 on their 2018 tax return. They paid $500 to the state for income taxes in 2018. In 2019, they received a $125 refund of state taxes paid in 2018. What is the amount that Tom and Betsy need to report on their 2019 tax return?
In: Accounting
In 2018, Grace
- bought a used car for her personal use for RM50,000;
- and spent RM8,000 on new car parts made in Malaysia.
For each of the two transactions above, explain how the components of GDP and the total GDP in 2018 are affected. What is the combined effect of these two transactions on Malaysian GDP in 2018?
In: Economics
In: Statistics and Probability
Barber and Odean, in their 2002 Journal of Finance paper entitled “Trading Is Hazardous to Your Wealth: The Common Stock Investment Performance of Individual Investors” state that:
“Our most dramatic empirical evidence supports the view that overconfidence leads to excessive trading. On one hand, there is very little difference in the gross performance of households that trade frequently (with monthly turnover in excess of 8.8 percent) and those that trade infrequently. In contrast, households that trade frequently earn a net annualized geometric mean return of 11.4 percent, and those that trade infrequently earn 18.5 percent.” Attempt to explain these findings using the behavioural finance theory.
In: Economics