A+ Answers of the following Questions

profileThehonest
 (Not rated)
 (Not rated)
Chat

FROM YAHOO FINANCE WEBSITE
1. What is the current stock price of Visa? (date your analysis)

2. What is their trailing (ttm) EPS?

3. What is the consensual estimate for their next fiscal year end EPS? (hint: Look under Analyst Estimates in Yahoo Finance.)

4. What is the consensual 5-year growth rate for their earnings?

5. Compute trailing PE ratio, forward PE ratio, and PEG ratio. Show your computations. Compare your numbers to the numbers in Yahoo Finance.

6. Pick a comparable company that can serve as a benchmark for your P/E analysis. (I’d suggest picking the better match from their natural rivals MasterCard INC. (MA) or American Express (AXA)) . Indicate which company you choose for benchmark. Calculate and report the trailing PE ratio, forward PE ratio, and PEG ratio for your benchmark.

7. Does Visa appear to be overvalued or undervalued relative to the benchmark stock, based on the three different measures?

8. List two to three reasons why the PE ratio analysis is problematic. Support your argument with examples based on the numbers for Visa and your benchmark company.

9. An alternative approach to compute a price for Visa will be to use the dividend discount model. What was the annual growth rate of the dividends of Visa over the last year – 2012 to 2013? Over the last five years 2008 to 2013? (hint: Look at the “Historical Prices”> “Dividends Only” page in Yahoo Finance.)

10. Can we use this growth rate to compute a “fair” price for Visa using the constant growth dividend model? If not, why not?


1.Write the C statement required to declare the variable balance which is going to be used to store a money value.

2.Write only one C statement that declares the variable LastName and sets its initial value to J.

3.Provide the values of a and b at the various points (right after each instruction is executed) in this program segment.

4.Declare the constant e = 2.72 to be used within a C program.

5.Mark as correct (C) or incorrect (I) in the blank the following comment statements.

6.In order to get the following output in the screen:
I am 25 years old
My last name initial is M
complete the printf statements using the declared variables in the following program segment:

7.Write only one printf statement to get the same output as question # 6.

8. Complete the program segment below.
char grade;
printf(“Enter your final grade letter for ELTR-310\n”);

9.Complete the program segment below:
int age;
printf(“Please enter your age: \n”);
scanf(“%d”, &age);

10.Complete the following program segment such that it prints out odd numbers from 1 to 199 and then prints “Done”.

1.  (8 points)  If the IQ scores are normally distributed with a mean of 100 and a standard deviation of 15.
(a) (3 pts) Find the probability that a randomly selected person has an IQ score between 88 and 112. (Show work)
(b) (2 pts) If 100 people are randomly selected, what is the standard deviation of the sample mean IQ score. (Show work)
(c) (3 pts) If 100 people are randomly selected, find the probability that their mean IQ score is greater than 103. (Show work)

 2.  (8 points)  Imagine you are in a game show.  There are 4 prizes hidden on a game board with 16 spaces.  One prize is worth $4000, another is worth $1500, and two are worth $1000.  You have to pay $50 to the host if your choice is not correct. 
(a) (6 pts) What is your expected winning in this game? (Show work)
(b) (2 pts) If you are offered a sure prize of $400 in cash, and you can just take the money without playing the game. What would be your choice? Take the money and run, or play the game? Please explain your decision.

3.  (7 points)  Mimi just started her tennis class three weeks ago. On average, she is able to return 15% of her opponent’s serves.  If her opponent serves 10 times, please answer the following questions:
(a) (5 pts) What is the probability that she returns at most 2 of the 10 serves from her opponent? (Show work)
(b)(2 pts) How many serves can she expect to return? (Hint : What is the expected value?)  (Show work)

4.  (4 points) Men’s heights are normally distributed with mean 69.0 inches and standard deviation 2.8 inches. Mimi is designing a plane with a height that allows 95% of the men to stand straight without bending in the plane.  What is the minimum height of the plane? (Show work)

 5.  (6 points)  There are 7 seniors and 3 juniors in the statistics club, and a team of 5 will be randomly selected to attend the Joint Statistical Meetings in Montréal.
(a)  What is the probability that all 3 juniors are picked in this team of 5? (Show work)
(b) What is the probability that none of the juniors are picked in this team of 5? (Show work)
(c) What is the probability that 2 of the juniors are picked in this team of 5? (Show work)

