Questions
IN C LANGUAGE ONLY PLEASE! First Program: create branchloop.c file Content of the program Enter your...

IN C LANGUAGE ONLY PLEASE!

First Program:

  1. create branchloop.c file
  2. Content of the program
    1. Enter your name while running your program as you did with hello2.c (using argc and argv) name has to be 2 words max (e.g. Jose Lopez, Maria Rodrigues) . Make sure to check properly.
    2. Print your name 10 times using a loop. 10 is a fixed number.
    3. Count how many characters are in your first name and last name.
    4. If the number of characters of your first name is greater than last name print my first name is bigger than my last name.
    5. If the number of characters of your first name is less than last name then print my last name is bigger than my first name.
    6. If the number of characters is equal then print my first and last name have the same number of characters.
  3. Compile the program using: gcc -o branchloop branchloop.c
  4. Run the program using: ./branchloop firstname lastname

Second Program:

  1. Copy branchloop.c to branchloop2.c
  2. Restructure program to add the following functionality
  3. Enter a number at command line representing an index to your name along with your name. e.g. ./branchloop2 carlos alonso 5
  4. The index number must be within the size of your full name - if is not an error should be provided (number is larger than your full name).
  5. If the number fits the length of your name, use the number to find the letter correspond to it by indexing.
  6. Finally print your name in all lower case, print index number, and print character indexed in upper case.

Third program:

  1. Copy branchloop2.c to branchloop3.c
  2. Use the number entered in command line to:
    1. Print your name that many times
    2. Use a Do-While loop
  3. Count the number of letters in your name.
  4. Print the number of characters in your name followed by your name backwards.

In: Computer Science

Compute trend percentages for each item for 2013 through 2016. Use 2012 as the base year...

Compute trend percentages for each item for 2013 through 2016. Use 2012 as the base year and round to the nearest percent.

2. Compute the rate of return on net sales for 2014 through 2016. Explain what this means.

3. Compute asset turnover for 2014 through 2016. Explain what this means.

4. Use DuPont Analysis to compute rate of return on average total assets​ (ROA) for 2014 through 2016.

5. How does AccurateShipping's return on net sales for 2016 compare with previous​ years? How does it compare with that of the​ industry? In the shipping​industry, rates above​ 9% are considered​ good, and rates above​ 11% are outstanding.

6. Evaluate Accurate ​Shipping, Inc.'s ROA for 2016​, compared with previous years and against an​ 18% benchmark for the industry.

Information to fill in

(In thousands) 2016 2015 2014 2013 2012

Net Sales.......................................$ 1,000 $ 920 $492 $308 $306

Net income................................. 41 34 11 39 24

Total assets................................. 300 266 262 230 208

Requirement 1. Compute trend percentages for each item for 2013 through 2016. Use 2012

as the base year and round to the nearest percent.

Accurate Shipping, Inc. - Trend Percentages

2016

2015

2014

2013

2012

Net sales. . . . . . . . . . . . . . .

%

%

%

%

100

%

Net income. . . . . . . . . . . .

%

%

%

%

100

%

Total assets. . . . . . . . . . . . .

%

%

%

%

100

%

Requirement 2. Compute the rate of return on net sales for

20142014

through

20162016.

Explain what this means.

Begin by selecting the rate of return on net sales​ (return on​ sales) formula and then enter the amounts to calculate the percentages. ​(Enter amounts in thousands as provided to you in the problem statement. Enter​ "0" for zero amounts and enter the return on sales amounts as percentages rounded to​ one-tenth percent,​ X.X%.)

(

-

) /

=

Return on sales

2014

(

-

) /

=

%

2015

(

-

) /

=

%

2016

(

-

) /

=

%

Explain what this means.

Return on sales measures

the ability to collect cash from credit customers.

the amount of net income for each dollar of net sales.

the amount of net sales per dollar invested in assets.

the percentage of a stock's market value returned as dividends to stockholders.

Requirement 3. Compute asset turnover for

20142014

through

20162016.

Explain what this means.

Begin by selecting the asset turnover formula and then enter the amounts to calculate the ratios. ​(Enter amounts in thousands as provided to you in the problem statement. Do not round until your final​ answer, then enter the asset turnover amounts rounded to three decimal​ places, .XXX.)

/

=

Asset turnover

2014

/

=

2015

/

=

2016

/

=

Explain what this means.

Asset turnover means

the ability to collect cash from credit customers.

the amount of net income for each dollar of net sales.

the amount of net sales per dollar invested in assets.

the percentage of a stock's market value returned as dividends to stockholders.

Requirement 4. Use DuPont Analysis to compute rate of return on average total assets​ (ROA) for

20142014

through

20162016.

