Questions
A programmer that you work with, Peter, is a jerk. He is responsible for an array...

A programmer that you work with, Peter, is a jerk. He is responsible for an array that is a key part of an important program and he maintains a sum of the array value.He won't give you access to this array; however, your boss has told you that you need to get input from the user and then place it into the array.Each evening Peter will scan the code and remove any illegal references to his array.

Using pointers, access Peter's array without him knowing it and place three values that you got from the user ONLY AT POSITIONS 3, 6, and 9. Recalculate the sum value and update it.

STARTER CODE BELOW:

#include <stdio.h>

#include

<stdlib.h>

int main(){

int petersArray[10] = {100,200,300,400,500,600,700,800,900,1000}; i

int petersArraySum = 0;

printf("Peter's Array:\n");

for (int loop = 0; loop < 10; loop++) {

printf("%d ",petersArray[loop]);

petersArraySum += petersArray[loop];

}

printf("\n");

printf("Peter's Array Sum: %d\n\n",petersArraySum);

return 0;

In: Computer Science

Recording Common and Preferred Stock Transactions Gilmore Company has 20,000 authorized shares of common stock, $2...

Recording Common and Preferred Stock Transactions

Gilmore Company has 20,000 authorized shares of common stock, $2 par, and also 20,000 authorized shares of preferred stock, $10 par.

Required

Record journal entries for the following separate transactions. Analyze and record each transaction separately.

a. On January 1, 2020, Gilmore sold 720 shares of common stock and 360 shares of preferred stock for a lump sum of $22,140. The common stock had been selling during the current week at $25 per share, and the preferred at $12 per share. Round amounts to the nearest dollar.

b. On January 1, 2020, Gilmore issued 324 shares of preferred stock for used equipment. The equipment had been appraised at $4,320, and the book value recorded by the seller was $2,160. A reliable determinable fair value on the preferred stock has not been established.

c. Assume that the 36,000 shares of preferred stock are callable for $12 per share at the option of the issuer, Gilmore. After issuing 900 shares of callable preferred stock on January 1, 2020, for $12, Gilmore recalled 180 shares of preferred stock on June 30, 2020, for $12. Record the entries for Gilmore on January 1, 2020, and on June 30, 2020.

d. Assume that each of the 36,000 shares of preferred stock is convertible into 2 shares of common stock at the option of the stockholder. After issuing 900 shares of convertible preferred stock on January 1, 2020, for $12, 180 shares of preferred stock were converted into common stock on June 30, 2020. Record the entries for Gilmore on January 1, 2020, and on June 30, 2020, assuming that the fair value of the preferred stock was $16 per share on June 30, 2020.

In: Accounting

This is a simple list table of a company trying to keep track of parts that...

This is a simple list table of a company trying to keep track of parts that they sell and orders that came in purchasing those parts (in other words, not a database but a flat one table file). You will design a database for this company so that they won’t be relying on a simple 1 table list system to keep track of their data. Looking at the table below, produce the 3NF of the data.

OrderNum

OrderDate

PartNum

Description

NumOrdered

QuotedPrice

21608

10/20/2010

AT94

Iron

11

$21.95

21610

10/20/2010

DR93

Gas Range

1

$495.00

21610

10/20/2010

DW11

Washer

1

$399.99

21613

10/21/2010

KL62

Dryer

4

$329.95

21614

10/21/2010

KT03

Dishwasher

2

$595.00

21617

10/23/2010

BV06

Home Gym

2

$794.95

21617

10/23/2010

CD52

Microwave Oven

4

$150.00

21619

10/23/2010

DR93

Gas Range

1

$495.00

21523

10/23/2010

KV29

Treadmill

2

Create the database in an actual database application (i.e Microsoft Access, MySQL or Oracle, etc.). You must use SQL commands to create the tables in the database (i.e Create Table command). Submit the SQL commands with the completed database as part of the assignment. The tables should be populated with records from the scenario you chose.

In: Computer Science

Recording Treasury Stock Transactions On January 2, 2020, Liberty Corporation was authorized to issue 300,000 shares...

Recording Treasury Stock Transactions

On January 2, 2020, Liberty Corporation was authorized to issue 300,000 shares of $5 par value common stock. Liberty issued 60,000 shares of common stock on January 15, 2020, at $15 per share.

Required

a. Record the entry on June 30, 2020, for purchase of 6,600 common shares for the treasury at $18 per share.

b. Record the entry on September 20, 2020, for sale of 2,400 treasury shares at $21 per share.

c. Record the entry on November 3, 2020, for sale of 1,500 treasury shares at $17 per share.

d. Record the entry on December 15, 2020, for sale of 1,200 treasury shares at $13 per share.

Note: List multiple debits (when applicable) in alphabetical order and list multiple credits (when applicable) in alphabetical order.

e. Determine the number of shares issued and the number of shares outstanding on the following dates (after transactions have been recorded): June 30, 2020; September 20, 2020; November 3, 2020; and December 15, 2020.

In: Accounting

A certain city has a population equivalent to 123456 treatment plant which will serve the community...

A certain city has a population equivalent to 123456 treatment plant which will serve the community until 2040

. a) Estimate the future population of this city in 2020 and 2040 using constant percent method if the rate constant is 0.0327 /year.

b) Determine the water and wastewater treatment plant design capacities for the period of 2020 to 2040. Use maximum (fmax) and minimum (fmin) factors of 2 and 0.5, respectively (Qmax = fmax Qavg and Qmin = fmin Qavg). Assume an average of 200 L/capita-day is the water consumption rate for the city in 2010 and 80% of the consumed water is collected as wastewater. What is the maximum hourly flow?

