Questions
Objectives: 1. To get familiar with C# programming language 2. To get familiar with Visual Studio...

Objectives:
1. To get familiar with C# programming language
2. To get familiar with Visual Studio development environment
3. To practice on writing a C# program
Task 1: Create documentation for the following program which includes the following:
a. Software Requirement Specification (SRS)
b. Use Case
Task 2: Write a syntactically and semantically correct C# program that models telephones. Your program has to be
a C# Console Application. You will not implement classes in this program other than the class which runs the main
method.
The main() method
Use a do while loop to prompt for telephone data by calling an inputPhone( ) method which you will implement and
is explained below. Please do not change the signature of the method!
You will need parallel arrays to telephone data.
Once done with data entry, output the telephone data stored in arrays by invoking an outputPhones( ) method as
described below. Again, do not change the signature of the method!
The inputPhone() method
The method signature is
static void inputPhone(ref string manufacturer, ref string model,
ref bool hasCord, ref double price)
It prompts the user for the telephone manufacturer’s name, phone model, price and whether it has a cord (refer to
the sample run output below). Store the entered values in the parameters. You may use Convert.ToDouble( ) to
convert a string to a double number.
Have you noticed that all parameters are reference parameters?
The outputPhones() method
The method signature is
static void outputPhones(string [] manufacturers, string [] models,
bool [] hasCords, double [] prices, int numberOfPhones)
The last parameter contains the number of the telephones to be displayed.
You code need to output the heading, and use a for loop to output the telephone data stored in the arrays passed to
the method. The format of the output is shown in the sample run output.
Refer to the sample run output for details.
Note: Please follow the coding style of C#


Deliverables:

Sample Output:


Enter the Phone Manufacturer: VTech
Enter the Phone Model: V3399
Is it cordless? [Y or N]: y
Enter the Phone Price: $49.99
Would like to process another phone? [Y or N]: Y
Enter the Phone Manufacturer: AT&T
Enter the Phone Model: T-9898
Is it cordless? [Y or N]: N
Enter the Phone Price: $29.98
Would like to process another phone? [Y or N]: y
Enter the Phone Manufacturer: Panasonic
Enter the Phone Model: P 4321
Is it cordless? [Y or N]: Y
Enter the Phone Price: $98.97
Would like to process another phone? [Y or N]: n
Output of Telephones
=== Phone #1 ===
Manufacturer: VTech
Model: V3399
Cordless: Yes
Price: $49.99
=== Phone #2 ===
Manufacturer: AT&T
Model: T-9898
Cordless: No
Price: $29.98
=== Phone #3 ===
Manufacturer: Panasonic
Model: P 4321
Cordless: Yes
Price: $98.97
A total of 3 telephones
Press any key to continue . . .

In: Computer Science

Complete the following problems: 1. For this problem, use the following randomly generated list of accounts,...

Complete the following problems: 1. For this problem, use the following randomly generated list of accounts, placing them in appropriate order to prepare an income statement. Accounts ($000,000) Depreciation 25 General and administrative expenses 22 Sales 345 Sales expenses 18 Cost of goods sold 255 Lease expense 4 Interest expense 3 The following randomly constructed table requires that as part of your Critical Thinking Assignment you arrange the accounts into a well-labeled income statement. Make sure you label and solve for gross profit, operating profit, and net profit before taxes. Using a 35% tax rate, calculate taxes paid and net profit after taxes. Assuming a dividend of $1.10 per share with 4.25 million shares outstanding, calculate EPS and additions to retained earnings. 2. Explain why the income statement can also be called a “profit-and-loss statement.” What exactly does the word balance mean in the title of the balance sheet? Why do we balance the two halves? 3. CS Industries, Inc. began 2016 with retained earnings of $25.32 million. During the year, it paid four quarterly dividends of $0.35 per share to 2.75 million common stockholders. Preferred stockholders, holding 500,000 shares, were paid two semiannual dividends of $0.75 per share. The firm had a net profit after taxes of $5.15 million. Prepare the statement of retained earnings for the year ended December 31, 2016. 4. Sky Metals, Inc. is a metal fabrication firm that manufactures prefabricated metal parts for customers in a variety of industries. The firm’s motto is “If you need it, we can make it.” The CEO of Sky Metals recently held a board meeting during which he extolled the virtues of the corporation. The company, he stated confidently, had the capability to build any product and could do so using a lean manufacturing model. The firm would soon be profitable, claimed the CEO, because the company used state-of-the-art technology to build a variety of products while keeping inventory levels low. As a business press reporter, you have calculated some ratios to analyze the financial health of the firm. Sky Metals' current ratios and quick ratios for the past 6 years are shown in the following table: 2010 2011 2012 2013 2014 2015 2015 Current ratio 1.2 1.4 1.3 1.6 1.8 2.2 2.2 Quick ratio 1.1 1.3 1.2 0.8 0.6 0.4 0.4 What do you think of the CEO’s claim that the firm is lean and soon to be profitable? 5. If we know that a firm has a net profit margin of 4.5%, total asset turnover of 0.72, and a financial leverage multiplier of 1.43, what is its ROE? What is the advantage to using the DuPont system to calculate ROE over the direct calculation of earnings available for common stockholders divided by common stock equity?

