Tuesday, February 23, 2016

Eurocash has decided to develop a mutual fund comprised almost entirely of Eastern European

1.1. (TCO A) Work Breakdown Structure (WBS)
 Eurocash has decided to develop a mutual fund comprised almost entirely of Eastern European companies with a high growth potential. The process of developing a new mutual fund begins with concept development, which includes establishing a clear definition of the project's objectives that is agreed upon by senior management and developing a marketing strategy. A business analysis is then performed that includes assessments of market feasibility, internal feasibility (budgetary resource requirements), and regulatory feasibility.If the proposed fund passes the business analysis, the fund design is developed. The design process consists of product design, service design, internal review and authorization, and SEC registration (assuming a U.S. market). As the design process nears completion, generally recognized as a positive preliminary review by the SEC, employee training is performed.After completion of the employee training and final regulatory approval, the product is launched, and postlaunch reviews are conducted at predetermined intervals. Prepare a WBS for this project with activities corresponding to a two-level task and subtask hierarchy. Provide columns showing the WBS code and activities. Number and indent the WBS codes so that the level of each activity is clearly identified. (Points : 25)
2.(TCO E) Schedule Crashing
Using the network below and the additional information provided, find answers to the following questions.(a) What is the crash cost per day per activity?(b) Which activities should be crashed to meet a project deadline of 13 days at minimum cost? State the number of days you will crash each activity.(c) What is the additional cost to crash the project?Critical path = B-C-D = 14
Activity
Normal time
Normal total cost
Crash time
Crash total cost
A
5
$300
3
$380
B
3
$250
1
$330
C
6
$400
4
$700
D
5
$150
3
$250




3.(TCO E) Projects often cross many functional boundaries, with team members reporting to different functional managers. This cross-functional aspect can create problems with roles and responsibilities. You decide to use an RACI to help with this situation. Your manager is wondering why you are spending your time on this tool when you already have resources assigned to tasks in your schedule.
(a) What is an RACI? How is one constructed? (b) Why is the RACI such an effective tool for project managers? (Points : 25)

4.(TCO C) Classify the following three costs on a project you are managing as direct, indirect, or fixed costs.
Training of project team membersLabor costs associated with creating deliverablesMaterial costs associated with a number of projects in a program (Points : 25)
5. (TCO F)
Earned Value The following data were obtained from a project to design a new software package.
Activity
Duration
Predecessors
Budgeted Cost
A
3 days
--
$8,320
B
6 days
--
$11,740
C
4 days
A
$11,550
D
2 days
C and B
$7,850
E
3 days
A
$10,750
F
2 days
D and E
$8,600
At the end of Day 5, the status of the project is as follows.
Activity
% Complete
Actual Cost
A
100%
$7,200
B
50%
$6,370
C
25%
$8,250
D
0%
$0
E
80%
$8,560
F
0%
$0
(a) Calculate the cost and schedule variances and indexes (CV, SV, CPI, SPI) for Tasks A, B, C, D, and E.(b) Write a brief analysis of the status of the project at this time, including task level, project level, and critical path. (Points : 25)
6.TCO C) You are the project manager assigned to oversee the installation of an online professional development system.  This is an off the shelf package which is expected to take 120 days to complete. The total cost per day is $2,666.  After 75 days the project is 61% complete and $230,000 has been spent. What is the estimate to complete (ETC). Is the project over budget or under budget? (Points : 25)

7.TCO E) Resource Allocation and Leveling
The following data were obtained from a project to expand a school.
Activity
Duration
Predecessors
Resources/Cost
A
2 weeks
--
Two excavators/$800 day each
B
3 weeks
--
Two dump trucks/$600 day each
C
2 weeks
B
Two concrete mixers/$250 day each
D
3 weeks
A and C
Two cranes/$2,000 day each
E
2 weeks
B
One high-lift/$500 day each
F
1 weeks
B
Two excavators/$800 day each
G
3 weeks
F
Two cranes/$2,000 day each
 The contractor has access to the listed quantity of machines of each type available at the listed cost. The operations cannot be split. Additional equipment can be rented at a 50% cost premium if needed.(a) Identify any resource conflicts in the above project. State the activities involved, the time frame of the conflict(s), the resources in conflict, and the quantity of resources involved.(b) What is the least-cost method of resolving the conflict(s), assuming the project duration must not be extended? What additional cost, if any, will be incurred? (Points : 25)

