Questions
Please code in C# (C-Sharp) Assignment Description A pirate needs to do some accounting and has...

Please code in C# (C-Sharp)

Assignment Description

A pirate needs to do some accounting and has asked for your help. Write a program that will accept a

pirate’s starting amount of treasure in number of gold pieces. The program will then run one of two

simulations, indicated by the user:

1) The first simulation runs indefinitely, until one of two conditions is met: the pirate’s treasure

falls to 0 or below, or the pirate’s treasure grows to 1000 or above.

2) The second simulation runs for a number of years set by the user.

For both simulations, each year the pirate has an equal chance to either gain or lose 50 gold pieces. At

the end of each year, the pirate’s total gold and the year is displayed to the user. Validate all user input.

Tasks

1) The program needs to contain the following

a.

A comment header containing your name and a brief description of the program

b. At least 5 comments besides the comment header throughout your code

c.

A prompt for the starting treasure amount

d. A prompt to choose a simulation

i. The first simulation continues until the treasure amount becomes 1000 or more

or 0 or less

ii. The second simulation will prompt the user for number of years, then simulate

that many years. The gold amount can go below zero

e. For both simulations, treasure amount has an equal chance to increase by 50 or

decrease by 50 each year

f.

Output the year and treasure amount after each year

g.

ā€œPress enter to continueā€ and Console.ReadLine(); at the end of your code

h. Validate all user input. Either through exception handling or boolean logic.

2) Upload a completed .cs file onto the Assignment 5 submission folder and a word document

containing the following six (6) screenshots:

a.

One run of the first simulation, starting amount 500

i. Your screenshot only needs to show up to the last 10 years

b. Two runs of the second simulation, starting amount 300 for 10 years and starting

amount 500 for 20 years

c.

Three test runs with invalid input for the following: starting treasure amount, simulation

choice, number of years

In: Computer Science

Windwave Ornamental Grass Company (WOGC) has been in business for forty years. The business was started...

Windwave Ornamental Grass Company (WOGC) has been in business for forty years. The business was started by George Reed as a small producer of ornamental grass used for soil erosion and to provide a maintenance-free ground cover along highway medians and banks. Windwave focuses on two types of grass: Fireweed and Blue Haze. When motorists pass by an area planted in Fireweed, they see a tall grass that resembles embers glowing as the red-bladed grass waves in the wind. Fireweed always garners top prizes for its unique color and hardiness at ornamental grass competitions. Blue Haze on the other hand is Windwave’s sleeper. Blue Haze is a low growing variety that does well in colder climates. When seen along the highway, Blue Haze resembles a blue-gray rolling carpet.

George has seen substantial growth since WOGC’s early days when he developed and propagated each variety of grass himself. With the help of his sons, Paul and Jared, he planted and tended to his stock and created well-thought out marketing materials to introduce the varieties to local and state transportation agencies. Slowly word got around and sales began to climb.

Now, Paul and Jared each supervise a crew of field workers. Paul stood over his workers and was not shy about letting his workers know what needed to be done and how to do it. He wants things done his way and didn’t any pushback from his workers. Jared believes the people doing the work could have helpful ideas to improve efficiency. He was often found working alongside his workers from the start of a job until it is finished.

WOGC wanted to expand the nursery to increase production of Blue Haze and move into new northern markets and had purchased an additional acreage for this purpose. It had been a wet spring delaying the progress on the clearing, tilling and planting the new acreage. Now WOGC was under a tight deadline to get the brush cleared, tilled and Blue Wave planted.

Identify the leadership style for Paul and Jared? Who should George put in charge of the project? Why?

In: Operations Management

Part-A Scenario: Midal cables limited, is currently considering the launch of a new product. A market...

Part-A

Scenario:

Midal cables limited, is currently considering the launch of a new product. A market survey was recently commissioned to assess the likely demand for the product and this showed that the product has an expected life of four years. The survey cost $30,000 and this is due for payment in four months’ time. On the basis of the survey information as well as internal management accounting information relating to costs, the assistant accountant prepared the following profit forecasts for the product.

Year

1

2

3

4

$'000

$'000

$'000

$'000

Sales

180

200

160

120

Cost of sales

(115)

(140)

(110)

(85)

Gross profit

65

60

50

35

Variable overheads

(27)

(30)

(24)

(18)

Fixed overheads

(25)

(25)

(25)