In: Finance

1. For this problem, use the following randomly generated list of accounts, placing them in appropriate...

1. For this problem, use the following randomly generated list of accounts, placing them in appropriate order to prepare an income statement.

Accounts

($000,000)

Depreciation

25

General and administrative expenses

22

Sales

345

Sales expenses

18

Cost of goods sold

255

Lease expense

4

Interest expense

3

  1. The following randomly constructed table requires that as part of your Critical Thinking Assignment you arrange the accounts into a well-labeled income statement. Make sure you label and solve for gross profit, operating profit, and net profit before taxes.
  2. Using a 35% tax rate, calculate taxes paid and net profit after taxes.
  3. Assuming a dividend of $1.10 per share with 4.25 million shares outstanding, calculate EPS and additions to retained earnings.

2. Explain why the income statement can also be called a “profit-and-loss statement.” What exactly does the word balance mean in the title of the balance sheet? Why do we balance the two halves?

3. CS Industries, Inc. began 2016 with retained earnings of $25.32 million. During the year, it paid four quarterly dividends of $0.35 per share to 2.75 million common stockholders. Preferred stockholders, holding 500,000 shares, were paid two semiannual dividends of $0.75 per share. The firm had a net profit after taxes of $5.15 million. Prepare the statement of retained earnings for the year ended December 31, 2016.

4. Sky Metals, Inc. is a metal fabrication firm that manufactures prefabricated metal parts for customers in a variety of industries. The firm’s motto is “If you need it, we can make it.” The CEO of Sky Metals recently held a board meeting during which he extolled the virtues of the corporation. The company, he stated confidently, had the capability to build any product and could do so using a lean manufacturing model. The firm would soon be profitable, claimed the CEO, because the company used state-of-the-art technology to build a variety of products while keeping inventory levels low. As a business press reporter, you have calculated some ratios to analyze the financial health of the firm. Sky Metals' current ratios and quick ratios for the past 6 years are shown in the following table:

2010

2011

2012

2013

2014        2015

2015

Current ratio

1.2

1.4

1.3

1.6

1.8           2.2

2.2

Quick ratio

1.1

1.3

1.2

0.8

0.6          0.4

0.4

What do you think of the CEO’s claim that the firm is lean and soon to be profitable?

5. If we know that a firm has a net profit margin of 4.5%, total asset turnover of 0.72, and a financial leverage multiplier of 1.43, what is its ROE? What is the advantage to using the DuPont system to calculate ROE over the direct calculation of earnings available for common stockholders divided by common stock equity?

In: Finance

Go-Figure, Inc.* The actual company name and product has been disguised. Go-Figure, a newly formed corporation,...

Go-Figure, Inc.*

The actual company name and product has been disguised.

Go-Figure, a newly formed corporation, has developed a proprietary circuit board inspection system that offers a high-speed way to inspect boards for defects. Data indicate that 10 to 25 percent of circuit boards that leave a manufacturing line have defects such as wrong polarity, missing components, wrong components, etc. Quality control is a serious problem for manufacturers as, in aggregate, they place 2 to 5 million components on circuit boards per day, a number that is increasing rapidly. As circuit boards become smaller and more densely populated with components, the potential for defects increases, as does the difficulty of detecting the defects.

