Questions
Use a while(true) loop to ask the user the following 2 values “Enter a rate r...

Use a while(true) loop to ask the user the following 2 values “Enter a rate r =” “Enter a nonnegative integer (enter negative integer to quit):”
If the user enters a negative int for n, the while loop is broken via the brake statement. Otherwise,
in the remaining part of the while loop, use a for loop to compute the partial sum for the geometric
series, namely 1 + r + rˆ2 + rˆ3 + . . . +rˆn.
Use the iomanip library in order to print the sum with 50 decimal digits of precision.

Sample output:

Enter a rate r = 4
Enter a non-negative integer (enter negative integer to quit): 9
1 + 4^1 + 4^2 + 4^3 + 4^4 + 4^5 + 4^6 + 4^7 + 4^8 + 4^9 = 349525
Enter a rate r = 0
Enter a non-negative integer (enter negative integer to quit): 3
1 + 0^1 + 0^2 + 0^3 = 1
Enter a rate r = -4
Enter a non-negative integer (enter negative integer to quit): -2

C++

Will like if correct,thank you.

In: Computer Science

Purchase-Related Transactions The debits and credits from four related transactions are presented in the following T...

Purchase-Related Transactions

The debits and credits from four related transactions are presented in the following T accounts.

Cash Accounts Payable
  (2) 300   (3) 3,920   (1) 20,580  
  (4) 16,660   (4) 16,660
Inventory
(1) 20,580   (3) 3,920  
(2) 300   

Describe each transaction.

1.   
2.   
3.   
4.   

In: Accounting

Suppose that you manage a pension fund that has liabilities of $2 million, $4 million, $8...

Suppose that you manage a pension fund that has liabilities of $2 million, $4 million, $8 million, and $10 million coming due in 1, 2, 3, and 4 years, respectively. You want to invest in bonds whose cash flows will exactly match the liabilities. The following bonds are available: 1-year, 2-year, 3-year, and 4-year annual-coupon bonds selling at par; the yields (YTMs) are 1%, 2%, 3%, and 4%, respectively. What's the necessary dollar amount of investment in 1-year bond today?

In: Accounting

The β-oxidation of odd-numbered FAs presents a small problem in that once most of the oxidation has occurred

The β-oxidation of odd-numbered FAs presents a small problem in that once most of the oxidation has occurred, the last component is propionyl-CoA rather than acetyl CoA. This has one more carbon and as such cannot be utilized any further. Outline the events that control the metabolism of this unit in their proper order:

1) Methylmalonyl-CoA epimerase converts S-methylmalonyl-CoA to R-methylmalonyl-CoA.

2) Methylmalonyl-CoA mutase demethylates R-methylmalonyl-CoA to succinyl-CoA.

3) Propionyl-CoA carboxylase catalyzes the addition of CO2 to propionyl-CoA.

4) The odd-carbon FA is metabolized to propionyl-CoA.

A) 4-3-1-2

B)3-1-4-2

C)4-1-3-2

D)2-1-3-4

In: Biology

