Home.Literature.
Help.
  • Contact Us
  • FAQ
Log in / Sign up
  • Log in / Sign up
  • Post a question
  • Home.
  • Literature.
  • Help.
  • Contact Us
  • FAQ
  • c++

    sanzytha
    question.docx
    Home>Computer Science homework help>c++

    PointersStruct

    You need to create above memory schema to keep data for 10 customers. Each customer is a struct of 3 data pieces: ID, Type, and Balance.

    Follow these steps to develop a complete cpp file:

    - Define a Customer struct

    - Define an array pointer to keep 10 customer

    - Fill out customer data with random number or text, considering

    - ID: a random number between 1000 and 5000

    - Type: a random string, either "personal" or "business"

    - Balance: a random number between 0 and 600. This is dollar amount.

    - List all customer data having one customer at each line.

    - List all customer who have balance more than $450 (>450) having one customer at each line.

    Sample output:

    All customers:4723,business,$91 1183,personal,$378 3320,business,$383 2754,business,$336 1531,personal,$479 3631,business,$282 4609,business,$424 3069,business,$227 3257,business,$24 1722,personal,$578 Customers with balance of more than $450 1531,personal,$479 1722,personal,$578

    1. Applied Sciences
    2. Architecture and Design
    3. Biology
    4. Business & Finance
    5. Chemistry
    6. Computer Science
    7. Geography
    8. Geology
    9. Education
    10. Engineering
    11. English
    12. Environmental science
    13. Spanish
    14. Government
    15. History
    16. Human Resource Management
    17. Information Systems
    18. Law
    19. Literature
    20. Mathematics
    21. Nursing
    22. Physics
    23. Political Science
    24. Psychology
    25. Reading
    26. Science
    27. Social Science
    28. Liberty University
    29. New Hampshire University
    30. Strayer University
    31. University Of Phoenix
    32. Walden University
    • Home
    • Homework Answers
    • Archive
    • Tags
    • Reviews
    • Contact
    Copyright © 2026 SweetStudy.com (Step To Horizon LTD)