Go-Figure uses a unique technology for circuit board inspections and has applied for a patent on the technology. Product testing shows considerable detection success and the technology is much less costly than alternative mechanical methods of inspection and visual inspection. Visual inspection is prone to error and is very time-consuming. Preliminary market research indicates that, worldwide, there currently are 30,000 manufacturing lines that could be served using the Go-Figure technology.

Go-Figure has developed the technology and a prototype, and has arranged for a host site where it can demonstrate use of the system. The firm is seeking an additional $1 million from outside investors. It proposes to raise equity capital from business angels by issuing them common stock at $1 per share. Minimum investment is $25,000. The entrepreneur and members of the board own existing equity. The management team is looking for additional expertise and is willing to consider board membership for a well-qualified investor.

You are an employee of Go-Figure, and have been deputed with the job of putting together a draft business plan that will be circulated to prospective investors.

  1. As a starting point, look at some Internet sites on business plans and develop a brief outline of what you believe the major parts of the Go-Figure business plan should be.
  1. Prepare a list of questions you believe any outside investor would want to have answered before investing, e.g., What will be done with the proceeds? What is the exit mechanism that is contemplated? Make this list as complete as possible.
  1. After you have developed the outline, explain in which section(s) of the plan each of the following might be addressed.
  1. Commitment of the entrepreneur
  2. Present and future financial needs
  3. Specifics of the opportunity
  4. Significant risk
  5. Competition
  6. Sources of competitive advantage
  7. Capabilities of management
  8. Harvesting

  1. Once you have thought about the outline in more detail, it is certain that you will have a list of questions you will need to have answered, or at least, researched, prior to completing the plan. What are these questions? What are your suggestions for getting them answered?

*Source: Smith, J., Smith, R. L., Smith, R., & Bliss, R. (2011). Entrepreneurial finance: strategy, valuation, and deal structure. Stanford University Press.

In: Finance

1. For each of the following, write C++ statements that perform the specified task. Assume that...

1. For each of the following, write C++ statements that perform the specified task. Assume that unsigned integers are stored in four bytes and that the starting address of the built-in array is at location 1002500 in memory.

  1. Declare an unsigned int built-in array values with five elements initialized to the even integers from 2 to 10. Assume that the constant size has been defined as 5.
  2. Declare a pointer vPtr that points to an object of type unsigned int.
  3. Use a for statement to display the elements of built-in array values using array subscript notation.
  4. Write two separate statements that assign the starting address of built-in array values to pointer variable vPtr.
  5. Use a for statement to display the elements of built-in array values using pointer/offset notation.
  6. Use a for statement to display the elements of built-in array values using pointer/offset notation with the built-in array’s name as the pointer.
  7. Use a for statement to display the elements of built-in array values by subscripting the pointer to the built-in array.
  8. Refer to the fifth element of values using array subscript notation, pointer/offset notation with the built-in array name’s as the pointer, pointer subscript notation and pointer/offset notation.
  9. What address is referenced by vPtr + 3? What value is stored at that location?
  10. Assuming that vPtr points to values[4], what address is referenced by vPtr -= 4? What value is stored at that location?

2. Combine the statements in part 1 into one C++ program. Here is a sample output of your program.

Part C: Printing the using array subscript notation:

Elem. Value Addresses

0 2 00AFFC4C

1 4 00AFFC50

2 6 00AFFC54

3 8 00AFFC58

4 10 00AFFC5C

Part E: Printing the array using pointer/offset notation:

Elem. Value Addresses

0 2 00AFFC4C

1 4 00AFFC50

2 6 00AFFC54

3 8 00AFFC58

4 10 00AFFC5C

Part F: Printing the array using pointer/offset notation with the built-in arrays' name as the pointer

Elem. Value Addresses

0 2 00AFFC4C

1 4 00AFFC50

2 6 00AFFC54

3 8 00AFFC58

4 10 00AFFC5C

Part G: Printing the array by subscripting the pointer to the built-in array

Elem. Value Addresses

0 2 00AFFC4C

1 4 00AFFC50

2 6 00AFFC54