9. Rank the following in order from best (highest rate of return) to worst (lowest rate...

9.

Rank the following in order from best (highest rate of return) to worst (lowest rate of return).

Investment One: 12% p.a. compounding continuously

Investment Two: 11% p.a. compounding continuously

Investment Three: 11.50% p.a. compounding semi-annually

Investment Four: 13% p.a. compounding annually

Investment Five: 12% p.a. compounding monthly

Select one:

a. The rank from highest to lowest is: 4, 1, 3, 5, 2

b. The rank from highest to lowest is: 5, 1, 4, 3, 2

c. The rank from highest to lowest is: 1, 2, 5, 3, 4

d. The rank from highest to lowest is: 4, 1, 5, 3, 2.

e. The rank from highest to lowest is: 2, 3, 5, 1, 4

In: Finance

Rank the following in order from best (highest rate of return) to worst (lowest rate of...

Rank the following in order from best (highest rate of return) to worst (lowest rate of return).

Investment One: 12% p.a. compounding continuously

Investment Two: 11% p.a. compounding continuously

Investment Three: 11.50% p.a. compounding semi-annually

Investment Four: 13% p.a. compounding annually

Investment Five: 12% p.a. compounding monthly

Select one:

a. The rank from highest to lowest is: 4, 1, 3, 5, 2

b. The rank from highest to lowest is: 2, 3, 5, 1, 4

c. The rank from highest to lowest is: 4, 1, 5, 3, 2.

d. The rank from highest to lowest is: 5, 1, 4, 3, 2

e. The rank from highest to lowest is: 1, 2, 5, 3, 4

In: Finance

Jace collected the following data on the quarterly room occupancy (in hundreds) for a resort hotel...

  1. Jace collected the following data on the quarterly room occupancy (in hundreds) for a resort hotel in Iowa.

Year

quarter

Occupancy

2013

1

16

2

21

3

9

4

18

2014

1

15

2

20

3

10

4

18

2015

1

17

2

24

3

13

4

22

2016

1

17

2

25

3

11

4

21

2017

1

18

2

26

3

14

4

25

  1. Plot the data and describe any trend and seasonal effects you observe in the data.

  1. Compute and interpret the seasonal indices.
  1. Jace’s manager, Joseph, wants Jace to forecast the occupancy for four quarters of 2018. Can you help him (Forecast he room occupancy for four quarters of 2018)?

In: Statistics and Probability

J.C.​ Howard's medical testing company in Kansas wishes to assign a set of jobs to a...

J.C.​ Howard's medical testing company in Kansas wishes to assign a set of jobs to a set of machines. The following table provides the production data of each machine when performing the specific​ job:

                                                            Machine

Job

A

B

C

D

1

9

10

7

6

2

11

5

9

6

3

9

11

5

12

4

12

8

13

9

​a) The optimal assignment of jobs to machine that will maximize total production​ is:

MACHINE A          =   JOB 1, 2, 3, 4 ?

MACHINE B         =    JOB 1, 2, 3, 4 ?

MACHINE C          =   JOB 1, 2, 3, 4 ?

MACHINE D          =   JOB 1, 2, 3, 4 ?

​b) The total production of the assignment​ = __ units ​(enter your response as a whole​ number).

                         

In: Operations Management

QUESTION 1 If price is cut and demand is inelastic, then 1. total revenue will rise....

QUESTION 1

If price is cut and demand is inelastic, then

1. total revenue will rise.

2. quantity demanded will fall

3. total revenue will fall.

4. total revenue will not change.  

QUESTION 2

The presence of substitute goods will tend to make demand more

1. inelastic.

2. vertical.

3. elastic.

4. unit elastic.

  

QUESTION 3

Brand name products tend to have demand curves that are relatively more inelastic because

1. brand name products tend to have more substitutes.

2. brand names are not valued.

3. brand name products tend to have fewer substitutes.

4. consumers are very sensitive to the prices of brand names.

QUESTION 4

A manager can determine if her product is viewed as a normal good or an inferior good by considering

1. income elasticity.

2. cross elasticity.

3. price elasticity.

4. advertising elasticity.

QUESTION 5

A luxury good has

1. a very high income elasticity.

2. a cross elasticity of one.

3. a negative price elasticity.

4. a negative income elasticity.

QUESTION 6

Knowing demand is equivalent to knowing the

1. average investor.

2. customer.

3. employee.

4. economic profit.

In: Economics

ara+ and lac+ are genes required for metabolizing the sugars arabinose and lactose, respectively, and ala+...

ara+ and lac+ are genes required for metabolizing the sugars arabinose and lactose, respectively, and ala+ and leu+ are genes required for synthesizing the amino acids alanine and leucine. You are given the following strains:

Strain 1: leu- ala+ ara+ lac+
Strain 2: leu+ ala- ara+ lac-
Strain 3: leu+ ala+ ara+ lac-
Strain 4: leu+ ala- ara- lac-

Which of these strains will grow on minimal media with glucose?

A.

2, 4

B.

2, 3, 4

C.

3

D.

1, 3

E.

1

ra+ and lac+ are genes required for metabolizing the sugars arabinose and lactose, respectively, and ala+ and leu+ are genes required for synthesizing the amino acids alanine and leucine. You are given the following strains:

Strain 1: leu- ala+ ara+ lac+
Strain 2: leu+ ala- ara+ lac-
Strain 3: leu+ ala+ ara+ lac-
Strain 4: leu+ ala- ara- lac-

Which of these strains will grow on minimal media with arabinose?

A.

1

B.

2, 3, 4

C.

2, 4

D.

3

E.

1, 3

ara+ and lac+ are genes required for metabolizing the sugars arabinose and lactose, respectively, and ala+ and leu+ are genes required for synthesizing the amino acids alanine and leucine. You are given the following strains:

Strain 1: leu- ala+ ara+ lac+
Strain 2: leu+ ala- ara+ lac-
Strain 3: leu+ ala+ ara+ lac-
Strain 4: leu+ ala- ara- lac-

Which of these strains will grow on minimal media with lactose + leucine?

A.

3

B.

1, 3

C.

1

D.

2, 3, 4

E.

2, 4

In: Biology