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, 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 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 |
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, 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.
*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 unsigned integers are stored in four bytes and that the starting address of the built-in array is at location 1002500 in memory.
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
In: Computer Science
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:
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 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 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 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