You are on page 1of 1

EXERCISE’S 1 – GETTING STARTED

1. Write a program that prints out your favourite book, it should print out the author on the
next line, and wait for the user to press enter before ending.

2. Create a program that allows the user to enter their two favourite colours. The program
should print out a new colour by joining the user’s two entries together (concatenating
them).

3. Create a program that allows the user to enter their first and last names to be stored in
separate variables. The program should greet the user, saying hello, using both their first
and last name.

4. Create a VAT adding program that should allow the user to enter a base price, which the
program should then add a tax percentage to (such as 20%).

You might also like