6.  (4 points)  There is a 1% delinquency rate for consumers with credit rating scores above 800. If UMUC Credit Union provides large loans to 10 people with credit rating scores above 800, what is the probability that at least one of them become delinquent? (Show work)

7.  (3 points) A telemarketing company has two customer service teams. Team A has 20 agents and Team B has 30 agents. 10 agents in Team A and 20 agents in Team B contact customers via e-mails, and the rest contact customers via phone.  Find the probability of getting someone who is from Team A, given that the selected person uses phone to contact customers.  (Show work)


1. It wouldn't have been possible to build a building such as London's CrystalPalace in the eighteenth century because
A. iron hadn't yet been developed as a building material.
B. appropriate glass-making techniques were not yet known.
C. innovative building techniques weren't encouraged before 1850.
D. advanced structural construction methods were unknown.
 
2. Which of the following sequences of architectural features is in the correct chronological order of development?
A. Post and lintel construction, groin vault, pointed arch
B. Frame construction, barrel vault, groin vault
C. Pointed arch, steel frame construction, frame construction
D. Pointed arch, barrel vault, cast-iron construction
 
3. An example of sculptural carving would be
A. Rodin's Walking Man.
B. Unkei's Kongorikishi.
C. Jenny Holzer's Untitled.
D. David Smith's Cubi.
 
4. The most preferred surface in lithography is
A. limestone.
B. granite.
C. marble.
D. lead.
 
5. Like the decorative arts and design, architecture is meant to be useful. Like sculpture, architecture
A. must be seen from multiple perspectives to be appreciated.
B. is generally thought to be less "pure" than the decorative arts.
C. is usually thought to be as "pure" as painting.
D. is most successful when it's two dimensional.
 
6. Which of the following is not a concern of the Tibetan monks from the Drepung Loseling Monastery who, during an eight-day empowerment ritual, create a sand mandala?
A. The process of artistic creation
B. The use to which the finished work is put
C. The pattern of the mandala
D. The preservation of the completed work
 
7. The oldest form of intaglio printmaking is called
A. engraving.
B. wood.
C. relief printmaking.
D. lithograph.
 
8. If you were to spend a week in Athens visiting the major architectural achievements of the ancient Greeks, which type of column would you see the least number of during your stay there?
A. Doric
B. Ionic
C. Capital
D. Corinthian
 
9. Why must artists who work with charcoal choose their paper carefully?
A. The texture of the paper becomes part of the design.
B. The paper affects the color of the charcoal.
C. They want the paper to show authenticity.
D. They appreciate the richness of expensive paper.
 
10. Which of the following artists was not involved in the creation of Saint Peter's Basilica and the Vatican?
A. Michelangelo
B. Carlo Maderno
C. Giacomo della Porta
D. Leonardo da Vinci
 
11. The part of the camera used to see what the artist would see is called the
A. shutter.
B. viewfinder.
C. aperture.
D. film.
 
12. _______ is the artist who invented the mobile.
A. Robert Smithson
B. Joseph Beuys
C. Alexander Calder
D. Jean Tinguely
 
13. If Gianlorenzo Bernini's Apollo and Daphne were to be moved from the Galleria Borghese in Rome where it now stands into the Ufizzi Gallery, the most ideal place to install it would be
A. on the west wall of a gallery with other Renaissance marbles.
B. on the east wall of a gallery with other Renaissance marbles.
C. in the center of a gallery.
D. anywhere in a gallery, provided it was with other sixteenth-century marble statues.
 
14. When the painter combines color pigment with water and brushes it directly on wet plaster, the technique is called
A. oil paint.
B. gouache.
C. fresco.
D. tempera paint.
 
15. Stiff, thick paint that reveals brushstrokes is called
A. gouache.
B. impasto.
C. tempera.
D. glaze.
 
16. Modern Chinese and Japanese artists model the centuries-old brush techniques after those of
A. Zhan Wang.
B. Wu Chen.
C. Maya Ying Lin.
D. Daguerre.
 
17. In which of the following buildings are there no arches?
A. The entrances to the Colosseum in Rome
B. Amiens Cathedral
C. Nave of Sainte-Madeleine
D. Taos Pueblo
 
18. Which artist used memories of his or her childhood in North Carolina to create a collage?
A. William Hogarth
B. Romare Bearden
C. Kiki Smith
D. Barbara Kruger
 
19. In his or her work, which artist used unusual materials, such as chocolate, peanut butter and jelly, and ketchup?
A. J. M. W. Turner
B. Jackson Pollock
C. Vik Muniz
D. Elizabeth Murray
 
20. How to Explain Pictures to a Dead Hare is an example of
A. environmental art.
B. earth art.
C. mixed-media installation.
D. performance art.

Question 1 (Design Patterns)

1. The template method pattern and the strategy pattern both abstract some computation in the form of methods.  What defining characteristic distinguishes the template method pattern from the strategy pattern? Explain your answer.                                

Question 2 (Concurrency)

2. Consider the following class definition.  This class is considered to be in an inconsistent state if the is Consistent () method returns false;

Public class Foo {

long mvalue ;

long mValueTimesTwo ;

/ * *

*   S e t s  t h e   s t a t e   o f o u r  o b j e c t .

*

*   P a u s e s  b r i e f l y   b e t w e e n   s e t t i n g   t h e   f i r s t a n d   s e c o n d

*   v a l u e s  i n   o r d e r t o   i n c r e a s e   t h e   p r o b a b i l i t y   t h a t t h e

*   o b j e c t w i l l b e   i n t e r r o g a t e d   w h i l e   i n   a n   i n c o n s i s t e n t

*   s t a t e .

*

*   @ p a r a Error! Hyperlink reference not valid.

* /

public synchronized  void setValues ( long pValue ) {

mValue = pValue ;

doPause (3);

mValueTimesTwo  = pValue * 2;

}

/ * *

*   C h e c k s  t o   s e e   i f t h e   c u r r e n t s t a t e   o f o u r  o b j e c t i s

*   c o n s i s t e n t .

*

*   @ r e t u r Error! Hyperlink reference not valid.

* /

public synchronized  boolean isConsistent () {

return ( mValue * 2 == mValueTimesTwo );

}

/ * *

*   U t i l i t y   r o u t i n e   - p a u s e s  o u r  t h r e a d   b y   c a l l i n g

*   s l e e p   a n d   s u p r e s s i n g   a n y   I n t e r r u p t e d E x c e p t i o n .

* /

private static void doPause ( long pPause ) {

try {

Thread . sleep ( pPause );

} catch ( InterruptedException  e) {

e. printStackTrace ();

}

}

Imagine  a hypothetical version  of Java  where the  object lock is replaced  by a method lock.  Under  this  system  a call to a synchronised  method  would assign a lock for that method  to  the  calling  thread.  No other  thread  could  then  call this  method  because the  lock is already  allocated.   However,  other  methods  of the  same  object  could  still be called.  Upon the  method  completing,  the  lock is released.  Under  this  system,  is it possible to put an instance  of the Foo class into an inconsistant state?  If so, give a code example  which could create  this  situation and  explain  how it does so.  If not,  explain how the method  lock prevents  the possibility  of inconsistent state. [7 marks]

b. Provide  one  possible  motivation for choosing  this  hypothetical method  lock over  an object lock. Explain  your answer

Question 3 (Generics, 15  marks)

Consider  the following interface  definition

/ * *

*   T h i s  i s  a n   i n t e r f a c e   w h i c h   a b s t r a c t s  t h e   c o n c e p t o f  a

*   f u n c t i o n .  T h e   i n t e r f a c e   h a s  m e t h o d s  f o r a   n u m b e r  o f

*   p o s s i b l e   f u n c t i o n   c a l l s t y l e s .

*

*   @ p a r a Error! Hyperlink reference not valid.

* * /

public interface Functions <T> {

/ * *

*   A    f u n c t i o n   w h i c h   d o e s  n o t r e t u r n   a   v a l u e

*

*   @ p a r a Error! Hyperlink reference not valid.

* * /

public abstract void doIt (T in );

/ * *

*   A    f u n c t i o n   w h i c h   t u r n s  a   T  i n t o   a n   i n t e g e r

*

*   @ p a r a Error! Hyperlink reference not valid.

* * /

public abstract int calculate (T in );

/ * *

*   A    f u n c t i o n   w h i c h   t u r n s  a   T  i n t o   a n   S t r i n g

*

*   @ p a r a Error! Hyperlink reference not valid.

* * /

public abstract String show (T in );

/ * *

*   A    f u n c t i o n   w h i c h   c r e a t e s  a   T  b a s e d   o n   a n   i n t e g e r

*

*   @ p a r a Error! Hyperlink reference not valid.

* * /

public abstract T generate ( int in );

/ * *

*   T h i s  f u n c t i o n , c a l l e d   " t r a n s f o r m "  r e t u r n s  a   v a l u e   o f t h e   s a m e   t y p e

*   a s  t h e   p a r a m e t e r  i t w a s  g i v e n

*   @ p a r a Error! Hyperlink reference not valid.

*   @ r e t u r Error! Hyperlink reference not valid.

* * /

/ / F I X M E : W r i t e   t h i s  m e t h o d   s i g n a t u r e

}

This interface  is part  of an implementation of a design pattern. Which  design pattern is it from?  Give the standard class diagram  for the pattern and identify  which part  of the pattern is being implemented with the above interface. [6 marks]

b.  How does this instance  of the pattern differ from the standard version?  [2 marks]

c. The  final method  signature  has  been  left  out.   Write  what  you  think  that signature should be.                                                                                                           [7 marks]

Question 4 (Refactoring)

Consider the following class definition.  It is not necessary that you know anything  about  the system from which this class was taken,  nor is it necessary to know anything  about  the classes Expr, Number or Boolean.

public class Infer <T> {

Expr <T> expr ;

public Infer (Expr <T> e){

expr = e;}

/ * *

*   @ p a r a Error! Hyperlink reference not valid.

*   0   i s  s i m p l e   i n f e r e n c e , 1   i s  p o l y m o r p h i c   i n f e r e n c e ,

*   2   i s  e x p l i c i t i n f e r e n c e .

* * /

public boolean doInference ( int inferenceType ){

if ( inferenceType  == 0)

if ( expr . isVal ())

if ( expr . isDefined ())

return true ;

else

return false ;

else if ( expr . isPlus ()){

return ( new Infer < Number >( expr . left )). doInference ( inferenceType )

&& ( new Infer < Number >( expr . right )). doInference ( inferenceType );

}

else if ( expr . isMinus ()){

return ( new Infer < Number >( expr . left )). doInference ( inferenceType )

&& ( new Infer < Number >( expr . right )). doInference ( inferenceType );

}

else if( expr . isAnd ()){

return ( new Infer < Boolean >( expr . left )). doInference ( inferenceType )

&& ( new Infer < Boolean >( expr . right )). doInference ( inferenceType );

}

else if( inferenceType  == 1)

                   if ( expr .   isVal ())

        if ( expr. isDefined())

return false ;

else

return true ;

else if ( expr . isPlus ()){

return ( new Infer < Number >( expr . left )). doInference ( inferenceType )

&& ( new Infer < Number >( expr . right )). doInference ( inferenceType );

}

else if ( expr . isMinus ()){

return ( new Infer < Number >( expr . left )). doInference ( inferenceType )

&& ( new Infer < Number >( expr . right )). doInference ( inferenceType );

}

else if( expr . isAnd ()){

return ( new Infer < Boolean >( expr . left )). doInference ( inferenceType )

&& ( new Infer < Boolean >( expr . right )). doInference ( inferenceType );

}

else

return true ;

}

}

a.  Identify  as many  code smells as you can in the  above class.  Hint:  There  are at  least two.                                                                                                                             [6 marks]

b. Refactor the class to remove all the code smells you identified.  Give the full definition of your refactored  class and an explanation of the refactorings  you performed.

Question 5 (Design Patterns, 8 marks)

(a)  There is something  wrong with the following instance  of the Template Method  pattern.

Explain  what  is wrong.  Modify the system so that it conforms to the pattern.  Explain each of the changes you made to the system.  Draw the class diagram  for your modified system

Question 6 (Testing)

 

The  following diagram  shows the  classes used  in a calculator  application.  This  cal- culator  application can do addition, multiplication, powers, logarithms,  factorials  and permutations. Some of these calculations  can take a long time on the low-powered de- vice on which it is designed to run.  For this reason, the calculator  takes each calculation it is asked to do and sends it over the internet to a supercomputer for computation as well as attempting to calculate  it locally.  If the supercomputer returns the result faster than  the  program  can calculate  it,  it uses that result.   Furthermore, the  computer on which this application is running  has a large amount of memory, so the application will store  all the  calculations  it  has already  performed  in a database.  If it  is asked  to  do a calculation  it has done before, it uses the  value it has stored  in the  database.  This database can store 100,000 results  before it is full and when it is full the calculator  will have to do any new calculations  every time they  are requested.

    • 12 years ago
    Please see attached file for answers
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      1solutions.doc