write C++ program using functions
(separate function for each bottom)
Write a program to find if a number is large word for two given bottom base - bottom1 and bottom2. You can predict that a number, when converted to any given base shall not exceed 10 digits. .
the program should ask from user to enter a number that it
should ask to enter the base ranging from 2 to 16 after that it
should check if the number is palindrom or not
Sample Input:
A number is called a word if it's represented in its bottom.
e.g. Let bottom1 = 6 and bottom2 = 2 as it is not a word
in base 5(1010)(as the reciprocal of the number isnt a
palindrome).
bottom is base of a number
take bases as input from user
bases can go from decimal-hexadecimal.
for bottom1 = 3 & bottom2 = 4, then the number 130 (in base 10) will be called a large_word, as it is word in bottom 3 (11211) as well as in bottom 4 (2002). However, it is not a large_word for bottom1 = 3 and bottom2 = 5 as it is not a word in bottom 5(1010).
Number: 51
bottom(base) 1: 6
bottom(base) 2: 2
Sample Output:
51 is not large word
hint:
bottom is basically base of a number
A large _word is a word, phrase, number, or other sequence of characters which reads the same reverse or straightward.
word==palindrome
use function in the program at all time
In: Computer Science
can someone please answer my question ?
Tesco is a global grocery and general merchandise retailer headquartered in Cheshunt, United Kingdom. It is the third-largest retailer in the world measured by revenues (after Wal-Mart and Carrefour) and the second-largest measured by profits Tesco House, head office in Cheshunt, Hertfordshire. (after Wal-Mart). It has stores in 14 countries across Asia, Europe and North America and is the grocery market leader in the UK (where it has a market share of around 30%), Malaysia, the Republic of Ireland and Thailand. Tesco opened its first store in Malaysia in May 2002 with the opening of its first hypermarket in Puchong, Selangor. Tesco Malaysia currently operates 49 Tesco and Tesco Extra stores.
Assume the role of a management consultant reporting to the CEO and Board of Directors at TESCO Malaysia, prepare a report based on the following questions below. In your report, address the following points:
In: Operations Management
With double-digit annual percentage increases in the cost of
health insurance, more and more workers are likely to lack health
insurance coverage (USA Today, January 23, 2004). The
following sample data provide a comparison of workers with and
without health insurance coverage for small, medium, and large
companies. For the purposes of this study, small companies are
companies that have fewer than 100 employees. Medium companies have
100 to 999 employees, and large companies have 1000 or more
employees. Sample data are reported for 50 employees of small
companies, 75 employees of medium companies, and 100 employees of
large companies.
Health Insurance
Size of Company yes no total
Small 35 15 50
Medium 67 8 75
Large 87 13 100
a.) Conduct a test of independence to determine whether employee health insurance coverage is independent of the size of the company. Use = .05. Compute the value of the test statistic (to 2 decimals).
b.) the p-value is _____________
c.) What is your conclusion _________________
d.) The USA Today article indicated employees of small companies are more likely to lack health insurance coverage. Calculate the percentages of employees without health insurance based on company size (to the nearest whole number).
Small _____ %
Medium ______ %
Large ______ %
Based on the percentages above what do you conclude ___________________
In: Statistics and Probability
With double-digit annual percentage increases in the cost of
health insurance, more and more workers are likely to lack health
insurance coverage (USA Today, January 23, 2004). The following
sample data provide a comparison of workers with and without health
insurance coverage for small, medium, and large companies. For the
purposes of this study, small companies are companies that have
fewer than 100 employees. Medium companies have 100 to 999
employees, and large companies have 1000 or more employees. Sample
data are reported for 50 employees of small companies, 75 employees
of medium companies, and 100 employees of large companies.
Health Insurance
Size of Company yes no total
Small 36 14 50
Medium 66 9 75
Large 87 13 100
a.) Conduct a test of independence to determine whether employee
health insurance coverage is independent of the size of the
company. Use = .05. Compute the value of the test
statistic (to 2 decimals).
b.) the p-value is _____________
c.) What is your conclusion _________________
d.) The USA Today article indicated employees of small companies
are more likely to lack health insurance coverage. Calculate the
percentages of employees without health insurance based on company
size (to the nearest whole number).
Small _____ %
Medium ______ %
Large ______ %
Based on the percentages above what do you conclude
___________________
In: Statistics and Probability
With double-digit annual percentage increases in the cost of health insurance, more and more workers are likely to lack health insurance coverage (USA Today, January 23, 2004). The following sample data provide a comparison of workers with and without health insurance coverage for small, medium, and large companies. For the purposes of this study, small companies are companies that have fewer than 100 employees. Medium companies have 100 to 999 employees, and large companies have 1000 or more employees. Sample data are reported for 50 employees of small companies, 75 employees of medium companies, and 100 employees of large companies.
Health Insurance Size of Company Yes No Total Small 32 18 50 Medium 61 14 75 Large 87 13 100
a) Conduct a test of independence to determine whether employee health insurance coverage is independent of the size of the company. Use = .05. Use Table 12.4.
Compute the value of the 2 test statistic (to 2 decimals). The p value is What is your conclusion?
b) The USA Today article indicated employees of small companies are more likely to lack health insurance coverage. Calculate the percentages of employees without health insurance based on company size (to the nearest whole number).
Small % Medium % Large %
Based on the percentages calculated above, what can you conclude?
In: Statistics and Probability
3. Collateralized Debt Obligations (CDOs)
(a) are Asset-Backed Securities (ABS) that are based only on sub-prime mortgage loans in the U.S.
(b) are not usually rated by rating agencies as the underlying default-free government securities act as collaterals.
(c) are structured in tranches according to the underlying risk characteristics.
(d) (a) and (b) of the above
(e) (b) and (c) of the above
4. Which of the following was NOT a contributing factor to the sub-prime debt crisis in the U.S.?
(a) The series of cuts in the U.S. official interest rate from late 2001 to reach the level of 1% by early 2004.
(b) The unregulated growth of the CDO market in the U.S..
(c) The unregulated sub-prime mortgage market in the U.S. that constantly supplied assets to be securitized.
(d) The Quantitative easing that led to a four-fold increase in the U.S. money base between Dec 2008 to Apr 2014.
(e) Increased demand for higher-yielding AAA rated USD dollar denominated financial assets.
5. Home equity in relation to the mortgage loan market refers to
(a) The difference between the current market price of the mortgaged house and the remaining amount in the mortgage loan.
(b) The difference between the purchase price of the mortgaged house and the remaining amount in the mortgage loan.
(c) The difference between the face value of the mortgage loan and the remaining amount in the mortgage loan.
(d) The difference between the purchase price and the current market price of the mortgaged house.
(e) None of the above is true
In: Finance
The questions in this exercise are based on Netflix, Inc. To answer the questions you will need to download Netilix’s Form 10-K for the year ended December 31, 2005 at www.sec.gov/edgar!searchedgar/companysearch.html. Once at this website, input CIK code 1065280 and hit enter. In the gray box on the right-hand side of your computer screen define the scope of your search by inputting 10-K and then pressing enter. Select the 10-K with a filing date of March 16, 2006. You do not need to print this document to answer the questions.
Required:
In: Accounting
The intangible assets section of Salmiento
Corporation’s balance sheet at Decem-
ber 31, 2010, is presented here.
Patents ($60,000 cost less $6,000 amortization) $54,000
Copyrights ($36,000 cost less $25,200 amortization) 10,800
Total $64,800
The patent was acquired in January 2010 and has a useful life of 10
years. The copyright
was acquired in January 2004 and also has a useful life of 10
years. The following cash
transactions may have affected intangible assets during 2011.
Jan. 2 Paid $45,000 legal costs to successfully defend the patent
against in-
fringement by another company.
Jan.–June Developed a new product, incurring $210,000 in research
and development
costs. A patent was granted for the product on July 1, and its
useful life is
equal to its legal life. Legal and other costs for the patent were
$20,000.
Sept. 1 Paid $40,000 to a quarterback to appear in commercials
advertising
the company’s products. The commercials will air in September
and
October.
Oct. 1 Acquired a copyright for $200,000. The copyright has a
useful life and
legal life of 50 years.
Instructions
(a) Prepare journal entries to record the transactions.
(b) Prepare journal entries to record the 2011 amortization expense
for intangible assets.
(c) Prepare the intangible assets section of the balance sheet at
December 31, 2011.
(d) Prepare the note to the financial statements on Salmiento
Corporation’s intangible
assets as of December 31, 2011.
In: Accounting
Discussion 1 (finance 101 )
Apple's Jobs Takes Leave as Weight Loss Said to Continue; Cook Takes Over
Lead Story-Dateline: Satariano, Adam, Peter Burrows, and Joseph Galante,
"Apple's Jobs Takes Leave as Weight Loss Said to Continue; Cook Takes Over," Bloomberg.com,
Summary: Key Points in the Article
Apple Computer CEO Steve Jobs announced he was taking a leave of absence for health reasons. Jobs has been fighting cancer and also recently underwent a liver transplant. Even though the computer giant is in good hands with Chief Operating Officer Tom Cook taking over the stock price fell by US$6.40, or nearly two percent, on the news.
Jobs is widely known as a visionary and a micromanager. Under his leadership Apple has transformed the computing industry. While Jobs' health outlook is unknown many investors are betting on his recovery and return. Those who bought Apple stock when Jobs stepped down in 2004 for health reasons made a nice profit when he returned to the helm.
Question 2 Marks
“When a financial manager makes good or bad financial decisions the impact of these decisions will be reflected in the company's Stock price”.
Do you agree with the decision taken in the above case? What decisions you will take to improve the stock price of Apple Computers in this situation?
In: Finance
With double-digit annual percentage increases in the cost of health insurance, more and more workers are likely to lack health insurance coverage (USA Today, January 23, 2004). The following sample data provide a comparison of workers with and without health insurance coverage for small, medium, and large companies. For the purposes of this study, small companies are companies that have fewer than 100 employees. Medium companies have 100 to 999 employees, and large companies have 1000 or more employees. Sample data are reported for 50 employees of small companies, 75 employees of medium companies, and 100 employees of large companies. Health Insurance Size of Company Yes No Total Small 31 19 50 Medium 68 7 75 Large 90 10 100 Conduct a test of independence to determine whether employee health insurance coverage is independent of the size of the company. Use = .05. Use Table 12.4. Compute the value of the 2 test statistic (to 2 decimals). The p value is What is your conclusion? The USA Today article indicated employees of small companies are more likely to lack health insurance coverage. Calculate the percentages of employees without health insurance based on company size (to the nearest whole number). Small % Medium % Large % Based on the percentages calculated above, what can you conclude?
In: Statistics and Probability