Thursday, 1 December 2016

Write a program that declares a structure Book to store BookId, book name and price.....

Write a program that declares a structure Book to store BookId, book name and price. it declares another structure Order that contains Orderid and an array of Book of length 5. The program should define a variable of type Order and input the values from the user. The program finally displays the values.



       #include <iostream.h>
       #include <conio.h>

       struct Book
       {
            int b_id;
            char b_name[30];
            int price;
       };

       struct Order
       {
            int order_id;
            Book b[5];
       };

       int main()
       {
            Order c;
            cout<<"Enter your Order Id: ";
            cin>>order_id;
            cout<<"Enter details of five books: ";
            for (int i=0;i<5;i++)
           {
               cout<<"Enter Book Id: ";
               cin>>c.b[i].b_id;
               cout<<"Enter Book Name: ";
               cin>>c.b[i].b_name;
               cout<< " Enter Price of the Book: ";
               cin>>c.b[i].price;
          }
          cout<<"\n Order details is as follows: "<<endl;
          cout<<" Order Id: "<<order_id<<endl;
          cout<<" Book Id\t Book Name \t Price "<<endl;
         
            for (i=0;i<5;i++)
            {
                   cout<<c.b[i].b_id<<"\t"<<c.b[i].b_name<<"\t"<<c.b[i].price<<endl;
             }
           return 0;
       }

