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 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 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 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 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
In: Economics
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
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.
Conduct an environmental analysis that looks at and comments on your local area and your network of business contacts, competitors and customers.
Identify the target market, describing how the company will meet the needs of the consumer better than the competition does.
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.
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 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
In: Operations Management
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
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.
Conduct an environmental analysis that looks at and comments on your local area and your network of business contacts, competitors and customers.
Identify the target market, describing how the company will meet the needs of the consumer better than the competition does.
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.
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