• Assignment 1: Chocolate Delights Candy Company, Part 1

Due Week 5 and worth 210 points

Chocolate Delights Candy Company manufactures several types of candy.

Design a flowchart using Visual Logic for the following:
1. A program that accepts a candy name (for example, “ chocolate-covered blueberries”), price per pound, and number of pounds sold in the average month, and displays the item’s data only if it is a best-selling item. Best-selling items are those that sell more than 2,000 pounds per month.
2. A program that accepts candy data continuously until a sentinel value is entered and displays a list of high-priced, best-selling items. High-priced items are those that sell for $10 per pound or more.
3. Identify outcomes in Visual Logic the lowest-selling items (those that sell 200 pounds or less). This way, owners can decide if they want to put those items on sale, lower their price, discontinue the item, etc.
4. Identify outcomes in Visual Logic the items that generate the most income. In other words, multiply the price per pound times the number of pounds sold per month, and list items that generate $6,000 or more per month.
Note: The Visual Logic program that you create must be fully functional in order for you to get full credit. If you want to include a short write-up to explain your logic further, you may do so in order to receive additional credit. The specific course learning outcomes associated with this assignment are:
• Demonstrate the use of algorithms and pseudocoding to the problem-solving process.
• Distinguish among the basic types, steps, and properties of programming.
• Apply the techniques of functional decomposition, modularization techniques, and debugging strategies into program design.
• Describe the features and fundamental data structures of programming design.
• Select and create the appropriate conditional and iteration constructs for a given programming task.

cerritos.edu/pnguyen/cis103/labs/cis103home5sol.htm

njkjn

To design a flowchart using Visual Logic for the given assignment, you can follow these steps:

1. Start by defining the inputs for each program:
a. For program 1, the inputs are candy name, price per pound, and number of pounds sold.
b. For program 2, the inputs are the same as program 1, but this program accepts candy data continuously until a sentinel value is entered.

2. Create a symbol in Visual Logic to represent the decision-making process. In this case, a decision symbol will be used to represent the condition of being a best-selling item (selling more than 2,000 pounds per month) and a high-priced item (selling for $10 per pound or more).

3. Connect the input symbols to the decision symbol using flow lines.

4. Based on the outcome of the decision, create symbols to represent the actions to be taken. For example, if the candy is a best-selling item, display its data. If it is a high-priced item, store its data in a list.

5. For program 2, add a condition symbol to check if the sentinel value has been entered. If not, continue accepting candy data.

6. For program 3, create a decision symbol to check if the candy item sells 200 pounds or less per month. If it does, identify this as a lowest-selling item and take appropriate actions such as putting it on sale or discontinuing it.

7. For program 4, create a symbol representing the calculation of income by multiplying the price per pound with the number of pounds sold. Use a decision symbol to check if the income generated is $6,000 or more per month. If it is, list the item as generating the most income.

8. Connect symbols and actions using flow lines to create your flowchart.

Remember to add start and stop symbols to indicate the beginning and end of the program. Test your flowchart to ensure it performs as expected.