100 Prompt Examples you can try on Chat GPT
Here are 100 prompt examples related to programming that you can use for practice, brainstorming, or learning purposes:
1. Write a program to calculate the factorial of a given number.
2. Implement a function to check if a string is a palindrome.
3. Create a program to find the largest element in an array.
4. Design a basic calculator that can perform addition, subtraction, multiplication, and division.
5. Write a function to generate the Fibonacci sequence up to a certain number of terms.
6. Implement a function to reverse a string without using built-in functions.
7. Create a program to convert temperatures between Celsius and Fahrenheit.
8. Design a program to calculate the area of various geometric shapes (circle, triangle, rectangle, etc.).
9. Write a function to find the prime factors of a given number.
10. Implement a simple guessing game where the user has to guess a randomly generated number.
11. Create a program to sort an array of numbers using a sorting algorithm (e.g., bubble sort, insertion sort).
12. Write a function to check if a number is even or odd.
13. Implement a basic text-based tic-tac-toe game.
14. Design a program to calculate the distance between two points in a 2D plane.
15. Write a function to calculate the factorial of a given number using recursion.
16. Create a program to simulate a basic ATM machine with withdrawal, deposit, and balance check functionalities.
17. Implement a function to find the greatest common divisor (GCD) of two numbers.
18. Write a program that generates a multiplication table for a given number.
19. Design a program to find the roots of a quadratic equation.
20. Implement a function to find the nth term of the Fibonacci sequence using recursion.
21. Create a program that converts decimal numbers to binary representation.
22. Write a function to calculate the area of a triangle using Heron's formula.
23. Implement a basic calculator that can handle operations with fractions.
24. Design a program to check if a given year is a leap year.
25. Write a function to calculate the sum of digits of a given number.
26. Create a program to generate the first n prime numbers.
27. Implement a function to calculate the power of a number using recursion.
28. Write a program that simulates a basic quiz game with multiple-choice questions.
29. Design a program to find the volume of a sphere.
30. Implement a function to find the second largest element in an array.
31. Create a program to convert a binary number to its decimal equivalent.
32. Write a function to calculate the area of a rectangle given its length and width.
33. Implement a program that generates a random password of a specified length.
34. Design a program to calculate the perimeter of different geometric shapes.
35. Write a function to calculate the sum of an arithmetic series.
36. Create a program that simulates a basic banking system with multiple accounts.
37. Implement a function to check if a given string is a valid email address.
38. Write a program that simulates a simple inventory management system.
39. Design a program to calculate the compound interest over a specified period.
40. Implement a function to check if a number is a perfect square.
41. Create a program that simulates a basic online shopping cart system.
42. Write a function to find the LCM (Least Common Multiple) of two numbers.
43. Implement a program that generates a random quote of the day.
44. Design a program to calculate the area and circumference of a circle.
45. Write a function to count the number of vowels in a given string.
46. Create a program that simulates a basic address book with contact information.
47. Implement a function to reverse the words in a sentence.
48. Write a program that generates a simple calendar for a given month and year.
49. Design a program to calculate the distance between two coordinates on a map.
50. Implement a function to find the median of an array of numbers.
51. Create a program that simulates a basic library management system.
52. Write a function to convert a decimal number to its hexadecimal representation.
53. Design a program to calculate the area of a trapezoid.
54. Implement a program that converts a string to title case.
55. Write a function to check if a given string is a palindrome ignoring spaces and punctuation.
56. Create a program that simulates a basic ticket booking system for events.
57. Implement a function to find the factors of a given number.
58. Design a program to calculate the perimeter of a triangle.
59. Write a program that generates a simple to-do list with add, remove, and mark-as-complete functionalities.
60. Implement a function to check if a string is an anagram of another string.
61. Create a program that simulates a basic game of hangman.
62. Write a function to calculate the area of a polygon given its vertices.
63. Design a program to calculate the area and volume of a cylinder.
64. Implement a program that performs basic file operations (read, write, append).
65. Write a function to find the sum of the digits of a factorial number.
66. Create a program that simulates a basic chat application between multiple users.
67. Implement a function to calculate the greatest common divisor (GCD) of multiple numbers.
68. Design a program to calculate the area and volume of a cone.
69. Write a function to validate a credit card number using the Luhn algorithm.
70. Create a program that simulates a simple traffic light control system.
71. Implement a program that generates a random word from a list of words.
72. Design a program to calculate the area and volume of a rectangular prism.
73. Write a function to perform matrix addition and subtraction.
74. Create a program that simulates a basic quiz with true/false questions.
75. Implement a function to check if a number is a perfect number.
76. Design a program to calculate the area and volume of a sphere.
77. Write a program that generates a simple calculator with a graphical user interface.
78. Create a program that simulates a basic restaurant ordering system.
79. Implement a function to find the roots of a cubic equation.
80. Design a program to calculate the area and volume of a pyramid.
81. Write a function to perform matrix multiplication.
82. Create a program that simulates a basic music player with play, pause, and skip functionalities
.
83. Implement a program that generates a random password with specific criteria (length, uppercase, lowercase, digits).
84. Design a program to calculate the area and volume of a torus (doughnut shape).
85. Write a function to check if a number is a Harshad (Niven) number.
86. Create a program that simulates a basic flight booking system.
87. Implement a function to find the sum of all prime numbers within a given range.
88. Design a program to calculate the area and volume of a parallelepiped.
89. Write a program that generates a simple currency converter.
90. Create a program that simulates a basic weather forecasting app.
91. Implement a function to find the Armstrong numbers within a specified range.
92. Design a program to calculate the area and volume of a frustum.
93. Write a function to calculate the Hamming distance between two strings.
94. Create a program that simulates a basic calendar application with event scheduling.
95. Implement a function to find the sum of digits raised to a power in a given number.
96. Design a program to calculate the area and volume of an ellipsoid.
97. Write a program that generates a simple unit converter for length, weight, and volume.
98. Create a program that simulates a basic social media posting and commenting system.
99. Implement a function to check if a number is a palindrome in a given base.
100. Design a program to calculate the area and volume of a hyperboloid.
Comments
Post a Comment