Begin by selecting the ROA formula using the DuPont analysis and then enter the amounts to calculate the ratio. ​(Enter percentages rounded to​ one-tenth percent,​ X.X%. Enter other component ratios as decimals to three​ places, .XXX.)

x

=

ROA

2014

%

x

=

%

2015

%

x

=

%

2016

%

x

=

%

Requirement 5. How does Accurate Shipping's return on net sales for 2016 compare with previous​ years? How does it compare with that of the​ industry? In the shipping​ industry, rates above​ 9% are considered​ good, and rates above​ 11% are outstanding.

Accurate ​Shipping's rate of return on net sales for 2016 compares ▼( unfavorably, favorably) with the industry rate of​ 9%. It's 2016 rate of return on net sales has ▼ (improved,deteriorated) from 2015 and (improved,deteriorated) from 2014.

Requirement 6. Evaluate Accurate ​Shipping, Inc.'s ROA for 2016​, compared with previous years and against an​ 18% benchmark for the industry. Accurate Shipping's return on assets​ (ROA) for 2016 compares ▼ (unfavorably, favorably) with the​ 18% benchmark for the industry.​ It's 2016 ROA has ▼ (deteriorated, improved) from 2015 and ▼ (improved,deteriorated) from 2014.

In: Accounting

current vs. voltage curve for the 1n4148 diode. The DC sweep should be from 0.01 to...

current vs. voltage curve for the 1n4148 diode. The DC sweep should be from 0.01 to 1.5 V and in steps of 0.01 V. The temperatures that should be simulated are -80, 0, 27, and 100
1. Circuit Diagram
2. Relevant Output Graphs
3. Analysis and explanation of the results

In: Electrical Engineering

When an ion-selective electrode for X was immersed in 0.0760 M XCl, the measured potential was...

When an ion-selective electrode for X was immersed in 0.0760 M XCl, the measured potential was 0.0450 V. What is the concentration of X when the potential is 0.0600 V? Assume that the electrode follows the Nernst equation, the temperature is at 25°C, and that the activity coefficient of X is 1.

[X+] = ??M

In: Chemistry

A gas which occupies a volume of 0.2 m³ at a pressure of 1 bar is...

A gas which occupies a volume of 0.2 m³ at a pressure of 1 bar is expanded to a final pressure of 7.0 bar. The pressure of the gas varies according to the relation P = 1200 V + b. where P is in kPa, V is in m³ and b is a constant. Calculate the work done by the gas.

In: Other

The table lists the monthly total returns on Dish Network Corp. common stock and the market...

The table lists the monthly total returns on Dish Network Corp. common stock and the market rates of return for a 24-month period. Observation Month Dish rate of return (%) Market rate of return (%) 1 Aug 2014 4.75 4.18 2 Sep 2014 -0.35 -2.11 3 Oct 2014 -1.44 2.74 4 Nov 2014 24.76 2.43 5 Dec 2014 -8.21 -0.01 6 Jan 2015 -3.48 -2.77 7 Feb 2015 6.67 5.78 8 Mar 2015 -6.64 -1.01 9 Apr 2015 -3.43 0.42 10 May 2015 4.63 1.39 11 Jun 2015 -4.35 -1.70 12 Jul 2015 -4.58 1.65 13 Aug 2015 -8.26 -6.00 14 Sep 2015 -1.57 -2.95 15 Oct 2015 7.94 7.86 16 Nov 2015 -0.41 0.56 17 Dec 2015 -8.82 -2.04 18 Jan 2016 -15.58 -5.67 19 Feb 2016 -2.36 -0.02 20 Mar 2016 -1.85 7.03 21 Apr 2016 6.55 0.63 22 May 2016 1.24 1.79 23 Jun 2016 5.01 0.23 24 Jul 2016 1.95 3.97 Estimate beta to two decimal places for Dish Network based on this data. If beta is negative, then include a minus sign. Hint: see Examples 16 and 17 in the lecture. Group of answer choices

In: Finance

Exercise 13-4 Flounder Company began operations on January 2, 2016. It employs 10 individuals who work...

Exercise 13-4

Flounder Company began operations on January 2, 2016. It employs 10 individuals who work 8-hour days and are paid hourly. Each employee earns 12 paid vacation days and 7 paid sick days annually. Vacation days may be taken after January 15 of the year following the year in which they are earned. Sick days may be taken as soon as they are earned; unused sick days accumulate. Additional information is as follows.

Actual Hourly
Wage Rate

Vacation Days Used
by Each Employee

Sick Days Used
by Each Employee

2016

2017

2016

2017

2016

2017

$12

$13

0

10

5

6


Flounder Company has chosen not to accrue paid sick leave until used, and has chosen to accrue vacation time at expected future rates of pay without discounting. The company used the following projected rates to accrue vacation time.

Year in Which Vacation
Time Was Earned

Projected Future Pay Rates
Used to Accrue Vacation Pay

