Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 371 Weeks Ago, 2 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 23 Jun 2017 My Price 5.00

Write a C++ program that uses a structure for storing a stock name

 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.

 

Answers

(8)
Status NEW Posted 23 Jun 2017 11:06 AM My Price 5.00

-----------

Attachments

file 1498217600-Answer.docx preview (94 words )
A-----------nsw-----------er ----------- #i-----------ncl-----------ude----------- #i-----------ncl-----------ude----------- st-----------ruc-----------t s-----------har-----------e{ -----------cha-----------r n-----------ame-----------[50-----------]; -----------flo-----------at -----------est-----------Ern-----------PrS-----------hr;----------- in-----------t r-----------ati-----------o; -----------}; -----------//d-----------ecl-----------are----------- st-----------ruc-----------tur-----------e s-----------har-----------e v-----------oid----------- ma-----------in(-----------){ -----------str-----------uct----------- sh-----------are----------- s;----------- //-----------dec-----------lar-----------e a-----------n i-----------nst-----------anc-----------e s----------- of----------- st-----------ruc-----------tur-----------e s-----------har-----------e f-----------loa-----------t a-----------nti-----------cip-----------ate-----------dPr-----------ice-----------; /-----------/de-----------cla-----------re -----------flo-----------at -----------var-----------iab-----------le -----------to -----------sto-----------re -----------ant-----------ici-----------pat-----------ed -----------pri-----------ce -----------int----------- i=-----------0; -----------//d-----------ecl-----------are----------- an----------- in-----------teg-----------er -----------for----------- lo-----------op -----------var-----------iab-----------le -----------clr-----------scr-----------();----------- //-----------cle-----------ar -----------the----------- co-----------nte-----------nts----------- of----------- ou-----------tpu-----------t w-----------ind-----------ow -----------for-----------(i=-----------0;i----------- an-----------tic-----------ipa-----------ted-----------Pri-----------ce=-----------0; -----------//i-----------nit-----------ial-----------ize----------- an-----------tic-----------ipa-----------ted----------- pr-----------ice----------- to----------- 0 -----------pri-----------ntf-----------(&q-----------uot-----------;En-----------ter-----------
Not Rated(0)