Write the pseudocode and program structure (using comments) and finally write the program for the following problems
Question:
Write the pseudocode and program structure (using comments) and finally write the program for the following problems with the screenshot of the output.
1. Powerball lottery has 8 numbers in a row. The first 7 numbers are randomly selected between 1 to 35. Once selected that number cannot be selected again. The last number is selected between
1 to 20 inclusive.
You must write a program that will ask the user how many rows they want as input and generates power ball rows as output.
2. The body mass index (BMI) is calculated as a person’s weight (KG) divided by the square of the person’s height (in inches). A BMI in the range 19-25 (inclusive) is considered healthy. Write a
program that calculates a person’s BMI and prints a message telling whether they are above, within, or below the healthy range. This program must keep on calculating BMI for the given input
till user says, “they don’t want to continue”