Posted at 22:07h
in
Uncategorized
by admin
Question:
The Body Mass Index (BMI) is one of the calculations used by doctors to assess an adult’s health. The doctor measures the patient’s height (in meters) and weight (in kilograms), then calculates the BMI using the formula
BMI = weight / (height * height)
Write a program which...
Posted at 21:22h
in
Uncategorized
by admin
Question:
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
Sample Input 1:
Which multiplication table would you like? 5
Sample output 1:
Here's your table:
5 x 1 = 5
5 x...
Question:
Please write a program using function. Each player in a tournament plays six games. There are no ties. The tournament director places the players in groups based on the results of games as follows:
if a player wins 5 or 6 games, they are placed...