19 comments:

  1. Tevida able to improve sexual function compared to the placebo group. However, only in men who already had a low level of nitric oxide. Food supplements for men are in the market a dozen. Not all of them are
    https://www.supplementsforfitness.com/tevida/

    ReplyDelete
  2. Wellness Trials is a Health & Wellness Product We update our users with health tips and health products reviews. If you want to know any information about health o& Wellness Product (Side Effects & Benefits) Feel Free To ask Wellness Trials.

    http://www.wellnesstrials.com/keto-pure-diet/

    https://www.pinterest.com/claimwellnesstrials/

    https://www.instagram.com/claimwellnesstrials/

    http://claimwellnesstrials.over-blog.com/

    https://works.bepress.com/wellness-trials2/

    ReplyDelete
  3. Quit 9 To 5 Academy Review is a place for beginners and experts in the field of affiliate marketing and for those who want to leave their 9 to 5 job and start their own business in this platform.

    ReplyDelete
  4. Dieta Salutares is an best site where you can get detail about health, wellness and beauty products that really helps you to select best products according to your needs. This site also provides you latest supplements that is more helpful to make your life better.

    http://dietasalutares.it/

    https://www.facebook.com/Dieta-Salutares-582647302249651/

    ReplyDelete
  5. Get complete Supplements Angles Information for Mele and female wellness products and weight loss and Weight gain products, Click here @ Supplements Angles
    https://supplementsangles.com/

    ReplyDelete
  6. Abundance Manifestor eBook is an online program aimed at those who want to change their lives. It is one of the latest guides that revolves around the law of attraction.

    ReplyDelete
  7. Dragons Den Diet is leading company in United Kingdom which sells various health related products.it has a vast range of products like weight loss supplement,male enhancement,muscle related products & skin care.we are offering the best discount in the market and selling best quality products.

    For More Information Visit Our Official Website >>> https://www.dragonsdendiet.com/

    https://www.dragonsdendiet.com/nitro-strength/

    https://medium.com/@nitrostrengthpill/nitro-strength-reviews-strength-and-muscle-enhancer-pills-ae927cbcde35

    http://viaxylreviews.over-blog.com/nitro-strength

    https://sites.google.com/site/nitrostrengthreviews/

    https://dragonsdendietinfo.blogspot.com/2019/05/nitro-strength.html

    https://youtu.be/_RdFFIkBIio

    ReplyDelete
  8. Ultra Fast Keto Boost is a natural weight loss supplement that targets the fat from the root level and provides you a healthy and fit body. With the help of this product, you are going to get the permanent result and desired result.

    https://twitter.com/martsupplements/status/1169152488488017920
    https://www.saatchiart.com/art/Painting-Ultra-Fast-Keto-Boost-Shark-Tank-Reviews-Cost-Weight-Loss-Pills/1320697/6575437/view
    http://www.apsense.com/article/ultra-fast-keto-boost-shark-tank-reviews-cost-weight-loss-pills.html
    https://www.pinterest.com/pin/855754366678769778
    https://www.youtube.com/watch?v=Wtwl19PZuKs&feature=youtu.be
    http://fliphtml5.com/elqsi/hfsi/
    https://supplementsmegamart.hatenablog.com/entry/Ultra_Fast_Keto_Boost
    https://supplementsmegamart.blogspot.com/2019/09/is-ultra-fast-keto-boost-scam-diet.html

    ReplyDelete
  9. The Freedom Particle System Review claims you can cut your electricity bills by 60 percent by using grass clippings and other waste around the home. Also the Freedom Particle System eBook will teach you how to build this generator from scratch.

    ReplyDelete
  10. Web Bitcoin Club is an innovative payment network and a new kind of money. Find all you need to know and get started with Web Bitcoin Club on https://webbitcoinsclub.blogspot.com/. We use cookies to ensure you get the best experience on our website.

    https://webbitcoinsclub.blogspot.com/
    https://bit.ly/31SlyDs

    ReplyDelete
  11. If you have came to read this article, you or your loved ones must be suffering from knee problems and you must be in search of pain relief. I would give all-round Feel Good Knees review and information so that you can make a wise decision about buying the product.

    ReplyDelete
  12. We strive to provide you with information about products and services you might find interesting and useful. They would then be reviewing the success of certain campaigns and negotiating with media sales agencies in order to make vital adjustments and changes. That way, you get the most value possible out of digital media buying instead of wasting your valuable budget on risky hunches or gut feelings. Company may only allow authorized individuals acting on behalf of Company to access and use its WhatsApp business account for purposes authorized under these Business Terms. When deciding which traffic is best for your campaign, keep in mind the mindset of your target audience. When it comes to programmatic ad buying, these technologies connect media buyers to the right publishers via algorithms, then automate the entire buying process using the price and placement thresholds set by the buyers. The Fantastical created branding and marketing materials for the company, including a website, business cards, and logo.

    However, these veritable media-buying machines had the combined spending power and media clout to dominate their local advertising landscape. One of the easiest ways to get started is on A look at the stats for the logo designers there shows the size of the market. Tutoring is also one of the businesses you can start for less than $100. HypeLife works with a board sports company to provide branding and social media marketing services, both of whch are targeted to appeal to millennials. With the introduction, and subsequent proliferation, of programmatic buying over the last decade, there's every indication that the need for integrating automation across traditional, digital, owned, earned, and paid media, is only growing. Once an advertising cycle has been completed, it is up to the buyer to collate data and analysis of consumer behaviour in order to make the next project more effective and inform any future campaign undertaken. Localised digital advertisement makes it possible for SMBs to stand out with their ad campaigns without having to worry about competition from the big brands.

    Internal - A good media planner will first work closely with a business or brand to understand the key objectives and goals of their marketing campaign and discuss who the target audience is or should be. From here, external research will be conducted. Believe it or not, but media planning and media buying still require constant communication with publications, websites and broadcast partners. The shift from media buying to audience buying is the biggest shift that has happened in advertising, said Gautam Mehra, Chief Data Officer and Chief Executive Officer, DAN Programmatic, Dentsu Aegis Network. By focusing on the consumer, creative and media can be more streamlined and relevant, he said. Some provide a variety of products, or, if you're going to specialize in one product or product line, you can locate a manufacturer that drop-ships. The development comes at a time when Ola, which is locked in a battle for market leadership in the Indian market against American rival Uber, narrowed its standalone losses in FY19 to ₹1,160.27 crore from ₹2,676.70 crore in the last financial year. https://www.reviewengin.com/5-simple-media-buying-lessons-to-boost-your-business/

    ReplyDelete
  13. If you know the courses that help you make money, Kibo Code is one of them. I mean the Kibo code is a very profitable course for e-commerce companies. It is unique and highly predictable due to the business strategies presented in the course. Read this Kibo Code Review carefully so that you can make an easy decision of whether to register in the Kibo Code System or not

    ReplyDelete
  14. Alpha Titan Testo :-When a product uses the best quality ingredients, only then can you be sure that the results will also be the best? All the other supplements out there use old techniques and copied recipe while we have made something original, and use only the best. Alpha Titan Testo Reviews canada has used many ingredients, but we would like to tell you about a few of them because they do a lot more than others.

    Alpha Titan Testo Reviews
    Facebook

    ReplyDelete
  15. Endurmax Reviews: no one can correct their sex life like other successful qualities, fitness only for time and experience. Sex life and penis size are genetics only and people after a point of time are unable to have satisfactory bedroom sessions with their partner. This is very common men definitely want to overcome sexual problems because they also want to have a romantic relationship. This is the reason why we have a new and laboratory tested product for you and that is Endurmax.

    ReplyDelete
  16. Well, I am willing to answer this question because I have purchased it many times online. To buy goods online, we must choose a good website. I chose IGGM. I think it’s a trustworthy website after many purchases, because I haven’t had any problems since buying Animal Crossing Nook miles Ticket here, and the product is the cheapest website since I bought it, and the delivery speed is very fast.

    If you really don’t know where to buy, IGGM is a very good choice. You don't have to worry about being deceived, at least for so long, I have no problems. If you fail to complete the order successfully, the customer service department will also refund your 100% payment. Unlike robot customer service on other websites, IGGM's customer service is a true online question answering, you can ask all the things you want to know before buying. The most important thing is that their ACNH Nook miles Ticket are obtained manually, not through illegal procedures, so there is no need to worry about account security.

    ReplyDelete
  17. http://virmaxryn.info/
    http://virmaxryn.info/virmaxryn-review/
    https://www.facebook.com/virmaxrynsreviews/
    https://www.facebook.com/Virmaxryns/
    https://www.facebook.com/Virmaxryn-where-to-buy-104794058028131
    https://sites.google.com/view/virmaxrynwheretobuy/
    https://sites.google.com/view/virmaxrynmaleenhancementpils/
    https://sites.google.com/view/virmaxrynpriceinusa/
    https://www.youtube.com/watch?v=MYy4loC8xPM
    https://youtu.be/quW7Vfp52BA

    ReplyDelete

If you have any doubt please let me know

Methods in JAVA Language

 In general, a way may be thanks to perform some task. Similarly, the tactic in Java may be a collection of instructions that performs a sel...