bash-3.2$ git init
Initialized empty Git repository in
/Users/terry/Documents/Udel/teaching/275/275-Spring2018/gitPlay/.git/
bash-3.2$ git add *.txt
bash-3.2$ git commit -m "all"
[master (root-commit) f7a22b3] all
4 files changed, 27 insertions(+)
create mode 100644 dog.txt
create mode 100644 gitquiz.txt
create mode 100644 spam.txt
create mode 100644 spam2.txt
$ <edit spam.txt>
bash-3.2$ git add spam.txt
bash-3.2$ git commit -m "mod"
[master 8885fb1] mod
1 file changed, 2 insertions(+)
bash-3.2$ git branch feature
bash-3.2$ git checkout feature
Switched to branch 'feature'
bash-3.2$ cat >> spam2.txt
a new feature
bash-3.2$ git status
On branch feature
Changes not staged for commit:
(use "git add <file>..." to update what will be
committed)
(use "git checkout -- <file>..." to discard changes in
working directory)
modified: spam2.txt
no changes added to commit (use "git add" and/or "git commit
-a")
bash-3.2$ git commit -m "new feature to spam2"
On branch feature
Changes not staged for commit:
modified: spam2.txt
no changes added to commit
bash-3.2$ git add spam2.txt
bash-3.2$ git commit -m "new feature to spam2"
[feature 3fbd9c3] new feature to spam2
1 file changed, 1 insertion(+)
bash-3.2$ git log --graph --all --simplify-by-decoration
* commit 3fbd9c356a36619a540920f8402a03f50d64f106 (HEAD ->
feature)
| Author: Terry Harvey <[email protected]>
| Date: Mon Mar 19 10:25:30 2018 -0400
|
| new feature to spam2
|
* commit 8885fb16b61c8aeaf806bbbf3e8995f13f8f47e9 (master)
| Author: Terry Harvey <[email protected]>
| Date: Mon Mar 19 09:55:01 2018 -0400
|
| mod
|
* commit f7a22b3a9ebbd4dbc98ac9ac355b51022c6f2216
Author: Terry Harvey <[email protected]>
Date: Mon Mar 19 09:54:02 2018 -0400
all
bash-3.2$ cat spam2.txt
hooray for spam
second line
third line.
a feature
a new feature
bash-3.2$ git checkout master
Switched to branch 'master'
bash-3.2$ cat spam2.txt
hooray for spam
second line
third line.
a feature
bash-3.2$ ls
dog.txt gitquiz.txt
spam.txt spam2.txt
bash-3.2$ git rm spam2.txt
rm 'spam2.txt'
bash-3.2$ git commit -m "removed spam2.txt"
[master 4ee3d92] removed spam2.txt
1 file changed, 4 deletions(-)
delete mode 100644 spam2.txt
bash-3.2$ git checkout feature
Switched to branch 'feature'
bash-3.2$ ls
1. WHAT PRINTS HERE? Be sure you understand!
bash-3.2$ git checkout master
Switched to branch 'master'
bash-3.2$ ls
2. WHAT PRINTS HERE? Be sure you understand!
bash-3.2$ git tree //this is my alias for the log command above
- put in your .gitconfig!
* commit 4ee3d92d15daa195bcdc89ccdc70b35d02981811 (HEAD ->
master)
| Author: Terry Harvey <[email protected]>
| Date: Mon Mar 19 10:29:17 2018 -0400
|
| removed spam2.txt
|
| * commit 3fbd9c356a36619a540920f8402a03f50d64f106 (feature)
|/ Author: Terry Harvey <[email protected]>
| Date: Mon Mar 19 10:25:30 2018 -0400
|
| new feature to spam2
|
* commit f7a22b3a9ebbd4dbc98ac9ac355b51022c6f2216
Author: Terry Harvey <[email protected]>
Date: Mon Mar 19 09:54:02 2018 -0400
all
bash-3.2$ git checkout feature
Switched to branch 'feature'
bash-3.2$ git branch
* feature
master
bash-3.2$
3. What is HEAD?
4. What is master?
5. In this example, what is feature?
6. How would you take changes from a branch and apply them to master?
7. How would you remove a branch you no longer need?
In: Computer Science
bash-3.2$ git init
Initialized empty Git repository in
/Users/terry/Documents/Udel/teaching/275/275-Spring2018/gitPlay/.git/
bash-3.2$ git add *.txt
bash-3.2$ git commit -m "all"
[master (root-commit) f7a22b3] all
4 files changed, 27 insertions(+)
create mode 100644 dog.txt
create mode 100644 gitquiz.txt
create mode 100644 spam.txt
create mode 100644 spam2.txt
$ <edit spam.txt>
bash-3.2$ git add spam.txt
bash-3.2$ git commit -m "mod"
[master 8885fb1] mod
1 file changed, 2 insertions(+)
bash-3.2$ git branch feature
bash-3.2$ git checkout feature
Switched to branch 'feature'
bash-3.2$ cat >> spam2.txt
a new feature
bash-3.2$ git status
On branch feature
Changes not staged for commit:
(use "git add <file>..." to update what will be
committed)
(use "git checkout -- <file>..." to discard changes in
working directory)
modified: spam2.txt
no changes added to commit (use "git add" and/or "git commit
-a")
bash-3.2$ git commit -m "new feature to spam2"
On branch feature
Changes not staged for commit:
modified: spam2.txt
no changes added to commit
bash-3.2$ git add spam2.txt
bash-3.2$ git commit -m "new feature to spam2"
[feature 3fbd9c3] new feature to spam2
1 file changed, 1 insertion(+)
bash-3.2$ git log --graph --all --simplify-by-decoration
* commit 3fbd9c356a36619a540920f8402a03f50d64f106 (HEAD ->
feature)
| Author: Terry Harvey <[email protected]>
| Date: Mon Mar 19 10:25:30 2018 -0400
|
| new feature to spam2
|
* commit 8885fb16b61c8aeaf806bbbf3e8995f13f8f47e9 (master)
| Author: Terry Harvey <[email protected]>
| Date: Mon Mar 19 09:55:01 2018 -0400
|
| mod
|
* commit f7a22b3a9ebbd4dbc98ac9ac355b51022c6f2216
Author: Terry Harvey <[email protected]>
Date: Mon Mar 19 09:54:02 2018 -0400
all
bash-3.2$ cat spam2.txt
hooray for spam
second line
third line.
a feature
a new feature
bash-3.2$ git checkout master
Switched to branch 'master'
bash-3.2$ cat spam2.txt
hooray for spam
second line
third line.
a feature
bash-3.2$ ls
dog.txt gitquiz.txt
spam.txt spam2.txt
bash-3.2$ git rm spam2.txt
rm 'spam2.txt'
bash-3.2$ git commit -m "removed spam2.txt"
[master 4ee3d92] removed spam2.txt
1 file changed, 4 deletions(-)
delete mode 100644 spam2.txt
bash-3.2$ git checkout feature
Switched to branch 'feature'
bash-3.2$ ls
1. WHAT PRINTS HERE? Be sure you understand!
bash-3.2$ git checkout master
Switched to branch 'master'
bash-3.2$ ls
2. WHAT PRINTS HERE? Be sure you understand!
bash-3.2$ git tree //this is my alias for the log command above
- put in your .gitconfig!
* commit 4ee3d92d15daa195bcdc89ccdc70b35d02981811 (HEAD ->
master)
| Author: Terry Harvey <[email protected]>
| Date: Mon Mar 19 10:29:17 2018 -0400
|
| removed spam2.txt
|
| * commit 3fbd9c356a36619a540920f8402a03f50d64f106 (feature)
|/ Author: Terry Harvey <[email protected]>
| Date: Mon Mar 19 10:25:30 2018 -0400
|
| new feature to spam2
|
* commit f7a22b3a9ebbd4dbc98ac9ac355b51022c6f2216
Author: Terry Harvey <[email protected]>
Date: Mon Mar 19 09:54:02 2018 -0400
all
bash-3.2$ git checkout feature
Switched to branch 'feature'
bash-3.2$ git branch
* feature
master
bash-3.2$
3. What is HEAD?
4. What is master?
5. In this example, what is feature?
6. How would you take changes from a branch and apply them to master?
7. How would you remove a branch you no longer need?
In: Computer Science
THREES ELECTRONICS COMPANY Threes Electronics is a mid-sized electronics manufacturer located in Santa Monica, California. The company president is Jack Tripper, who inherited the company. The company originally repaired radios and other household appliances when it was founded over 70 years ago. Over the years, the company has expanded, and it is now a reputable manufacturer of various specialty electronic items. One of the major revenue-producing items manufactured by Threes Electronic is a Personal Digital Assistant (PDA). Threes Electronics currently has one PDA model on the market and sales have been excellent. The PDA is a unique item in that it comes in a variety of tropical colors and is preprogrammed to play Jimmy Buffet music. However, as with any electronic item, technology changes rapidly, and the current PDA has limited features in comparison with newer models. Threes Electronic spent $750,000 to develop a prototype for a new PDA that has all the features of the existing one, but adds new features such as cell phone capability. The company has spent a further $200,000 for a marketing study to determine the expected sales figures for the new PDA. Threes Electronic can manufacture the new PDA for $86 each in variable costs. Fixed costs for the operation are estimated to run $3 million per year. The estimated sales volume is 70,000, 80,000, 100,000, 85,000, and 75,000 per each year for the next five years, respectively. The unit price of the new PDA will be $250. The necessary equipment can be purchased for $15 million and will be depreciated on a 7-year MACRS schedule. It is believed the value of the equipment in five years will be $3 million. Net working capital for the PDAs will be 20 percent of sales and will occur with the timing of the cash flows for the year (i.e., there is a no initial outlay for NWC). Changes in NWC will thus first occur in Year 1 with the first year’s sales. Threes Electronic has a 35 percent (federal & state) corporate tax rate. Threes Electronic plans to finance by a combination of 1/3 debt and 2/3 internal equity (i.e., retained earnings). The beta of the firm’s stock is 1.75. The firm uses a risk-free rate of 4% and the market risk premium of 7%. Threes has 15,000 9 percent semi-annual coupon bonds outstanding, $1,000 par value per bond, 15 years to maturity, selling for 108 percent of par. Threes Electronic can issue bonds for $5 ~ $6 million in the similar terms. Construct a project cash flow statement; estimate the cost of capital; and provide NPV, IRR, payback period (our target PB is 3 years) and profitability index of this project.
In: Finance
Transaction: 1) October 1, 2016: Opened a bank account for Craft Fair rentals with $100.
2) October 1, 2016: Took out a loan $14,000 from Best Bank and deposited it into the account to pay for expenses. Record as Best Bank Loan payable.
3) October 1, 2016: Bought 20 folding tables from Staples for $1,500 on account. Expect the tables to last 3 years with no disposal value
4) October 1, 2016: Bought 40 chairs from Staples for $1,200 on account. Expect the chairs to last 2 years with no disposal value
5) October 2, 2016: bought 40 table cloths for $800 from Sears on account. Expect to last only 1 season, so expense.
6) October 2, 2016: bought cleaning supplies for $97.00 from Super Store. Paid cash. Will use up within the year.
7) October 5, 2016: Purchased a cash register for $2,500 from ABC Business Machines. It is expected to last 5 years.
8) October 1, 2016: paid $6,000 for 3 months’ rental, (October 1 to December 31, 2017) to OK Hall rentals.
9) October 31, 2016: Best Bank charge, interest on loan $33.33, other bank charges $7.50
10) October 31, 2016: Received $4,800 for the month for table rentals. All paid in cash.
11) October 31, 2016: Paid the Staples account $2,200.
12) October 31, 2016: Mr. Bro drew $3,000 out for his living expenses.
13) November 5, 2016: Paid Sears account $800.00 cash for table cloths. (see #5)
14) November 15, 2016: Paid “The Fix-it Man” $79.00 cash for repairs on the tables.
15) November 30, 2016: Sales invoice 1002 for table rentals of $9,000. $5,000 was paid in cash, balance on account.
16) November 30, 2016: Interest on loan, $33.33 and bank charges $7.50
17) November 30, 2016: Mr. Bro drew $3,000 out for his living expenses.
18) December 14, 2016: Received $4,000 cash for the balance of invoice #1002
19) December 15, 2016: Sales invoice 1003 for table rentals of $7,000. $5,000 in cash, balance on account.
20) December 29, 2016: Sales invoice 1004 for table rentals of $3,000, $1,000 in cash, balance on account.
21) December 30, 2016: Received $2,000 cash for payment of invoice 1003. (see # 20)
22) December 30, 2016: The Fix-it Man charged $58.00 for repairs. Will be paid in January.
23) December 31, 2016: Best Bank interest on loan of $33.33 and bank charges of $7.50.
24) December 31, 2016: Mr. Bro drew $3,000 out for his living expenses.
25) December 31, 2016: Paid $7,000 on the loan owing to Best Bank.
December 31, 2016: Computed amortization expense and accumulated amortization of $500 for the tables, $600 for the chairs and $500 for the cash registrar.
Q1:Prepare the journal entries to record the transactions.
a)Post the journal entries to a T-account
b) Prepare the trial balance
c) Prepare the income statement of the owner's equity for three months (Oct-December)
d) Prepare the balance sheet as of Dec. 31
e) Was the fall work successful? Should it continue in the fall 2017? Give reasons
In: Accounting
Using the data in the following table, answer parts (i) – (v).
|
Year |
Stock X |
Stock Y |
|
2012 |
-11% |
-5% |
|
2013 |
15% |
25% |
|
2014 |
10% |
15% |
|
2015 |
-5% |
-15% |
|
2016 |
5% |
-5% |
|
2017 |
8% |
-2% |
|
2018 |
7% |
10% |
|
2019 |
5% |
15% |
|
Average return |
||
|
Standard deviation |
||
|
Correlation between Stock X and Stock Y |
0.7567 |
|
In: Finance
Determine whether the given vectors are orthogonal, parallel, or neither.
32.
(a) u = (-5, 4, -2), v = (3, 4, -1)
(b) u = 9i-6j+3k, v = -6i+4j-2k
(c) u = (c, c, c), v = (c, 0, -c)
In: Math
Use the Chain Rule to find the indicated partial derivatives. N = p + q p + r , p = u + vw, q = v + uw, r = w + uv; ∂N ∂u , ∂N ∂v , ∂N ∂w when u = 4, v = 2, w = 8
In: Advanced Math
77 kW is to arrive at a town over two 0.140 ? lines. Estimate how much power is saved if the voltage is stepped up from 240 V to 2400 V and then down again, rather than simply transmitting at 240 V . Assume the transformers are each 99% efficient.
In: Physics
In: Finance
In: Advanced Math