8.(TCO D) Change control is critical to a successful project. Describe how a good change control process functions to control changes on a project. (Points : 25)

9.TCO G) Your project is progressing well in your estimation. Your team has collected the following data. From these data, calculate the project’s ETC.
Activity A is 60% complete at a cost so far of $50,000. It was estimated to cost $200,000 when finished. It is at the end of Week 3 of 5. Activity B is 85% complete at a cost so far of $150,000. It was estimated to cost $80,000 when finished. It is at the end of Week 4 of 5. Activity C is complete at a cost so far of $110,000. It was estimated to cost $100,000 when finished. Assume spending will continue at the same rate. (Points : 25)

10. (TCO B) You are the project manager for three different projects.
 Project A: This project is behind schedule by 12 weeks. It was to have been completed in 3 months. The sponsor has additional funds to help complete the project on time if needed but does not want to increase risk to the project. Project B: This project is scheduled to take 27 weeks to complete. You are in the planning stage of the project. You need to reduce the schedule for this project by 8 weeks. This project has a number of predecessors that were created by the project team’s preference. The sponsor insists on having all the work done on time without unduly increasing risk or costs to the project. Project C: This project is in the execution stage of the project. It is behind schedule by 6 weeks; it was scheduled to be completed in 10 weeks. The sponsor is desperate to accomplish something on this project. The budget is limited to the original amount, and all soft predecessors have already been removed.  For each of the projects above, choose an appropriate schedule compression technique. Explain your choice. (Points : 25)
No comments

paper on the period from the Progressive Era through the Great Depression

Write a four to five (4-5) page paper on the period from the Progressive Era through the Great Depression. Your paper should cover the following: Identify at least (2) two major historical turning points in the period under discussion. Analyze the impact of the two (2) or more major historical turning points selected on America’s current society, economy, politics, and culture. Speculate as to why women earned the right to vote in the frontier states of the West before eastern and southern states. Describe at least two (2) pieces of legislation in the Roosevelt–Taft–Wilson progressive era years that have influenced the conduct of business to this day and what that influence has been. Explain the role that the Spanish American War played in America’s development of an Empire. Explain at least two (2) ways in which the boom and bust of the Roaring Twenties followed by the Great Depression affected the federal government’s involvement in the national economy. Include at least two (2) references (sources) other than the textbook. At least one (1) of your sources must be obtained from the collection of databases accessible from the Learning Resources Center Web page. Generic encyclopedic Internet resources such as Wikipedia or Answers.com will not be considered acceptable. No comments

Create a Patient class for the Wrightstown Hospital Billing Department

Create a Patient class for the Wrightstown Hospital Billing Department. Include a patient ID number, name, age, and amount due to the hospital. Include properties and any other methods you need. Override the ToString() method to return all the details for a patient. Write an application that prompts the user for data for five Patients. Sort them in patient ID number order and display them all, including a total amount owed.

Save the program as PatientDemo.cs.

Using the Patient class as a base, derive an Insured Patient class. An Insured Patient contains all the data of a Patient, plus fields to hold an insurance company name, and the percentage of the hospital bill the insurance company will pay. Insurance payments are based on the following table:

Insurance Company

Portion of bill paid by insurance (%)

Wrightstown Mutual 80 Red Umbrella 60 All other companies 25

Create an array of five Insured Patient objects. Create a program that justifies the following: •Prompts the user for all the patient data, plus the name of the insurance company; the insurance company set accessor determines the percentage paid. •Overrides the parent class ToString() method to include the name of the insurance company, the percent paid, and the amount due after the insurance has been applied to the bill. •Sorts all the records in ID number order and displays them with a total amount due from all insured patients.