2016

$12.47

2017

  13.46

1- Prepare journal entries to record transactions related to compensated absences during 2016 and 2017.

2 - Compute the amounts of any liability for compensated absences that should be reported on the balance sheet at December 31, 2016 and 2017.

In: Accounting

The following information is extracted from Shelton Corporation’s accounting records at the beginning of 2016: Accounts...

The following information is extracted from Shelton Corporation’s accounting records at the beginning of 2016:

Accounts Receivable $64,000
Allowance for Doubtful Accounts 1,100 (credit)

During 2016, sales on credit amounted to $568,000, $559,000 was collected on outstanding receivables and $2,500 of receivables were written off as uncollectible. On December 31, 2016, Shelton estimates its bad debts to be 4% of the outstanding gross accounts receivable balance.

Required:
1. Prepare the journal entry necessary to record Shelton’s estimate of bad debt expense for 2016.
2. Prepare the Accounts Receivable section of Shelton’s December 31, 2016, balance sheet.
3. Compute Shelton’s receivables turnover. (Round to one decimal place.)
4.

If Sheldon uses IFRS, what might be the heading for the accounts receivable section in Requirement 2?

Prepare the journal entry necessary to record Shelton’s estimate of bad debt expense on December 31.

PAGE 9

GENERAL JOURNAL

DATE ACCOUNT TITLE POST. REF. DEBIT CREDIT

1

2

Balance Sheet

Prepare the Accounts Receivable section of Shelton’s December 31, 2016, balance sheet.

Shelton Corporation

Partial Balance Sheet

December 31, 2016

1

Accounts Receivable

2

Allowance for Doubtful Accounts

3

Net Accounts Receivable

Analysis

Compute Shelton’s receivables turnover. (Round to one decimal place.)

Shelton’s receivable turnover is ______.

In: Accounting

Simon Company’s year-end balance sheets follow. At December 31 2017 2016 2015 Assets Cash $ 34,308...

Simon Company’s year-end balance sheets follow.

At December 31 2017 2016 2015
Assets
Cash $ 34,308 $ 38,923 $ 40,958
Accounts receivable, net 96,509 66,739 54,060
Merchandise inventory 126,245 92,737 58,155
Prepaid expenses 11,048 10,114 4,735
Plant assets, net

301,972

282,937 259,992
Total assets $ 570,082 $ 491,450 $ 417,900
Liabilities and Equity
Accounts payable $ 139,111 $ 83,886 $ 56,266
Long-term notes payable secured by
mortgages on plant assets
108,247 115,294 91,432
Common stock, $10 par value 162,500 162,500 162,500
Retained earnings 160,224 129,770 107,702
Total liabilities and equity $ 570,082 $ 491,450 $ 417,900


1. Compute the current ratio for the year ended 2017, 2016, and 2015.
2. Compute the acid-test ratio for the year ended 2017, 2016, and 2015.

Complete this question by entering your answers in the tabs below.

Compute the current ratio for the years ended December 31, 2017, 2016, and 2015.

Current Ratio
Choose Numerator: / Choose Denominator: = Current Ratio
/ = Current ratio
2017: / = to 1
2016: / = to 1
2015: / = to 1

Compute the acid-test ratio for the years ended December 31, 2017, 2016, and 2015.

Acid-Test Ratio
Choose Numerator: / Choose Denominator: = Acid-Test Ratio
+ + / = Acid-test ratio
2017: + + / = to 1
2016: + + / = to 1
2015: + + / = to 1

In: Accounting

On January 1, 2016, Flash and Dash Company adopted a healthcare plan for its retired employees....

On January 1, 2016, Flash and Dash Company adopted a healthcare plan for its retired employees. To determine eligibility for benefits, the company retroactively gives credit to the date of hire for each employee. The following information is available about the plan:

Service cost $30,650
Accumulated postretirement benefit obligation (1/1/16) 159,600
Expected return on plan assets 0
Amortization of Prior service cost 11,400
Payments to retired employees during 2016 4,800
Interest rate 8%
Average remaining service period of active plan participants (1/1/16) 14 years

Required:

1. Compute the OPRB expense for 2016 if the company uses the average remaining service life to amortize the prior service cost.
2.

Prepare all the required journal entries for 2016 if the plan is not funded.

Prepare the entries to record:

1. the prior service cost on January 1.
2. the postretirement benefit expense for 2016 on December 31.
3. the payments to retired employees during 2016 on December 31.
4. the amortization of prior service cost on December 31.

PAGE 1

GENERAL JOURNAL

DATE ACCOUNT TITLE POST. REF. DEBIT CREDIT

1

2

3

4

5

6

7

8

Analysis

Compute the OPRB expense for 2016 if the company uses the average remaining service life to amortize the prior service cost.

OPRB expense: _______________

In: Accounting