Write a c++ program that uses a structure for storing stock

Assignment Help Basic Computer Science
Reference no: EM131398716

Write a C++ program that uses a structure for storing a stock name, its estimated earnings per share, and its estimated price-to-earnings ratio. Have the program prompt the user to enter these items for five different stocks, each time using the same structure to store the entered data. When data has been entered for a particular stock, have the program compute and display the anticipated stock price based on the entered earnings and price-per-earnings values. For example, if a user enters the data XYZ 1.56 12, the anticipated price for a share of XYZ stock is (1.56) × (12) = $18.72.

Reference no: EM131398716

Questions Cloud

How do you use economics to explain this to your management : Suppose that your firm has steadily seen units sold rise over time. In the recent past, your pricing manager increased price on units and you are asked to evaluate it. What you see in your analysis of the trends is an continued increase in units sold..
Has john acted so as to be guilty of a crime against woman : Denise slips while walking on the sidewalk. She instinctively reaches out to grasp some support. Instead her finger pokes out the eye of Vernon, who was also walking on the sidewalk. Has Denise committed an "act" upon which a criminal battery char..
Focuses on constitutional authority to regulate business : This learning activity focuses on constitutional authority to regulate business and constitutional law concepts. City enacted a city zoning ordinance that barred outdoor advertising display signs - including billboards - on all public roads within th..
How the country policies influence its productivity growth : Write a 1,050-word report recommending an off-shore country and support your choice with the following data: The factors determining the country's productivity and How the country's policies influence its productivity growth
Write a c++ program that uses a structure for storing stock : For example, if a user enters the data XYZ 1.56 12, the anticipated price for a share of XYZ stock is (1.56) × (12) = $18.72.
Choose one supposed crisis of masculinity : Explain what is the "phenomenon that we might call the ‘soft male'" (Bly qtd in Buchbinder 9) by providing a specific example of this and investigating whether this is really a crisis or not.
Why would you expect a value greater than 47 : Verify that for the data in given Exercise, if you use Y‾ = 2X - 9, the sum of the squared residuals is larger than 47. Why would you expect a value greater than 47?
What are financial research sources to support your analysis : What are the financial research sources to support your analysis? What specifics from the financial statements would be at greatest risk?
How many will you consume : If they charge you $12 for an "all you can consume" pass, how many will you consume?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Problem regarding the god creation

Have you ever considered computer technology as part of your biblical worldview?How would you state your biblical worldview of computer technology?Do you consider computer technology as part of God's creation? Please explain your answer.

  Normalized relations from database in large retail chain

Question: Consider the following normalized relations from a database in a large retail chain: STORE (Store ID,  Region, ManagerID, Square Feet)

  Determining normal form for relational dependency

Consider the following relation for published books:

  Write a program that reads a file containing two columns

write a program that reads a file containing two columns of floating-point numbers. prompt the user for the file name. print the average of each column in c++.

  Write a method that computes the flows in the tree edges

Suppose that all nontree edges are empty. Write a method that computes the flows in the tree edges, putting the flow in the edge connecting v and its parent in the tree in the vth entry of an array flow

  Top-down and bottom-up approaches

How might you combine top-down and bottom-up approaches? How might a combination minimize the weaknesses of each?

  Draw a uml class diagram depicting classes in the pattern

Draw a UML class diagram depicting the classes in the pattern and justify your choice.

  Computer crimes directions

Computer Crimes Directions: Using the internet, research a specific case of a computer crime where a person was prosecuted for committing a computer crime. Write an essay about this crime. Your essay should include the following:Explain the computer ..

  Experience building the financial analysis

Reflect on your experience building the financial analysis and proposal over the span of this course. What component(s) seemed the easiest to develop? What component(s) were the hardest?

  Which parts of the definition apply and which do not

Consider the so-called "algorithm for algorithms" in Section 15.1. Is this really an algorithm? Review the definition of an algorithm from Section 1.4. Which parts of the definition apply, and which do not? Is the "algorithm for algorithms" a heur..

  Detailed description of learning activity

Detailed Description of Learning Activity

  High level plan for handling contingencies

Write a 2-3 page (single spaced) high level plan for handling contingencies in a large bank with many branches in the united states. A detail plan will be much longer focus on only the high level plan and include those aspects that you think are r..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd