Submit pseudocode and a flowchart for the following programming exercise:

Largest and Smallest

Design a program with a loop that lets the user enter a series of numbers. Theuser should enter -99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered

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

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

.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.

Certainly! Here's the pseudocode and a flowchart for the exercise:

Pseudocode:
1. Initialize variables: largest = smallest = inputNumber = 0
2. Display a message asking the user to enter a number or -99 to end the series
3. Read the first number from the user and store it in inputNumber
4. Set largest and smallest as inputNumber
5. Start a loop that continues until the user enters -99
6. If inputNumber is greater than largest, set largest as inputNumber
7. If inputNumber is less than smallest, set smallest as inputNumber
8. Display a message asking the user to enter a number or -99 to end the series
9. Read the next number from the user and store it in inputNumber
10. Display the largest and smallest numbers entered

Flowchart:

```
+------------------+
| Start |
+------------------+
| |
| |
V |
+------------------+
| largest = 0 |
| smallest = 0 |
| inputNumber = 0 |
+------------------+
| |
V |
+------------------+
| Prompt user for |
| a number or -99 |
+------------------+
| |
V |
+------------------+
| Read number |
| from user and |
| store in |
| inputNumber |
+------------------+
| |
V |
+------------------+
| Set largest and |
| smallest as |
| inputNumber |
+------------------+
| |
V |
+------------------+
| Loop: |
| While inputNumber|
| is not -99 |
+------------------+
| |
V |
+------------------+
| If inputNumber > |
| largest, |
| set largest as |
| inputNumber |
+------------------+
| |
V |
+------------------+
| If inputNumber < |
| smallest, |
| set smallest as |
| inputNumber |
+------------------+
| |
V |
+------------------+
| Prompt user for |
| a number or -99 |
+------------------+
| |
V |
+------------------+
| Read number |
| from user and |
| store in |
| inputNumber |
+------------------+
| |
V |
+------------------+
| End Loop |
+------------------+
| |
V |
+------------------+
| Display largest |
| and smallest |
| numbers entered |
+------------------+
| |
V |
+------------------+
| End |
+------------------+
```