Hey everyone! I'm in a bit of a pickle here. My finals for C# are just around the corner, and I need to come up with my own program to write. I understand the concepts, but I'm totally drawing a blank on what to create. The program needs to include several requirements: it should get user input and store it in a variable, use different data types, have at least one array, incorporate an if/else statement, and include a method that I create. I also need to create and instantiate at least one class. I've mostly done set assignments and debugging throughout the course, so coming up with an original idea feels impossible right now. If anyone has any suggestions or topics to get me started, I'd really appreciate it!
7 Answers
How about creating a mad libs game? You can prompt the user for a set number of words and then fill those into a story. Or you could create a program that shows your friends their horoscope based on their birthdays. Just keep it simple! Don't overthink things—half your class will probably do lists anyway!
You could also write a unit converter that takes user input and uses different data types for the conversion selections. It's straightforward and meets the criteria!
Why not do something simple like a program that takes user input, stores it in an array, and prints everything back out when you type a specific command? It doesn't have to be fancy, just functional!
You’ve got tons of options! Here are a few ideas:
- Build a to-do or shopping list manager where you can add, remove, and rearrange items.
- Create a recipe calculator that takes ingredients and calculates calories or nutrients.
- Make a basic calculator for sunrise/sunset times based on input dates and locations.
- A simple game like Connect Four or Hangman could work or even a character sheet for an RPG game.
- A simple route planner might be fun, handling a few basic locations along a straight path.
These should fit your requirements perfectly!
Thanks for these ideas! I always get stressed trying to think of something original. You've really helped me out!
Totally agree, a to-do or shopping list makes perfect sense! Just let users add items, store them in an array, and allow them to edit or remove entries when they're done.
Thanks! It's such a simple idea, but I couldn't come up with it. I get so anxious when I need to think on the spot.
What about a 'Choose Your Adventure' game? You could instantiate a player object and use an array for the player's options. Every decision leads to a different response based on user input, using if/else statements. It's a fun way to put your skills to test!
What about making a simple Tic Tac Toe or Hangman game? They're classic projects that can really showcase your skills!
Yeah, but since we need to include comments explaining the code, I'm guessing they want something a bit more thought out.