c) Determine the daily fire protection water requirement in 2020 and 2040?

d) Estimate the size of a tank for the water treatment plant that can store the raw water for 7 day. Take the depth as 3 m. What would be removal percentages of viruses (diameter = 50 nm) and bacteria (diameter = 1 μm) by this tank? Assume the specific gravity of each micro-organism is 1.05 and the water temperature is 20°

e) Estimate the size of equalization tank for the wastewater treatment plant that can hold the raw sewage for 4 hours. Take the depth as 3 m. What would be the size of the smallest particle size with specific gravity 2.0 that can be 100% removed by this tank? Assume that the water temperature is 20°C

In: Civil Engineering

4. Consider a reheat–regenerative vapor power cycle with two feedwater heaters, a closed feedwater heater and...

4. Consider a reheat–regenerative vapor power cycle with two feedwater heaters, a closed feedwater heater and an open feedwater heater. Steam enters the first turbine at 12.0 MPa, 520C and expands to 0.6 MPa. The steam is reheated to 440C before entering the second turbine, where it expands to the condenser pressure of 0.006 MPa. Steam is extracted from the first turbine at 2 MPa and fed to the closed feedwater heater. Feedwater leaves the closed heater at 200C and 8.0 MPa, and condensate exits as saturated liquid at 2 MPa. The condensate is trapped into the open feedwater heater. Steam extracted from the second turbine at 0.4 MPa is also fed into the open feedwater heater, which operates at 0.3 MPa. The stream exiting the open feedwater heater is saturated liquid at 0.3 MPa. The net power output of the cycle is 100 MW. There is no stray heat transfer from any component to its surroundings. If the working fluid experiences no irreversibilities as it passes through the turbines, pumps, steam generator, reheater, and condenser, determine (a) the thermal efficiency, (b) the mass flow rate of the steam entering the first turbine, in kg/h. (Turbine and pump isentropic efficiencies 100% & Create a table of all values)

In: Mechanical Engineering

2. On March 1, 2010, Jacoby Ltd., a Canadian company, entered into a contract to buy...

2. On March 1, 2010, Jacoby Ltd., a Canadian company, entered into a contract to buy supplies from Hornblower Co., a foreign company, for FC400,000. The contract requires Hornblower to deliver the supplies to Jacoby on July 15, 2010. Payment is required to be made in full upon delivery. On March 1, 2010, Jacoby entered into a forward contract with the bank to purchase FC400,000 on July 15, 2010. As promised, Hornblower delivered the goods on July 15th and payment was made in full. Jacoby has a June 30th year end date.

Spot Rate Forward Rate

March 1, 2010 FC1 = 4.80 CAD FC1 = 4.92 CAD

June 30, 2010 FC1 = 4.83 CAD FC1 = 4.88 CAD

July 15, 2010 FC1 = 4.85 CAD FC1 = 4.85 CAD

Prepare Jacoby Ltd.'s journal entries

a. assuming the forward contract is a cash flow hedge

b. assuming the forward contract is a fair value hedge

In: Accounting

The economy of Tuland produces only two products books and watches. The following information is available...

The economy of Tuland produces only two products books and watches. The following information is available for production and prices of​ Tuland's products for the years 2009 and 2010.

2009

2010

Quantity of booksbooks

200

240

Quantity of watcheswatches

60

75

Price of booksbooks

​$10.00

​$11.50

Price of watcheswatches

​$20.00

​$22.00

Using the above​ information, calculate the following values. (Enter your responses rounded to two decimal​ places.)

1. GDP for 2009 in​ 2009's prices

2. GDP for 2009 in​ 2010's prices

3. GDP for 2010 in​ 2009's prices

4. GDP for 2010 in​ 2010's prices

5. Using 2009 as the base​ year, compute the percentage change in the price​ level, i.e. the inflation rate. ​hint: you need to compute the GDP deflator first.

6. Using 2010 as the base​ year, compute the percentage change in the price​ level, i.e. the inflation rate. hint: you need to compute the GDP deflator first.

7. The geometric average of the two inflation rates

In: Economics

Q1: On January 1, 2019, Yarmouth Inc. acquired 90% of Covington Co. by paying $477,000 cash....

Q1: On January 1, 2019, Yarmouth Inc. acquired 90% of Covington Co. by paying $477,000 cash. There is no active trading market for Covington stock. Covington Co. reported a Common Stock account balance of $140,000 and Retained Earnings of $280,000 at that date. The fair value of Covington Co. was appraised at $530,000.    The total annual amortization was $11,000 as a result of this transaction. The subsidiary earned $198,000 in 2019 and $226,000 in 2020 with dividend payments of $42,000 each year. Without regard for this investment, Yarmouth had income of $308,000 in 2019 and $364,000 in 2020 (these numbers do not have investment income).

Prepare a proper presentation of consolidated net income and its allocation (Consolidated net income before allocation, NCI share of NI from Covington, and Consolidated Net income to Yarmouth) for 2020.

What is the noncontrolling interest balance as of December 31, 2020?

What is the investment balance as of December 31, 2020?

In: Accounting

A 24.0-V battery is connected in series with a resistor and an inductor, with R =...

A 24.0-V battery is connected in series with a resistor and an inductor, with R = 4.60 Ω and L = 7.00 H, respectively.

(a) Find the energy stored in the inductor when the current reaches its maximum value. ________J

(b) Find the energy stored in the inductor at an instant that is a time interval of one time constant after the switch is closed. ________J

In: Physics