The Application

  • Design the solution.
  • Use a struct to hold selected product information.
  • Use 2 arrays inside a struct: one for the products, and one for the quantities.
  • Use loops to assign values to the arrays.
  • Use loops to read and print values from the arrays.
  • Reuse the functions that you developed in Week 2 and the customer class that you developed in Week 3. Changes can be done as needed.
  • By the end of Week 4, your application should work as follows:
    • Ask the customer to enter his or her details (e.g., name, address).
    • Print a welcome message that includes the customers name.
    • Provide a list of available products with descriptions.
    • Ask the customer to select products and quantities.
    • Save the provided details in a struct that contains arrays.
    • Read from the arrays to print the order summary; that is, the products, quantities, and the total price for each product.
    • Calculate and print the total price for the order.
    • Add comments to your code.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.