0% found this document useful (0 votes)
18 views2 pages

Programming Tasks

The document outlines a series of programming tasks for user interaction. Tasks include displaying a word multiple times, reversing a word's characters, multiplying numbers, counting vowels in a sentence, displaying even numbers, finding the largest of three numbers, guessing a secret number, and calculating the sum and average of a series of numbers. Each task emphasizes basic programming concepts and user input handling.

Uploaded by

21fjaydenm
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

Programming Tasks

The document outlines a series of programming tasks for user interaction. Tasks include displaying a word multiple times, reversing a word's characters, multiplying numbers, counting vowels in a sentence, displaying even numbers, finding the largest of three numbers, guessing a secret number, and calculating the sum and average of a series of numbers. Each task emphasizes basic programming concepts and user input handling.

Uploaded by

21fjaydenm
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Task 1:

Ask the user to enter a word and a number. Display the word as many times as
the number they entered, but all in one line with a space between each
repetition.

Task 2:
Ask the user to enter a word and display each character of the word reversed
on a new line (e.g., input: “hello”, output: “o”, “l”, “l”, “e”, “h”).

Task 3:
Create a program that asks the user for a number between 1 and 10. Multiply
all numbers from 1 to the entered number together and display the result.

Task 4:
Ask the user to enter a sentence. Count and display the number of vowels (a,
e, I, o, u) in the sentence.

Task 5:
Create a program that asks the user for a number between 1 and 100. Display
all even numbers from 2 to the entered number.

Task 6:
Ask the user to enter three numbers. Display the largest of the three numbers.

Task 7:
Write a program that asks the user to guess a secret number between 1 and
20. If they guess too high, display “Too high”. If they guess too low, display
“Too low”. If they guess correctly, display “Congratulations!”. End the game
when they guess correctly.

Task 8:
Ask the user for a series of numbers. Stop when they type “done”. Afterward,
display the sum and average of all the numbers entered. Also find the smallest
of all these numbers and display it.

You might also like