3 8 00AFFC58

4 10 00AFFC5C

Part H. Printing the fifth element of values using:

1. Array subscript notation: 10

2. Pointer/offest notation with array name as a pointer: 10

3. Pointer subscript notation: 10

4. Pointer/offset notation: 10

Part I. The address of vPtr + 3 : 00AFFC58

The values storedat vPtr + 3 : 8

Part J. The address of vPtr -= 4 : 00AFFC4C

The values stored at vPtr -= 4 : 2

Press any key to continue . . .

In: Computer Science

*Need in C language also need full documentation/explanation of each line* Thank you! Write a program...

*Need in C language also need full documentation/explanation of each line*
Thank you!

Write a program that records high-score data from a simulated FIFA soccer game available online. The program will ask the user to enter the number of scores, create two dynamic arrays sized accordingly, ask the user to enter the indicated number of names and scores, and then print the names and scores sorted by score in descending order.
The output from your program should look exactly like this (given the same inputs in bold):
How many FIFA scores will you enter?: 5
Enter the name for Player #1: Ronaldo
Enter the score for FIFA scorer #1: 10400
Enter the name for Player #2: Didier
Enter the score for FIFA scorer #2: 9800
Enter the name for Player #3: Pele
Enter the score for scorer #3: 12300
Enter the name for Player #4: Kaka
Enter the score for scorer #4: 8000
Enter the name for Player #5: Cristiano
Enter the score for scorer #5: 8400
Top Scorers:
Pele: 12300
Ronaldo: 10400
Didier: 9800
Cristiano: 8400
Kaka: 8000

Process returned 0 (0x0) execution time : 23.997 s
Press any key to continue.

Additional Requirements
The data must be stored in two dynamic arrays: an array of strings named names, and an array of ints named scores. These arrays must be declared and allocated using "new" in the main function.
The user input of the names and scores should be done in a function named readData() and should include appropriate input validation. It should have the following signature:
void readData(string names[], int scores[], int size) // void function for user input to be stored in two arrays
You must also write two more functions: one to sort both arrays in descending order by score, and one to display the final list of names and scores. They should have the following signatures.
void sortData(string names[], int scores[], int size) // void function with a descending sort on multiple arrays
void displayData(const string names[], const int scores[], int size) // void function displays content from two arrays
The main function should be very short. It should just get the number of scores, allocate the two arrays, invoke these three functions, and then deallocate the arrays.
Some of you may not have studied selection sorting algorithms in the Gaddis text Chapter 8 or reviewed the selection sort algorithm covered in the lesson notes from the array review module. You may use as much code from the Gaddis sort algorithms as you like but first make sure to understand and trace the sort and the necessary swaps made or you may use our own algorithm. You may use C++'s built-in swap() function, but do not use C++'s sort() function.

In: Computer Science

Read the article and take a look at the filing (and letter linked within) to familiarize...

Read the article and take a look at the filing (and letter linked within) to familiarize yourself with the news. In one paragraph, explain why this news is important to shareholders. After you have posted, you may feel free to read and respond to what others are saying (although not required). Please remember to keep the content of your posts respectful and constructive.

Questions you may want to consider:

  • Where was the information originally sourced from? For example, was the information taken from an SEC filing, a press release, or some other source?
  • Who might find the information in the article useful?
  • Is there anything else going on in the business world right now that is related to this story?
  • What are the business or economic implications?

ARTICLE BELOW:

"Wendy's Co. said it will bring back breakfast across its U.S. restaurants next year as fast-food chains compete to lure diners during more of the day.

The burger chain said Monday that it will spend $20 million to add more menu items and longer hours at its 5,813 domestic restaurants. Wendy's said it and its franchisees will hire some 20,000 workers to help roll out the expanded offerings.

Shares fell about 4% after hours to $21.01 when Wendy's said the investments had prompted it to adjust guidance for its current fiscal year. The company said it expects earnings per share adjusted for one-time items to decline between 3.5% and 6.5%, down from its previous forecast for growth of 3.5% to 7.0%.

Earlier

* McDonald's Tests Robot Fryers and Voice-Activated Drive-Throughs (June 20)

