Questions
South African Tax

South African Tax

In: Accounting

write a bash shell script using the for-loop construct that counts the number of files and...

write a bash shell script using the for-loop construct that counts the number of files and directories looping through the files in the directory name provided by the user on a prompt by the script and prints "TOO many files" is the count of files is larger than a random number it generates between 20 and 40

In: Computer Science

Fully Functional Script written in BASH In this section, you will write a fully functional script...

Fully Functional Script written in BASH

In this section, you will write a fully functional script to help your manager with an important project that will build upon what you learned from your script work in Milestone Four. After you have written the script, you will execute it to generate a report for all three users (once for Bob, once for Henry, and once for Frank). You should have three unique generated reports in your ~/scripts directory (or more if you ran it multiple times per user). This script will be showcased to upper management and should demonstrate your best work.

Write the Script:

Write a fully functional and professional looking script that meets all of the following requirements.

1. Resides within your ~/scripts directory and is named tps-report-gen.sh.

2. Take a supplied user’s first name (Bob, Henry, or Frank) in any order when the script is executed (for example: sh tps-reportgen.sh bob).

3. Print out to the screen the text: TPS REPORT LISTING

4. A double newline.

5. Print out to the screen neatly the user’s name, company position, and home directory path on one line.

6. A double newline.

7. A list of TPS Reports associated with that user.

8. A double newline.

9. Print out to the screen the text: END REPORT LISTING

10. The script needs to print the output to the screen and generate a report into the same directory as the script named tps-list-USERDATETIME.rpt. USER would be the user's username and DATETIME would be the date and time that the report was run. USER and DATETIME would both change based on the username supplied and the date and time the script is executed. It may be easier to build the report file first, then simply cat the file to the screen within the script. An example report would look like:

tps-list-bob-030816624.rpt

HINT: To get the DATETIME portion formatted as requested use the following: date "+%m%d%y%k%M" | awk -F" " {'print $1$2'}

In: Computer Science

Linux Fundamentals part 3 Below are questions related to the command line use of Linux. You...

Linux Fundamentals part 3

Below are questions related to the command line use of Linux.  You can use the videos, man pages, and notes to answer these questions. 

Remember that Linux is CASE SENSITIVE.  Rm and rm are NOT the same command.  I will count off totally for a question if you do not take this into account.

For each command give me the ENTIRE COMMAND SEQUENCE.  If I ask you  'What command would I use to move the file one.txt to the parent directory and rename it to two.txt?", the answer is NOT 'mv'. That is only part of the command. I want the entire command sequence.

10. Find all files under the current directory with an accessed time was more than 2 days ago.


11. I have a file called 'BackupLogs.tar.bz2' in my home directory (because you made it from Questions 4 and 8, right? Right!). I want to uncompress and unarchive the files in it. What single command would I use?


12. I have a file called BackupLogs.tar.bz2 and I want to uncompress and ONLY uncompress the file (NOT uncompress and unarchive). What command would I use?


13. I want to search for all files in the directory ~/Documents which contain the keyword "add", case sensitive, and as the whole word only. Words like addendum, addition, etc, should not be found in the results; just 'add'. Additionally, I only want to see the name(s) of the file(s) that have matches as a result of running the command. This means your result should show not the keyword hit AND surrounding text, but rather suppress that output and instead display just the file name. What command would I use? This may sound complicated, but break down each step and use the man page.


14. I have a large file named walloftext.txt and I want to view only the first 5 lines of the file. What command would I use?


15. Same as file as Question 14, but I want to view only the last 7 lines.

In: Computer Science

Markey Corporation consists of two divisions, North and South. The North makes Glop, a product that...

Markey Corporation consists of two divisions, North and South. The North makes Glop, a product that can be used in the production of the product that the South division makes and sells. Both divisions are considered profit centers. The following data are available concerning Glop and the two divisions:

North South
Average units produced 150,000
Average units sold 150,000
Variable manufacturing cost per unit $2
Variable finishing cost per unit $5
Fixed divisional costs $75,000 $125,000

The North Division can sell all of its output outside the company for $4 per unit. The South Division can buy the Glop from other firms for $4. The South Division sells its product for $12.What is the optimal transfer price in this case?

Select one:

a. $9 per unit

b. $4 per unit

c. $7 per unit

d. $2 per unit

In: Accounting

You are considering a project in South Korea. The cash flows are in South Korean won...

You are considering a project in South Korea. The cash flows are in South Korean won (KRW). Given your current estimates of the future spot rate of USD/KRW, the NPV is positive. Explain why you should proceed with the project.
If you think the South Korean won will appreciate more against the dollar than what you originally estimated will this make it more or less likely that you proceed with the project Explain.  

In: Finance

You are considering a project in South Korea. The cash flows are in South Korean won...

You are considering a project in South Korea. The cash flows are in South Korean won (KRW). Given your current estimates of the future spot rate of USD/KRW, the NPV is positive. Explain why you should proceed with the project. If you think the South Korean won will appreciate more against the dollar than what you originally estimated will this make it more or less likely that you proceed with the project. Explain.

In: Finance

South Africa is a country with high unemployment rate. Some researchers have suggested that the South...

South Africa is a country with high unemployment rate. Some researchers have suggested that the South African government should adopt expert-led growth policies to address this problem given that increasing exports has the potential to increase productivity. Should the South African government increase its economic openness without government regulation of any kind?

Please help me there. There is an answer to this question in this app. But I cant view it

In: Economics

A motorist drives south at 26.0 m/s for 3.00 min, then turns west and travels at...

A motorist drives south at 26.0 m/s for 3.00 min, then turns west and travels at 25.0 m/s for 2.00 min, and finally travels northwest at 30.0 m/s for 1.00 min. For this 6.00 min trip, find the following values.

(a) total vector displacement
_____m (magnitude) ___° south of west


(b) average speed
____m/s
(c) average velocity
____m/s (magnitude) _____° south of west

In: Physics

According to Benjamin Franklin’s pamphlet “Information to Those Who Would Remove to America,” who is “needed”...

According to Benjamin Franklin’s pamphlet “Information to Those Who Would

Remove to America,” who is “needed” in America, and who would be better

served staying in Europe? What reasons does he provide for his views? If

Franklin were around today, what might he include in his pamphlet?

In: Economics