(25

Market survey written off

(30)

Net profit/(loss)

(17)

5

1

(8)

         

These profit forecasts were viewed with disappointment by the directors and there was a general feeling that the new product should not be launched. The Chief Executive pointed out that the product achieved profits in only two years of its four-year life and that over the four-year period as a whole, a net loss was expected. However, before a meeting that had been arranged to decide formally the future of the product, the following additional information became available:

The new product will require the use of an existing machine. This has a written down value of$80,000 but could be sold for $70,000 immediately if the new product is not launched. If the product is launched, it will be sold at the end of the four-year period for $10,000.

Additional working capital of $20,000 will be required immediately and will be needed over the four-year period. It will be released at the end of the period.

The fixed overheads include a figure of $15,000 per year for depreciation of the machine and $5,000 per year for the re-allocation of existing overheads of the business.

The company has a cost of capital of 10%.

Ignore taxation.

Required

Use integrated financial software you are familiar with and perform the task below. For example, you may use excel spreadsheet for calculation and presentation of cash flow and Microsoft word to explain the phenomenon.

Calculate the incremental cash flows arising from a decision to launch the product.    

Calculate the approximate internal rate of return of the product.

Explain, with reasons, whether or not the product should be launched. (50-100 words)

In: Accounting

Java. Given an input file with each line representing a record of data and the first...

Java. Given an input file with each line representing a record of data and the first token (word) being the key that the file is sorted on, we want to load it and output the line number and record for any duplicate keys we encounter. Remember we are assuming the file is sorted by the key and we want to output to the screen the records (and line numbers) with duplicate keys. We are given a text file and have to use the scanner class to lod it

Your task is to

  • create a FindDuplicates class with the following:

    • Declaration of an instance variables for the String filename

    • non-default Constructor - creates an object for user passed filename argument

    • Accessor methods return the value of each instance variable

    • Mutator methods that allows th user to set each instance variable (no validation required),

    • a "getDuplicates()" method that reads from the file (until end-of-file) using Scanner class, finds duplicate records based on the first token on each line (the key), and returns as a String the record number and entire duplicate record one to a line (see above Sample output)

      • toString() - returns a String message with the value of the instance variable

Sample Output

Enter File Name: input1.txt

FileName:input1.txt

DUPLICATES

12 102380 CS US W 2.8 3.267 125

14 102395 PPCI US W 2.769 2.5 115

25 102567 PPCI US W 3.192 3.412 112

35 102912 CS US Z 3.81 3.667 88

44 103087 CS US Z 2.956 2.688 90

76 103944 CS US W 3.134 3.294 134

77 103944 CS US W 3.698 3.7 94

86 104046 CS US W 2.863 3.133 65

88 104047 CS US W 3.523 3.524 77

89 104047 CS US O 3.825 3.824 49

91 104048 CS US W 3.071 3 94

92 104048 CS US W 3.114 3.111 44

93 104048 CS US W 3.375 3.6 71

Press any key to continue . . .

In: Computer Science

Email is becoming one of the most common forms of communication in the workplace. Although email...

Email is becoming one of the most common forms of communication in the workplace. Although email is a main form of business communication, it is not always done well. Many employers complain of employees who send poorly written and confusing emails. Because of their extensive use, it is important to learn how to write emails professionally with informative subject lines, appropriate greetings, well-organized bodies, and complete closing information.

This assignment will allow you the opportunity to practice composing professionally written emails. The following Word document contains several job-related scenarios which require an email to be sent. Read each scenario and compose an appropriate email by applying the concepts discussed in the lesson. Be sure to analyze your audience, implement a you-attitude, and use positive emphasis.

Compose all your emails in the same document but write each each email on a page of its own

Include an informative subject line for each email

Include an appropriate greeting for each email

Include a formal closing for each email

The following are work-related scenarios which require an email to be sent. Read each scenario and compose an appropriate email by applying the concepts discussed in the lesson. Be sure to analyze your audience, implement a you-attitude, and use positive emphasis. Use a new page for each email.

Include an informative subject line

Include an appropriate greeting

Include a formal closing

Scenario 5:

Your co-worker Ted has asked you to serve on a departmental planning committee at your job which is going to take up a lot of time you don’t have. You’re already running behind on the last project he assigned to you. Write Ted a professional email informing him that you will not be able to serve on the committee because you don’t want to overcommit.

Scenario 6:

You work in the customer relations department at a retail store. You have a customer who ordered some holiday gift baskets which were damaged on their way from the warehouse to the store due to an exceptionally turbulent flight. Write a professional email to the customer explaining the situation and ensuring them you are doing everything you can to deliver their order before the holiday. Try to maintain the relationship with the customer as much as possible.

In: Operations Management

Boy Sells Hot Cocoa to Benefit Hospital That Saved Friend’s Life LESTER HOLT, anchor: If your...

Boy Sells Hot Cocoa to Benefit Hospital That Saved Friend’s Life
LESTER HOLT, anchor:
If your winter has been anything like ours, it's a perfect night for a cup of hot chocolate, the ultimate
comfort food. It's become the ultimate expression of friendship between two little boys in Colorado when
one of them faced the greatest challenge of his young life. With help from our Denver affiliate KUSA, we
get the story tonight from NBC's Joe Fryer.
JOE FRYER, reporting:
Denver in the winter is no place for a lemonade stand.
TRISTAN REGINI: And this is really cold right now.
FRYER: Which is why eight-year-old Tristan Regini is selling hot cocoa, a buck a cup. Two bucks if you
like marshmallows.
WOMAN #1: Could I have hot cocoa with the five marshmallows?
REGINI: Okay.
FRYER: With such low temps, investment analysts might scowl at such an icy escapade.
REGINI: It can be very tough.
FRYER: Until they hear Tristan's real business plan.
REGINI: My friend Cade, he had cancer.
FRYER: Tristan's talking about his buddy, Cade Humphrey, who was diagnosed with brain cancer. After
surgery, chemo, radiation and a bone marrow transplant, there's now no sign of Cade's disease.
REGINI: Children's Hospital saved his life. So now I'm trying to sponsor it even more.
FRYER: As word of Tristan's ongoing fundraiser has spread, donations have grown.
MAN: That's great. Nice of you to do this.
FRYER: This week he gave four hundred dollars to Children's Hospital Colorado, and more money is still
coming in. His parents are not surprised.
STEVE REGINI: It's pretty much Tristan, that's just the way he is.
WOMAN #2: I'll be right back.
FRYER: In this frozen neighborhood, it is not the hot cocoa that will warm your heart.
REGINI: I want to just save some lives.
FRYER: It's the salesman.
REGINI: Hot chocolate for sale.
FRYER: Joe Fryer, NBC

Discuss your Personal and Professional Goals as it relates to your business venture.
Discuss your thoughts about Tristan Regini’s Vision Statement.

In: Economics

Marketing Plan From the real international market, select a company of your choice wishing to start...

Marketing Plan

From the real international market, select a company of your choice wishing to start its activities in Saudi Arabia. The Company hired you as Marketing Manager of Saudi Arabian Region.

You have to establish a marketing department starting from the Analysis of the market, formulate overall marketing goals, objectives, strategies, and tactics within the context of an organization's business, mission, and goals designing and planning the entire function.

Write a Marketing Plan considering the following points

  1. Introduction, Goals and Objectives

To introduce this section you should include the "mission statement" of the business; an idea of what its goals are for customers, clients, employees and the consumer.

  1. Introduction about the business.
  2. Business vision and mission
  3. Business objective.
  4. Products and services offered
  1. Environmental Analysis

Conduct an environmental analysis that looks at and comments on your local area and your network of business contacts, competitors and customers.

  1. Target Market Analysis

Identify the target market, describing how the company will meet the needs of the consumer better than the competition does.

  1. SWOT Analysis

Conduct a SWOT analysis for your chosen company based on your research.

Strengths: List the strengths of the business approach;

Weaknesses: Describe the areas of weakness in the company's operations;

Opportunities: Examine factors that may improve the business's chances of success;

Threats: List the external threats to the business' success.

  1. Marketing Mix (4 P’s ) Analysis

Describe each of the 4Ps of your chosen company.

Product or Service

Identify the product or service by what it is, who will buy it, how much they will pay for it and how much it will cost for the company to produce it, why a consumer demand exists for your product, and where the product sits in comparison to similar products/services now available.

Place

Identify the location of the business, why it is located there (strategic, competitive, economic objectives), the expected methods of distribution, and timing objectives.

Promotion

Describe the type of promotional methods that will be used. Identify techniques such as word of mouth, personal selling, direct marketing, sales promotion etc. television, radio, social media and newspaper ads.

Price

The prices of the products or services that reflects the overall company strategy. Should be competitive as well as a reflection of the quality, costs and profit margin.

In: Operations Management

q1 : what is you opinion ? The chief executive officer (CEO) of a midsize urban...


q1 : what is you opinion ?


The chief executive officer (CEO) of a midsize urban hospital was late one Friday evening, so he took a shortcut that caused him to walk by the employee lounge. He walked inside and shook his head. With all the problems of budget cuts and trying to make ends meet, he realized that little money had been available for upkeep of nonpatient areas such as the employee lounge. The carpet was dirty and worn, the coffee mugs were chipped, the wallpaper was torn, and the refrigerator groaned as it cycled on and off. The CEO decided enough was enough. The employees had worked hard and should, at minimum, have an inviting and pleasant employee lounge.

He marched back to his office and called the chief operating officer (COO) to instruct her to create a weekend miracle by calling in the work crews to update and refurbish the employee lounge. He ordered new carpets, new wallpaper, and new appliances, and he wanted it all done by Monday. The CEO told the COO, ā€œI keep telling the employees how much I appreciate their help, especially in these financially tight times, but now I am going to show them. And be sure to replace those old, chipped coffee mugs.ā€ Early on Monday morning, the CEO walked by the employee lounge. It looked terrific, and someone had already made coffee. He made a note to himself to tell the COO what a great job she had done.

When he got to his office, he found the union steward sitting on the couch. ā€œI need to have a word with you,ā€ the union steward said. He had several words, as it turned out: He said that the CEO had violated the collective bargaining contract and that refurbishing the employee lounge should have been, at minimum, discussed with the union. The union steward spent 20 minutes complaining about violations and procedures.

After the union steward left, the CEO called the COO and told her to put the lounge back the way it was, including the chipped coffee mugs. Then the CEO muttered to himself, ā€œThat is the last time I try to do anything nice for anyone around here. I have learned my lesson.ā€

In: Operations Management

Marketing Plan From the real international market, select a company of your choice wishing to start...

Marketing Plan
From the real international market, select a company of your choice wishing to start its activities in Saudi Arabia. The Company hired you as Marketing Manager of Saudi Arabian Region.
You have to establish a marketing department starting from the Analysis of the market, formulate overall marketing goals, objectives, strategies, and tactics within the context of an organization's business, mission, and goals designing and planning the entire function.
Write a Marketing Plan considering the following points (2x5=10 Marks)
1. Introduction, Goals and Objectives
To introduce this section you should include the "mission statement" of the business; an idea of what its goals are for customers, clients, employees and the consumer.
a. Introduction about the business.
b. Business vision and mission
c. Business objective.
d. Products and services offered
2. Environmental Analysis
Conduct an environmental analysis that looks at and comments on your local area and your network of business contacts, competitors and customers.
3. Target Market Analysis
Identify the target market, describing how the company will meet the needs of the consumer better than the competition does.
4. SWOT Analysis
Conduct a SWOT analysis for your chosen company based on your research.
Strengths: List the strengths of the business approach;
Weaknesses: Describe the areas of weakness in the company's operations;
Opportunities: Examine factors that may improve the business's chances of success;
Threats: List the external threats to the business' success.
5. Marketing Mix (4 P’s ) Analysis
Describe each of the 4Ps of your chosen company.
Product or Service
Identify the product or service by what it is, who will buy it, how much they will pay for it and how much it will cost for the company to produce it, why a consumer demand exists for your product, and where the product sits in comparison to similar products/services now available.
Place
Identify the location of the business, why it is located there (strategic, competitive, economic objectives), the expected methods of distribution, and timing objectives.
Promotion
Describe the type of promotional methods that will be used. Identify techniques such as word of mouth, personal selling, direct marketing, sales promotion etc. television, radio, social media and newspaper ads.
Price
The prices of the products or services that reflects the overall company strategy. Should be competitive as well as a reflection of the quality, costs and profit margin.

In: Operations Management

Marketing Plan From the real international market, select a company of your choice wishing to start...

Marketing Plan

From the real international market, select a company of your choice wishing to start its activities in Saudi Arabia. The Company hired you as Marketing Manager of Saudi Arabian Region.

You have to establish a marketing department starting from the Analysis of the market, formulate overall marketing goals, objectives, strategies, and tactics within the context of an organization's business, mission, and goals designing and planning the entire function.

Write a Marketing Plan considering the following points

  1. Introduction, Goals and Objectives

To introduce this section you should include the "mission statement" of the business; an idea of what its goals are for customers, clients, employees and the consumer.

  1. Introduction about the business.
  2. Business vision and mission
  3. Business objective.
  4. Products and services offered
  1. Environmental Analysis

Conduct an environmental analysis that looks at and comments on your local area and your network of business contacts, competitors and customers.

  1. Target Market Analysis

Identify the target market, describing how the company will meet the needs of the consumer better than the competition does.

  1. SWOT Analysis

Conduct a SWOT analysis for your chosen company based on your research.

Strengths: List the strengths of the business approach;

Weaknesses: Describe the areas of weakness in the company's operations;

Opportunities: Examine factors that may improve the business's chances of success;

Threats: List the external threats to the business' success.

  1. Marketing Mix (4 P’s ) Analysis

Describe each of the 4Ps of your chosen company.

Product or Service

Identify the product or service by what it is, who will buy it, how much they will pay for it and how much it will cost for the company to produce it, why a consumer demand exists for your product, and where the product sits in comparison to similar products/services now available.

Place

Identify the location of the business, why it is located there (strategic, competitive, economic objectives), the expected methods of distribution, and timing objectives.

Promotion

Describe the type of promotional methods that will be used. Identify techniques such as word of mouth, personal selling, direct marketing, sales promotion etc. television, radio, social media and newspaper ads.

Price

The prices of the products or services that reflects the overall company strategy. Should be competitive as well as a reflection of the quality, costs and profit margin.

In: Operations Management