Graderpractice for programmers

BC - Java Contest Warmup

Awaiting submission
Read in one integer, n.
Print 1-n, with each number on a new line.
Awaiting submission
Read in one integer, n.
Print 1-n, on a single line.

Format
Each number must be left-aligned in a 5-character wide column.
Awaiting submission
Read in one integer, n.
Print 1-n, with each number on a new line.
After each number, print the same amount of "ha"s.
Awaiting submission
Read in one integer, n.
Print a grid starting at 1, with n rows and n columns.
(hint: each row contains n numbers)

Format
Numbers must be right aligned in columns 5 characters wide.
Awaiting submission
Read in one integer, n.
Print a grid with n rows, n columns, and headers.
Calculate cell values as col / row (decimal division)

Format
Row headers must be left aligned in a 2-char column.
Col headers must be right aligned in 5-char columns.
Cell values must be right aligned in 5-char columns, printed to 2 decimal places.
Awaiting submission
Read in two integers, height (in cm) and weight (in kg).

Using a function:
Convert height from cm to m.
Calculate BMI using weight / height ^ 2.

Format
Print the answer to 2 decimal places.
Awaiting submission
Read in two integers, height (in cm) and weight (in kg).
Calculate BMI as previously.
Print the BMI category:
Underweight bmi< 18.5
Normal 18.5 ≤bmi< 25
Overweight 25 ≤bmi< 30
Obese 30 ≤bmi
Awaiting submission
Read 4 ints: height (in cm), weight start, end, and interval (in kg).
Print the BMI and BMI category for each weight between start & end, using the interval specified.

Format
Print BMI to 2 decimal places, right-aligned, in a 6char column.
Leave 2 spaces before the category.
Awaiting submission
Read 6 ints: height start, end, and interval (in cm), and weight start, end, and interval (in kg).

Print the BMI for each weight / height combination as a grid.

Format
Print row headings left-aligned in a 4-char column.
Print BMI to 2 decimal places, right-aligned in an 8-char column.
Awaiting submission
Read 6 ints: height start, end, and interval (in cm), and weight start, end, and interval (in kg).

Print the BMI *category* for each weight / height combination as a grid.

Format
Print row headings left-aligned in a 4-char column.
Print BMI category left-aligned in a 14-char column.
Awaiting submission
Read 3 inputs: full name (text), age (whole-number), and weight (floating-point).
Without using the + operator, print all 3 on a single line, using a single printf statement.

Format
Weight should be printed to 2 dp.