Save the program as PatientDemo2.cs.

Write an application that uses an extension method for the Patient class. The method computes and returns a Patient's quarterly insurance payment (one-fourth of the annual premium). The application should allow the user to enter data for five Patients and then display all the Patient data for each, including the quarterly payment.

Save the program as PatientDemo3.cs.

Embed the programs in a Microsoft Word document.

Cite any sources in APA format on a separate page.
No comments

After viewing the Chinese Imports & Food Safety Video, consider whether U.S. retailers that utilize products or raw

After viewing the Chinese Imports & Food Safety Video, consider whether U.S. retailers that utilize products or raw ingredients that are imported from China and that are poorly regulated should be liable in tort for injuries to consumers who are harmed by those products. Answer parts 1 and 2 of the following question:
1. Answer part a or part b
a. If U.S. companies should not be liable, then they could be legally exempt from tort liability. Discuss the consequences of such a policy to U.S. consumers.
b. If the U.S. companies should be liable, then those companies would not be legally exempt from tort liability. Discuss the consequences of such a policy to U.S. businesses.
No comments

Economics is about allocation of limited resources to their best use

Economics is about allocation of limited resources to their best use. Similar to the rest of economy, healthcare sector must follow certain criteria in allocating limited resources (inputs) such as hospital services, pharma, RN services, physician services etc. to production of medical care. Explain why in economic thinking, we are concerned about ‘marginal’ or ‘incremental’ contribution of input(s) to output and not ‘total’ contribution of inputs. Also discuss the economic law the captures the logic for tracing ‘marginal’ input contribution to output. No comments

Analyze two (2) procurement methods. Suggest whether the methods in question are more valuable in either securing a quick savings or creating a long term strategy for government procurement. Provide a rationale for your response.

Analyze two (2) procurement methods. Suggest whether the methods in question are more valuable in either securing a quick savings or creating a long term strategy for government procurement. Provide a rationale for your response.
Compare and contrast the relative values of the fixed price contract versus the Multiple Award Schedule (MAS) contract. Provide one (1) example of each contract type in use, and, with the examples, elaborate upon the essential manner in which risk of loss is reduced.
No comments

Discuss the four main elements needed to bring an innovative idea to the marketplace

 Discuss the four main elements needed to bring an innovative  idea to the marketplace.
 What are then some of the difficulties facing  successful innovation?
Global Expansions  Questions:
 Are there different ethical risks an entrepreneur faces if entering a market in a developed country as compared to a market in an undeveloped country?
Identify those ethical risks.
What recommendations would you make to such an entrepreneur about ethical risks?
No comments

Beginning WIP inventory is 15,500 units, 75% complete for materials

Beginning WIP inventory is 15,500 units, 75% complete for materials. During the month, 90,000 units were started; 87,000 were finished; and ending WIP was 18,500 units that were 50% complete for materials.
1) How many equivalent units should be used to allocate costs for materials? (Assume that the weighted average method )
Question #2 During a period, 38,200 units were completed and 4,200 units were in ending WIP inventory. Ending WIP was 75% complete for direct materials and 50% complete for conversion costs.
2) What are the equivalent units for direct materials?
3) What are the equivalent units for conversion costs?
No comments

Determining Profit or Loss from an Investment. Three years ago, you purchased 150 shares of IBM stock for $88 a share

1.  Determining Profit or Loss from an Investment.  Three years ago, you purchased 150 shares of IBM stock for $88 a share.  Today, you sold your IBM stock for $103 a share.  For this problem, ignore commissions that would be charged to buy and sell your IBM shares.
a.  What is the amount of profit you earned on each share of IBM stock?
b.  What is the total amount of profit for your IBM investment?

2.  Calculating Rate of Return. Assume that at the beginning of the year, you purchase an investment for $8,000 that pays $100 annual income. Also assume the investment’s value has decreased to $7,400 by the end of the year.
a.         What is the rate of return for this investment?
b.         Is the rate of return a positive or negative number?