* McDonald's Makes Over All-Day Breakfast to Speed Up Wait Times (May 14)

Breakfast has become an increasingly competitive part of the day for major fast-food companies. McDonald's Corp. has pointed to competition in breakfast as a key area of concern. Guest growth in breakfast is starting to recover for McDonald's after a slide, the company has said, but progress remains slow.

"There's been a lot of new entrants into that space," McDonald's Chief Financial Officer Kevin Ozan said during a July call to discuss the company's most recent earnings report.

Wendy's currently sells breakfast items at about 300 restaurants after earlier efforts to expand nationwide were scrapped. The company abandoned a 2012 push into breakfast at more of its restaurants after a year. Too eclectic a mix of healthy and indulgent options as well as competition from McDonald's and Starbucks Corp. were seen as problems at the time, analysts said.

A Wendy's spokesperson said the company is confident in this launch. The new Wendy's morning menu features a bacon breakfast sandwich, a chicken biscuit and one of the chain's Frosty shakes made with coffee. Working those popular Wendy's items into breakfast foods will help the chain's menu stand out, Chief Executive Todd Penegor said on Monday."

In: Finance

Create a program that will take the user through an attempted dungeon escape. The user will...

Create a program that will take the user through an attempted dungeon escape.

The user will represent a player and the player will have a variable to represent the HP (Hit Points) which will default to 50.

Menu

The program will start with the following menu:

Welcome to dungeon escape.

1) Play the game

2) Exit the game

If option 1 is chosen, the game is played, if not the program will end.

First Set of Doors

If option 1 is chosen, the following message will display

Welcome player. You wake up in a dark hallway, and three doors appear to be your way out

. Which door will you choose? 1, 2, or 3.

prompt> You will choose one door to be a trap door. Create a constant variable to hold the value of the door that will be the trap door.

Hint

const int TRAPDOOR = 3;

If the player chooses the trap door, you will display a game over message and exit the program

Example message:

You open the door and are instantly thrown into an abyss. Better luck next time. GAME OVER.

If the player chooses the other 2 doors, the player will have their HP increased by 50 and move on to the next set of doors are displaying the following message

You pass through the door and sense of strength come over you. Your new HP is [HP value]

Second Set of Doors

You will give the player the following prompt:

You see another set of three doors.

Which door will you choose? 1, 2, or 3.

Prompt>

This time two doors will be trap doors. Create two constants to hold the value of the doors that will be trap doors

. If the player chooses the either trap door constant you will display a distinct message for each trap door and decrease the HP by 50.

Example message for Trap 1:

You open the door and are attacked by an Ogre. You escape but your HP is now [HP value].

Example message for Trap 2:

You open the door and are attached by a banshee. Your escape but your HP is now [HP value]. If the player chooses the last door, display the following message: You open the door and…. nothing happens. Lucky you!

Boss Fight

If a player makes it this far, Display the message:

You see no obstacles and your HP is now [HP value]. Press any non-space key when ready

Hint: You can use cin to read a character here. When the user presses any key, you will have to compare the user’s HP. If the user’s HP is greater than 50 display the following message: You see a dragon appear before you. It breathes fire upon you but you managed to escape with small wounds. Congratulations, you’ve escaped the dungeon! If the user’s HP is equal or less than 50 display the following message: You see a dragon appear before you. It breathes fire upon you and your weak body is engulfed immediately. Game over!

In: Computer Science

I'm having trouble understanding this concept. I already completed the first part now I need to...

I'm having trouble understanding this concept. I already completed the first part now I need to convert the Second Part into a Control Structure. Please help answering the Problem. The first part will be below.

(Second Part)

Continuing with Control Structures

Control Structures are called such because they control the execution flow during the running of a program. There are 3 basic control structures: Sequence, Selection and Loop. This week let's work with the structures we already know - Sequence and Selection - but now let's add the loop structure to our logical programming toolbox.

Remember (from CIS 103) that the defining factor of a structured programming logic is that each control structure has exactly 1 entry point and 1 exit point. How do the 'break' and 'continue' statements, used in loop structures, that we learn about in Chapter 4, affect structured programming logic? (2 points, write answer in text box)

Chapter 4 (section 4.1 through 4.9)

