187k views
1 vote
Ask the user for their first name

Say “Hello” followed by the user’s first name

Ask the user how old they are

Tell the user how old they will be in 10 years and in 20 years

Tell the user how old they were 5 years ago

Before you begin coding, use a word processing document to write pseudocode to plan out your program. Then, use your pseudocode to write your program.

User Ciriarte
by
7.6k points

1 Answer

4 votes

Answer:

Step-by-step explanation:

OUTPUT 'What is your name?'

INPUT user inputs their name

STORE the user's input in the name variable

OUTPUT 'Hello' + name

OUTPUT 'How old are you?'

INPUT user inputs their age

STORE the user's input in the age variable

IF age >= 70 THEN

OUTPUT 'You are aged to perfection!'

ELSE

OUTPUT 'You are a spring chicken!'

User Phoibos
by
7.5k points