3.  Calculating Earnings Per Share, Price-Earnings Ratio, and Book Value. As a stockholder in Bozo Oil Company, you receive its annual report. In the financial statements, the firm has reported assets of $9 million, liabilities of $5 million, after-tax earnings of $2 million, and 750,000 outstanding shares of common stock.
a.         Calculate the earnings per share of Bozo Oil’s common stock.                      
b.         Assuming that a share of Bozo Oil’s common stock has a market value of $40, what is the firm’s price-earnings ratio?              
c.         Calculate the book value of a share of Bozo Oil’s common stock.    

4.  Determining Interest and Approximate Bond Value. Assume that three years ago, you purchased a corporate bond that pays 9.5 percent. The purchase price was $1,000. Also assume that three years     after your bond investment, comparable bonds are paying 8 percent.
a.         What is the annual dollar amount of interest that you will receive from your bond investment?
b.         Assuming that comparable bonds are paying 8 percent, what is the approximate dollar price for which you could sell your bond?
c.         In your own words, explain why your bond increased or decreased in value.
           
5.   Using Margin. Bill Campbell invested $4,000 and borrowed $4,000 to purchase shares in Wal-Mart. At the time of investment, Wal-Mart was selling for $45 a share.
a.         If Bill paid $30 commission, how many shares could Bill buy if he used only his own money and did not use margin?          
b.         If Bill paid $50 commission, how many shares could Bill buy if he used his $4,000 and borrowed $4,000 on margin to buy Wal-Mart stock?          
c.         Assuming that Bill did use margin, paid $90 commission to sell his stock, and sold his Wal-Mart stock for $53, how much profit did he make on his Wal-Mart investment?
           

6.    Calculating yields. Assume you purchased a corporate bond at its current market price of $850 on January 2, 2002. It pays 9 percent interest and it will mature on December 31, 2011, at which time the corporation will pay you the face value of $1,000.
a.         Determine the current yield on your bond investment at the time of purchase.
b.         Determine the yield to maturity on your bond investment.
No comments

You are playing Texas Hold’em against one other opponent

You are playing Texas Hold’em against one other opponent.
•           Your two down cards are 6 of (diamonds) & 7 of (diamonds).
•           The first three cards to come up are 3 of (diamonds), 4♣ 9♠.
•           The next card to come up is 10 of (diamonds).
You and your opponent have both already bet $24,000 into the pot each. Your opponent now adds $10,000 to the pot. You only have $10,000 left in total.
While you consider what to do, your opponent, in an effort to rattle you, reveals his down cards. They are 10♣ 10♠.
The Problem
Should you call his bet by tossing the rest of your money into the pot, or should you fold and give up the pot to your opponent?

Remember your opponent has at least a pair of 10s. What cards could come up to make your hand better? What could come up to make your opponent’s hand better? Is there any way you could tie each other? Also look at the expected value of the game. If you fold, you are assured a loss of $24,000. Make sure this fact is used in your analysis.
Write a 1-2 page paper in which you:
1.         Explain your strategy for solving the problem.
2.         Explain why your strategy will work.
3.         Execute your strategy showing your mathematical work.
4.         Draw conclusions from your work.
No comments

Assume that you recently graduated with a major in finance and that you just landed a job as a financial planner

Assume that you recently graduated with a major in finance and that you just landed a job as a financial planner with Barney Smith Inc., a large financial services corporation. Your first assignment is to invest $100,000 for a client. Because the funds are to be invested in a new business that the client plans to start at the end of 1 year, you have been instructed to plan for a one year holding period. Further, your boss has restricted you to the investment alternatives shown in the table below. (Disregard for not the items at the bottom of the data: you will fill in the blanks later.)
Barney Smith’s economic forecasting staff has developed probability estimates for the state of the economy, and its security analysts have developed a sophisticated computer program that was used to estimate the rate of return on each alternative under each state of the economy. Alta Industries is an electronics firm; Repo Men Inc. collects past-due debts; and American Foam manufactures mattresses and various other foam products. Barney Smith also maintains an “index fund” that owns a market-weighted fraction of all publicly traded stocks; you can invest in that fund and thus obtain average stock market results. Given the situation as described, answer the following questions.
No comments

