Practice Simple Programs

How to practice

The following widgets contain all of the correct steps in a random order. Drag and drop the steps to arrange them into the correct sequence.

Display the quotient

Arranged correctly, the following program displays the quotient of two values input by the user with the appropriate prompt messages.

Arrange the following instructions into the correct order.

Drag and drop the cards in the blank spaces.


Calculate monthly salary

Arranged correctly, the following program takes the input of an annual salary with a suitable prompt and displays the monthly salary after dividing it by 1212.

Arrange the following instructions into the correct order.

Drag and drop the cards in the blank spaces.


Convert weeks to days

Arranged correctly, the following program takes the input of a number of weeks from the user and displays the number of days in the same period.

Arrange the following instructions into the correct order.

Drag and drop the cards in the blank spaces.


Convert Celsius to Fahrenheit

Arranged correctly, the following program takes the input of a temperature in Celsius and displays the same temperature in Fahrenheit.

Arrange the following instructions into the correct order.

Drag and drop the cards in the blank spaces.