0% found this document useful (0 votes)
2 views3 pages

Coding Part 1

The document outlines a series of programming tasks focused on loops, including writing programs for login systems, counting vowels, generating Pascal's triangle, and calculating Fibonacci sequences. It provides a comprehensive list of exercises aimed at enhancing programming skills. Contact information for further inquiries and online programming lessons is also included.

Uploaded by

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

Coding Part 1

The document outlines a series of programming tasks focused on loops, including writing programs for login systems, counting vowels, generating Pascal's triangle, and calculating Fibonacci sequences. It provides a comprehensive list of exercises aimed at enhancing programming skills. Contact information for further inquiries and online programming lessons is also included.

Uploaded by

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

CODING PART 1

LOOPING QUESTIONS

Tino Chiby
1-27-2024
LOOPS QUESTIONS (using a programming language of your choice)
 Write a login program for an organisation or company that when a user
enters an incorrect password 3 times the system will automatically shut
down. (20)
 Write a program that counts the number of vowels in a given sentence.
 Write a program that prints the numbers from 1 to 100.
 Write a program that generates the first 10 rows of Pascal's triangle.
 Write a program that generates a random number in the range of 1 to 10.
 Write a program that reverses a given string using a loop.
 Write a program that generates a Fibonacci sequence.
 Write a program that checks whether a given number is
 Write a program that creates a pyramid of stars.
 Write a program that prints the first 10 multiples of a given number.
 Write a program that finds the largest number in a given list of numbers.
 Write a program that finds the average of a list of numbers.
 Write a program that finds the smallest number in a list of numbers.
 Write a program that checks whether a given year is a leap year or not.
 Write a program that prints the factors of a given number.
 Write a program that calculates the sum of the first
 Write a program that finds the sum of all the even numbers between 1 and
100 using a while loop.
 Write a program that finds the sum of all the odd numbers between 1 and
100 using a while loop.
 Write a program that finds the factorial of a given number using a while
loop.
 Write a program that prints the numbers from 1 to 100 using a do...loop
until structure.
 Write a program that prints the Fibonacci sequence using a do...loop
For enquires and questions contact
Chibi Tinodaishe M
tinodaishemchibi@[Link]
cell:0781081816
For online programming lessons :071 817 6525

GOOD LUCK
====================================================

You might also like