In a city in Italy, 30% of the families have a MasterCard, 20% have an American Express card

In a city in Italy, 30% of the families have a MasterCard, 20% have an American Express card, and 25% have a Visa card. Eight percent of families have both a MasterCard and an American Express card. Twelve percent have both a Visa Card and a MasterCard. Six percent have both an American Express card and a Visa card.
a.  What is the probability of selecting a family that has either a Visa card or an American Express card?
b.  If a family has a MasterCard, what is the probability that it has a Visa card?
c.  If a family has a Visa card, what is the probability it has a MasterCard?
Show all work.
Question # 2
A National study has determined that people who work full time average 43.4 hours worked per week.

Assume that the number of hours worked per week for those who work full time is normally distributed. Suppose 12% of these workers work more than 48 hours. Based on this percentage, what is the standard deviation of number of hours worked per week for those workers?
No comments

A firm has five identified capital projects they could fund in the upcoming year

 A firm has five identified capital projects they could fund in the upcoming year. Each project has a initial capital cost of $5,000,000, however the firm only has $15,000,000 allocated for capital projects in the current year. The company needs to decide which projects to fund. The firms initial cost of capital (discount rate) is 8%.
Cash Flows ($ in thousands) Projects A B C D E Year 1 $1,100 $6,000 -- $1,000 $500 2 $1,100 -- $1,000 $2,500 $1,500 3 $1,100 -- $2,000 $3,500 $3,000 4 $1,100 -- $3,000 $2,750 $3,500 5 $1,100 -- $2,200 $1,000 $4,500
1. What is the net present value of each investment? 2. According to the net present values, which investment(s) should the firm make? Why? 3. What is the internal rate of return on each investment? 4. According to the internal rates of return, which investment(s) should the firm make? Why? 5. Using the simple payback method which investments should they choose? 6. If the firm could reinvest the $3,600,000 earned in year 1 from investment B at 10 percent, what effect would that information have on your what the return would be on the investment? 7. If the firm’s cost of capital had been 11 percent, what would be NPV of the investments alternatives? What would be the IRR for the investment projects?
No comments

There are a number of companies that utilize a global supply chain management strategy

There are a number of companies that utilize a global supply chain management strategy. Identify and research a company with a successful global supply chain management strategy and provide basic background information. Discuss the strategies this company utilizes to get their product(s) distributed internationally and how they address risks and meet business demands.
Submit to your instructor your two to three page (not including title and reference pages). Your paper should be formatted according to APA style as outlined in the approved APA style guide, and should cite at least two scholarly sources in addition to the textbook.
Carefully review the Grading Rubric for the criteria that will be used to evaluate your assignment.

No comments

A Financial History of The World Video from Harvard Economic Historian

