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
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”
Step by Step Solution
3.38 Rating (164 Votes )
There are 3 Steps involved in it
Step: 1
solution for question no 1 powerball lottery in c include usin...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started