Submit SalaryCalcLoop.java

Update SalaryCalc.java (Salary Calculator) from last week to now continue to take input for every employee in a company, and display their information until a sentinel value is entered (pg. 219), that exits the loop and ends the program.

(First Part Already completed)

import java.util.Scanner;

public class SalaryCalc {
double Rpay = 0, Opay = 0;

void calPay(double hours, double rate) {
if (hours <= 40) {
Rpay = hours * rate;
Opay = 0;
} else {
double Rhr, Ohr;
Rhr = 40;
Ohr = hours - Rhr;
Rpay = Rhr * rate;
Opay = Ohr * (1.5 * rate);
}
}

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String name;
int shift = 0;
Double rate, hours;
System.out.println("Pay Calculator");
String ch = "";
//added loop here to take the inputs repetedly
do {
System.out.println("Enter Your Name");
name = sc.next();
System.out.println("Enter Your Shift, Enter 0 for Day, Enter1 for Night");
System.out.println("0=Day, 1= Night");
shift=sc.nextInt();
System.out.println("Enter Number of Hours Worked");
hours = sc.nextDouble();
System.out.println("Enter Hourly Pay");
rate = sc.nextDouble();
SalaryCalc c = new SalaryCalc();
c.calPay(hours, rate);
Double Tpay = c.Rpay + c.Opay;
System.out.println();
System.out.println("Calculate Pay");
System.out.println("Employee Name: " + name);
System.out.println("Employee Regular Pay: " + c.Rpay);
System.out.println("Employee Overtime Pay: " + c.Opay);
System.out.println("Employee Total Pay: " + Tpay);
if (shift == 0) {
System.out.println("Employee PayPeriod is Friday");
} else {
System.out.println("Employee PayPeriod is Saturday");
}
//asking user if they want to continue to enter another employee data
System.out.println("Press Y to continue.Other key to exit ");
ch=sc.next();
} while (ch.equalsIgnoreCase("y"));
}
}

In: Computer Science

Backstory: General Electric Co. decided sustainability was a business opportunity rather than a cost and pushed...

Backstory: General Electric Co. decided sustainability was a business opportunity rather than a cost and pushed into the field in 2005 with its new initiative. But the products and services weren’t only for its customers they first transformed GE.

Key moves: GE began looking at sustainability as part of a demographic trend, realizing that scarcity would increase with population growth. Energy and water use, waste, carbon emissions all would decline among the most efficient and sustainable companies. GE saw a profitable business opportunity in helping companies along this sustainable path to offer environmental solutions.GE also gambled that carbon would eventually be a cost, following the implementation of previous regulatory regimes such as limiting acid rain. Although the precise way carbon would be regulated was unknown, as it still is, the company had little doubt that regulation would happen rather than wait, GE joined a climate coalition with nongovernmental organizations to press for a cap and trade system to build certainty into the future.

Within the company, GE began engaging employees to see where energy savings could be found. That might include turning off the lights when a factory was idle or even installing a switch so that lights could be turned off. Ecomagination sold solutions within GE, whether the project involved installing LED lights on a factory floor, recycling water at a nuclear facility or offering combined heat and power generation units at a plant in Australia. Within GE, managers began to be measured on how much energy savings they had achieved.

Impact: The company so far has saved $100 million from these measures and cut its greenhouse gas intensity — a measure of emissions against output — by 41%, according to the company’s sustainability report. The work inside GE became a proof of concept to external customers grappling with similar issues. Ecomagination targeted C-level executives to build this business since most problems cut across divisions (improving energy efficiency, for example). So far GE has invested $4 billion in this effort, much of it in research and development. But it reaped sales of $17 billion in 2008, up 21% from a year earlier, and is striving for $25 billion in sales in 2010.

1. Describe the 3 Strategic Management Process GE used.

2. Explain the need for integrating and the use of strategic management for GE (Give 3 examples).

3. Please list 5 examples of strategic management that GE either can use or already is using.

4. What are the strategy formulation, implementation, and evaluation activities that GE can potentially use to make its innovation better than what it is now (Give 3 recommendations)

5. If you were brought in as a consultant, what is the 1 recommendation you would make that would set GE apart from all its competition?

In: Operations Management