The Ascent of Money: A Financial History of The World Video from Harvard Economic Historian (Brit) Niall Ferguson. The Ascent of Money: A Financial History of The World by Niall Ferguson Epsd. 1-5 (Full Documentary) 4 hours total- Please watch (first 35 minutes) (Filmed on location in Italy, Great Britain, and throughout the world!)-(includes origins of banking
YouTube URL: (first 35 minutes) https://www.youtube.com/watch?v=fsrtB5lp60s

Please write about 5 paragraphs discussing this series.(first 35 minutes) In addition to provide full answers for these numbered questions:

Where and how exactly does Prof. Ferguson describe how the word “bank” come into being.

How does the operations of the Medici family bank sound similar to the Rothshchild family bank?

What can we learn from this part of the series for today’s economics? In other words, what economic and political similarities do we have in today’s economic world?
No comments

Thursday, February 18, 2016

Crafting a Compensation and Benefits Plan

Crafting a Compensation and Benefits Plan
Now that you have considered how to recruit and retain the employees you want in your organization, create a compensation and benefits package using this business proposal format. The package must be consistent with the objectives of job satisfaction for the valuable employees in an organization of your design.
The compensation package must include the following: • Compare and contrast salary and benefit packages of at least three comparable organizations in the same industry. • Examine what 21st-century employees consider to be benefits (see this week's recommended readings for a start). • Consider what helps to keep employees engaged in their work (see State of the American Workplace: Employee Engagement Insights for U.S. Business Leaders and Surprising, Disturbing Facts From the Mother of All Employee Engagement Surveys for some ideas). Your business proposal must be formatted according to APA style as outlined in the Ashford Writing Center. The proposal must be between three to five pages in length (not including the title and references pages) and must include citations and references for at least six sources (including the text and at least four other scholarly sources, one of which must be from the Ashford University Library).
No comments

Write a do-while loop that asks the user to enter two numbers

Write a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The user should be asked if he or she wishes to perform the operation again. If so, the loop should repeat; otherwise it should terminate. I need the explanation of how to do this and the answer please. No comments

To use functions with parameters and a menu, introducing the technique of stepwise refinement

Objective:
To use functions with parameters and a menu, introducing the technique of stepwise refinement.
c   [the already written in Lab 10] greatest-common-factor code is made into a function for use in reducing fractions and finding the common denominator to add/subtract fractions.
c   there should be a separate function for each operation
c   there should be a function for outputting the problem/solution/reduced fraction
c   error checking (Hint: think about where all the errors could come from)
Assignment:
Write a menu-driven program that manipulates fractions.  Using the idea of stepwise refinement, you should write a function for each arithmetic operation.  This is “stepwise” because we are breaking the problem into more manageable pieces and dealing with each in turn.  Additionally, you should have a function that will get a fraction and check its validity (i.e., denominator not equal to zero).
Your program should ask the user to input two fractions and to select an operation (+, -, *, /).  Then, it should display the problem along with the solution.  The program should recognize division by zero and print an appropriate error message.  It should loop around until the user chooses to quit.
Test your program with positive and negative fractions and with zeroes.
Reduce all answers.  Displaying the reduced fraction only if different from the original.  Do not leave a fraction with denominator of 1.
Sample Run:

Enter the numerator and denominator of the first fraction:  5 6
Enter the numerator and denominator of the second fraction: 1 3

Menu of Operations
Add...................1
Subtract..............2
Multiply..............3
Divide................4

Which operation? 2

5    1    3    1
---  -  ---  =  ---  =  ---
6    3    6    2

Another problem (y for yes, n for no)? n



Lab 13
Stars
Objective
To explore nested for loops and the use of the index variable.
Assignment
Read the following code carefully.  In the box, write out what you predict the output will be.
#include <iostream>
using namespace std;
     



int main()
{
 int row, col;
 cout << endl;
 for(row = 0; row < 5; row++)
 {
   for(col = row; col >= 0; col --)
  cout << "*";
   cout << endl;
 }
 return 0;
}

Type in and run the code to see if you were right.
Now, write a C++ program that will generate the following patterns.  Note that you must use for loops and may not use any if statements! Each of the designs should be implemented in a separate function or functions.  This needs to work for any size grid and each generated pattern should have the same number of rows.
*******
******
*****
****
***
**
*

  *
**
***
  ****
 *****
******
*******

  *
***
*****
  *******
 *********
***********
*************
For the final pattern, you may use if statements, but you may not simply output the text of the pattern using cout.  This pattern should be generated by a function and have the same number of rows as the previous patterns.
*******
**   **  (Note: This pattern is
* * * *   a square.)
*  *  *
* * * *
**   **
*******
Make sure each function accepts a single integer parameter N and draw your patterns to a height of N rows.
Lab 14
Miniature Golf
Objective:
To gain more experience with one-dimensional arrays of fixed length.
Assignment:
Write a program, containing 3 functions, that asks the user for the number of strokes taken on each hole of an 18-hole miniature golf course, calculates the final score, and prints out a scorecard.  Also state how many holes-in-one the player had.

Remember when you pass your array it is a reference parameter, even if you are not changing its contents.  Just be careful that you are not accidentally making any modifications.

Output for scorecard should look just like what you see below, with proper spacing and alignment.

Sample Run:

Enter name of player: Dylan
Enter the number of strokes for each hole.
 hole[1]: 3
 hole[2]: 1
:
 hole[18]: 5

Dylan, here is your scorecard:
Hole :  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18
------------------------------------------------------------
Score:  3  1  6  4  2  3  3  1  2  4  5  3  2  2  2  3  4  5

Your total is 55.
You scored 2 holes-in-one.

Hint:
The field width manipulator setw (found in the header file iomanip) will right-justify the number that follows in a field 3 characters wide.

No comments

Mastermind is a game requiring skill and analytical thinking

Mastermind is a game requiring skill and analytical thinking.  Normally, Mastermind includes a board and different colored pegs lined up in a particular order.  In this version, the computer will randomly place four numbers (chosen from the numerals 1–6, allowing duplication) in a one-dimensional array and then ask the player to input four numbers until all four numbers are correctly guessed in the right order.
Of course, you will have to make sure the computer helps the player along a bit.  After the player inputs a guess, the computer should analyze it and tell the player (a) how many of his or her guessed digits were correct, but in the wrong place, and (b) how many of the guessed digits were correct and in the right place.  This can be done by using functions that compare the guess with the actual array of integers, looking for matches.
Remember the minimum requirement is two functions other than main.  Each function should perform a single task.

Sample Run:

Welcome to Mastermind

Please enter your four numerical guesses (space separated): 2 4 3 1

You have 2 correct number and 1 correct location.

Please enter your four numerical guesses (space separated): 4 5 3 2

Correct!

You are a MasterMind!


Hint:
When you are comparing the actual numbers to the user’s guesses, it may be easiest to use a copy of the array containing the user’s guesses.  Then, each time you find a match (either exact or in the wrong location), change that guess to a –1.  This way, you won’t end up counting a single guess more than once.
Lab 16
Extra Additives
Objective:
To reinforce skills in defining and manipulating arrays,with the vector class.
Computers store decimal numbers in binary form to conserve memory.  Even though this allows a greater range of values, the largest integer value in many systems is 32,767 and long integers, the largest value is less than 2.2 billion.

Your task is to write a program, using a minimum of three functions that input pairs of numbers between 0 and 100 billion, inclusive.  You should then add these numbers together and print the results.

Input:

The input will only consist of digit characters (‘0’ . . ‘9’).  No commas or other punctuation will be in the data.  All values will be non-negative.  Since the integers may exceed any binary integer value allowed in the system, we shall read in the values as a string and convert each integer character to its corresponding integer digit and store it in an integer array.

Output:

Your program should print out the results of the addition.  Do not print any leading zeros before any answer.  Put a loop in your program to run it four times.

Examples:
Input:
Output:
124235
7453
325235
0
23523
100000000000
326346124
76434124235
The sum is: 131688

The sum is: 325235

The sum is: 100000023523

The sum is: 76760470359


Use the declarations at right to store your digits.
vector<int> largeInt1 (12,0); // initialize to zero
vector<int> largeInt2 (12,0); // initialize to zero
vector<int> finalInt (13,0);   // initialize to zero


To convert digit characters to digit integers you may use this function.

int asciiToInt (char ch)
{
 return (ch – ‘0’);
}
No comments

Society will probably never be without crime

Society will probably never be without crime. Crime affects everyone, either directly or indirectly. As professionals, you need to be aware of your own prejudices, biases, and personal values. Perhaps there were times throughout the course when you were struck by a particular crime report. Perhaps information you learned in the course changed the way you view offenders or victims. At the end of the course, you have an opportunity to reflect on what you have learned and how this new information will shape you, professionally and personally.
Reflect on all your readings and assignments in this course and address the following:
How will you apply the principles you have learned in this course in your professional career? Give specific examples. Which assignments caused you to confront your own personal values and biases? What did you learn from the experience? Write your initial response in 2–3 paragraphs. Apply APA standards to citation of sources.
No comments