C# PROJECTS Year 2
C# PROJECTS Year 2
2. Simple quiz program: Create a quiz program with a set of questions and multiple-
choice answers. Prompt the user to select a quiz to take, display each question and
its multiple-choice answers, prompt the user to select an answer for each question,
keep track of the number of correct answers, and display the user's score at the end
of the quiz.
3. Text file search tool: Create a program that prompts the user to enter a search
term, searches a text file for occurrences of the search term, displays the line
number and contents of each line containing the search term, and allows the user to
continue searching the text file until they choose to exit the program.
1
SIMLINDILE SIMIEY MZONDI WRAV101
4. Simple calculator: Create a program that prompts the user to enter two numbers
and an operation to perform (such as addition, subtraction, multiplication, or
division), performs the selected operation on the two numbers, displays the result
to the user, and allows the user to continue performing calculations until they
choose to exit the program.
5. Random password generator: Create a program that prompts the user to select the
desired length of the password, generates a random password consisting of a
combination of letters, numbers, and symbols, displays the generated password to
the user, and allows the user to generate a new password until they are satisfied
with the result.
2
SIMLINDILE SIMIEY MZONDI WRAV101
3
SIMLINDILE SIMIEY MZONDI WRAV101
a)Temperature converter:
Tasks:
Allow the user to continue converting temperatures until they choose to exit the
program
Keep track of the number of correct answers and display the user's score at the
end of the quiz
Display the line number and contents of each line containing the search term
4
SIMLINDILE SIMIEY MZONDI WRAV101
Allow the user to continue searching the text file until they choose to exit the
program
d)Simple calculator:
Tasks:
Prompt the user to enter two numbers and an operation to perform (such as
addition, subtraction, multiplication, or division)
Allow the user to continue performing calculations until they choose to exit the
program
Allow the user to generate a new password until they are satisfied with the
result
Display a series of underscores, one for each letter in the selected word
Check if the letter is in the word and display it in the appropriate position(s) in
the word
Allow the user to continue guessing letters until they correctly guess the entire
word or run out of attempts
5
SIMLINDILE SIMIEY MZONDI WRAV101
Tasks:
Prompt the user to enter their name, address, phone number, and email address
Allow the user to retrieve their information by searching for their name or
phone number
Allow the user to select a simple encryption method (such as shifting each letter
by a certain number of spaces)
Allow the user to decrypt the message using the same method
Prompt the user to select an item to purchase and the quantity they want to buy
Allow the user to continue adding items to the shopping cart or proceed to
checkout
Display the items in the shopping cart with their prices and quantities
6
SIMLINDILE SIMIEY MZONDI WRAV101
Display the total cost and prompt the user to enter payment information
Allow the user to attempt the level or challenge and track their progress
k) Basic calculator:
Tasks:
l) Rock-paper-scissors game:
Tasks:
Compare the user's choice to the computer's choice and determine the winner
(or a tie)
m) Temperature conversion:
Tasks:
7
SIMLINDILE SIMIEY MZONDI WRAV101
n)Grade calculator:
Tasks:
Display the overall grade and letter grade based on a standard grading scale
Check if the guess is too high or too low and provide a hint
Allow the user to continue guessing until they correctly guess the number
q)Palindrome checker:
8
SIMLINDILE SIMIEY MZONDI WRAV101
Tasks: