Need Help: Project

profiledomngo2
project.docx

· The Application: Use the following steps for the application:

1. Select your development approach.

2. Decide on the products that you are planning to sell.

3. Create a draft program design (on paper).

4. Start creating the program structure using the provided integrated development environment (IDE).

5. By the end of Week 1, your program should do the following:

5. It should ask customers to enter details such as their names and addresses.

5. It should print a welcome message that includes the customer’s name.

5. It should provide a list of available products with descriptions.

5. Add comments to your code.

· The Documentation: Use the following steps for the documentation:

2. Title page

1. Course number and name

1. Project name

1. Student name

1. Date

2. Table of contents (TOC)

· Use an auto generated TOC.

· It should be on a separate page.

· It should be a maximum of 3 levels deep.

· Update the fields of the TOC so it is up-to-date before submitting your project.

3. Section headings (Create each heading on a new page and indicate with "TBD"; that is, to be determined.)

· Part 1: Fundamentals

· In this section, summarize the main application features and the current functionality. Provide screenshots of your program execution.

· Part 2: Functions

· Design the solution on paper.

· Determine the functions that you need to create (you need at least 3).

· Design each function.

· Implement your design using the provided integrated development environment (IDE).

· By the end of Week 2, your program should provide the following additional functionality (in addition to the functionality provided in Week1):

· Ask customers to select products and quantities.

· Print the order summary, including the products, the quantities, and the total price for each product.

· Calculate and print the total price for the order.

· Make sure to add comments to your code.

· The Documentation

· Update the project document with the new date and project name.

· Update previously completed sections based on instructor feedback.

· New content: Functions

· Summarize the new functionality that you added to your application.

· Add a description of each function and how it will work (a flowchart can be used).

· Provide screenshots of your program execution.

· Part 3: Object Oriented Programming

·

· Design the customer class.

· Include at least the customer name and address for the class.

· Create a class function to set the class’s variables.

· Create a class function to get the values of the class’s variables.

· Create additional functions as necessary.

· Implement your design using the provided Integrated Development Environment (IDE).

· Complete the following in your code:

· Implement the new class.

· Create an object from the new class.

· Set the customer details using the class function.

· Use the class function to access the customer details.

· The Documentation

· Update the project document with a new date and project name.

· Update previously completed sections based on instructor feedback.

· New content: Object-Oriented Programming:

· Include your new class design (a class diagram can be used).

· Summarize the changes that you implemented.

· Discuss any potential classes to be implemented in the future.

· Part 4: Strings and Arrays

·

· Design the solution.

· Use 2 arrays: 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 customer’s name.

· Provide a list of available products with descriptions.

· Ask the customer to select products and quantities.

· Save the provided details in 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.

· The Documentation

· Update the project document with a new date and project name.

· Update the previously completed sections based on instructor feedback.

· New content: Strings and Arrays

· Summarize the changes that you implemented.

· Discuss how using arrays changes the way that your code is organized.

· Part 5: Pointers

·

· Design the solution.

· For the quantities, use a pointer to the first item of an array of int. An example of the declaration code may look like the following:

· int * numbers;

· numbers = new int [n];

· For the products, use an array of pointers to strings, and dynamically allocate space for each of the strings. An example of the declaration code may look like the following:

· char Temp[100]; // to hold the entry

· char * products [100]; // to hold the products

· To fill in the products array, read one product name from the user, check the length, and then allocate memory based on the length of the entered word. The following code is provided as an example:

· cin >> Temp; // to get the product

· int len = strlen(Temp) +1 ; // to determine the length of the product name

· char* newProduct = new char[len]; // to allocate memory

· strcpy(newProduct, Temp); // to copy the entry to a new product

· products[0] = newProduct; // to save in the array

· Use the previous structure to provide the same functionality that was provided in Week 4.

· By the end of Week 5, your application should work as follows:

· Ask the customer to enter his or her details (e.g., name and address).

· Print a welcome message that includes the customer’s name.

· Provide a list of available products with descriptions.

· Ask the customer to select products and quantities.

· Save the provided details in the new data structure.

· Read from the arrays to print the order summary (e.g., the products, quantities, and total price for each product).

· Calculate and print total price for the order.

· Release the allocated memory.

· Add comments to your code.

· The Documentation

· Update the project document with a new date and project name.

· Update previously completed sections based on instructor feedback.

· New content: Strings and Arrays

· Summarize the changes that you implemented.

· Discuss how using dynamic memory allocation changed your application structure.