1.Prompt the user for a positive integer 'n' and calculate the sum of all natural numbers from 1 to 'n'.
2.Take an integer input from the user and display its multiplication table from 1 to 10.
3.Prompt the user to enter an integer and check if it's even or odd.
4.Ask the user for a year and determine if it's a leap year or not.
5.Prompt the user for three numbers and find the greatest among them.
6.Prompt the user to enter a number and determine if it's positive, negative, or zero.
7.Ask the user to enter a character and check if it's a vowel or a consonant.
8.Prompt the user for a positive integer and reverse its digits.
9.Create a simple menu-driven calculator that allows the user to perform addition, subtraction, multiplication, and division on two numbers.
10.Ask the user for a string and reverse it.
11.Prompt the user for two strings and check if they are equal.
12.Ask the user for a character and convert it to lowercase if it's an uppercase letter.
13.Take an integer input from the user and determine if it's a prime number.
14. Create a program that takes a test score as input and uses if and else if statements to determine the corresponding grade (A, B, C, D, or F). Display the grade.
15.Create a simple menu-driven program that asks the user to choose between two options. Use an if statement to perform the selected action.
16.Write a program that asks the user for their age and uses an if statement to determine the ticket price at a movie theater. Tickets cost $10 for adults (age 18-64), $5 for children (age 0-17), and $7 for seniors (age 65+).
17.Implement a basic password checker. Ask the user to enter a password, and use an if statement to check if it meets certain criteria (e.g., length >= 8 characters, contains at least one uppercase letter and one digit).
18. Ask the user to input a character, and use an if statement to check if it's uppercase, lowercase, a digit, or a special character. Display the result.
19.Ask the user to input a month (1-12) and use if statements to determine the number of days in that month. Display the result.
20. Prompt the user to input the coefficients of a quadratic equation (a, b, c) and use if statements to find and display the real roots of the equation (if they exist).
21.Implement a basic voting system. Ask the user for their age and use an if statement to determine if they are eligible to vote in an election (18 years or older). Display the eligibility status.
22.Prompt the user to enter two integers, and use if statements to check if one is divisible by the other. Display the result.
23.Implement a simple traffic light simulator program. Ask the user for a color ("red," "yellow," or "green"), and use if statements to display the appropriate message based on the color.
24.Create a program that asks the user to input their credit score and uses if statements to provide feedback on their creditworthiness (e.g., poor, fair, good, excellent).
25.Prompt the user for their annual income and credit score. Use if statements to determine whether they are eligible for a loan based on income and credit score criteria.
26. Implement a basic user authentication system. Ask the user for a username and password, and use if statements to check if they match predefined values.
27.Student Gradebook
Create a C++ program that manages a gradebook for a class. Allow the user to input student names and their scores for multiple assignments and exams. Calculate each student's final grade using a weighted average (assignments: 40%, exams: 60%). Display the grades and assign letter grades using if-else statements.
28.Library Catalog System
Develop a C++ program for a library catalog system. Allow users to search for books by title, author, or genre. Implement a menu-driven interface using switch-case statements for user interaction and nested if-else statements to handle various search options.
.jpg)
.jpg)