0% found this document useful (0 votes)
22 views9 pages

C# PROJECTS Year 2

This document provides examples of C# projects that require basic programming concepts. It includes projects like a temperature converter, simple quiz, text file search tool, and random password generator. It also provides additional C# programs that take number input and output like calculating BMI or determining if a number is prime.

Uploaded by

justin.friend05
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)
22 views9 pages

C# PROJECTS Year 2

This document provides examples of C# projects that require basic programming concepts. It includes projects like a temperature converter, simple quiz, text file search tool, and random password generator. It also provides additional C# programs that take number input and output like calculating BMI or determining if a number is prime.

Uploaded by

justin.friend05
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
You are on page 1/ 9

SIMLINDILE SIMIEY MZONDI WRAV101

PLEASE DO NOT CHEAT


YOURSELF BE HONEST AND
PRACTICE DILIGENLTY…DO
NOT CLOG MY INBOX WITH
MESSAGES WHEN YOU ARE
STUCK SEND MESSAGES TO
THE GROUP. WE WILL HELP
EACH OTHER ON THE GROUP.
THIS DOCUMENT CONSISTS OF ALL THE BASIC THINGS WE LEARNED IN
CLASS TILL CONDITIONALS AND THERE MIGHT BE A BIT OF GRAPHIC USER
INTERFACE REQUIRED PLEASE IF YOU FIND ANYTHING CHALLEBGING SEND
MESSAGES TO THE GROUP.
THANK YOU FOR USING THIS INFORMATION!!!!!

C# PROJECTS THAT REQUIRE ME


TO USE THE BASICS EVEN MORE
1. Temperature converter: Create a program that prompts the user to enter a
temperature in Fahrenheit, converts the temperature to Celsius using the formula:
(Fahrenheit - 32) * 5 / 9, and displays the converted temperature to the user. Allow
the user to continue converting temperatures until they choose to exit the program.

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

C# PROGRAMS THAT ARE NUMBER


INPUT-OUTPUT DRIVEN
1) Write a program that takes two integers as input and displays their sum,
difference, product, and quotient.
2) Write a program that determines if a given number is even or odd.
3) Write a program that determines if a given year is a leap year.
4) Write a program that takes three integers as input and displays the
largest and smallest of the three.
5) Write a program that takes a user's age as input and determines if they
are old enough to vote (18 or older).
6) Write a program that takes a user's weight and height as input and
calculates their body mass index (BMI).
7) Write a program that takes a user's age and income as input and
determines if they are eligible for a certain tax credit.
8) Write a program that takes a user's name and age as input and displays a
personalized greeting.
9) Write a program that takes a user's name and favorite color as input and
displays a message that combines the two.
10) Write a program that takes a user's name and birth year as input and
displays their age.
11) Write a program that takes a user's birth month and day as input and
determines their astrological sign.
12) Write a program that takes a user's birth year as input and determines
their Chinese zodiac sign.
13) Write a program that takes a user's name and a password as input and
determines if the password is correct.
14) Write a program that takes a user's favorite animal and displays a message
that includes the animal's sound.
15) Write a program that takes a user's favorite number and determines if it
is a prime number.
16) Write a program that takes a user's favorite color and displays a message
that includes the color's RGB values.
17) Write a program that takes a user's favorite fruit and displays a message
that includes its nutritional value.
18) Write a program that takes a user's age and displays the number of
seconds they have been alive.
19) Write a program that takes a user's age and displays the number of days
they have been alive.
20) Write a program that takes a user's age and displays the number of hours
they have been alive.

3
SIMLINDILE SIMIEY MZONDI WRAV101

THESE ONES MIGHT BE REPEATING


THEMSELSVES BUT I WILL USE THEM
IF I HADN’T USES THEM

a)Temperature converter:
Tasks:

Prompt the user to enter a temperature in Fahrenheit

Convert the temperature to Celsius using the formula: (Fahrenheit - 32) * 5 / 9

Display the converted temperature to the user

Allow the user to continue converting temperatures until they choose to exit the
program

b)Simple quiz program:


Tasks:

Create a quiz 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

c) Text file search tool:


Tasks:

Prompt the user to enter a search term

Search a text file for occurrences of the search term

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)

Perform the selected operation on the two numbers

Display the result to the user

Allow the user to continue performing calculations until they choose to exit the
program

e) Random password generator:


Tasks:

Prompt the user to select the desired length of the password

Generate a random password consisting of a combination of letters, numbers,


and symbols

Display the generated password to the user

Allow the user to generate a new password until they are satisfied with the
result

f) Simple hangman game:


Tasks:

Randomly select a word from a predefined list of words

Display a series of underscores, one for each letter in the selected word

Prompt the user to guess a letter

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

Display a message indicating whether the user won or lost

g) Personal information storage system:

Tasks:

Prompt the user to enter their name, address, phone number, and email address

Store the information in a file or database

Allow the user to retrieve their information by searching for their name or
phone number

Display the retrieved information to the user

h)Basic encryption/decryption system:


Tasks:

Prompt the user to enter a message to encrypt

Allow the user to select a simple encryption method (such as shifting each letter
by a certain number of spaces)

Encrypt the message using the selected method

Display the encrypted message to the user

Allow the user to decrypt the message using the same method

Display the decrypted message to the user

i) Simple shopping cart system:


Tasks:

Create a list of items with prices

Prompt the user to select an item to purchase and the quantity they want to buy

Add the selected item and quantity to a shopping cart

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

Calculate the total cost of the items in the shopping cart

6
SIMLINDILE SIMIEY MZONDI WRAV101

Display the total cost and prompt the user to enter payment information

j) Simple command-line game:


Tasks:

Create a simple game with a series of levels or challenges

Prompt the user to select a level or challenge to play

Display the rules and objectives of the selected level or challenge

Allow the user to attempt the level or challenge and track their progress

Display a success message if the user completes the level or challenge, or a


failure message if they do not

I hope these projects are help

k) Basic calculator:
Tasks:

Prompt the user to enter two numbers

Prompt the user to select an operation (addition, subtraction, multiplication, or


division)

Perform the selected operation on the two numbers

Display the result

l) Rock-paper-scissors game:
Tasks:

Prompt the user to enter their choice of rock, paper, or scissors

Randomly select a choice for the computer

Compare the user's choice to the computer's choice and determine the winner
(or a tie)

Display the winner (or a tie)

m) Temperature conversion:
Tasks:

7
SIMLINDILE SIMIEY MZONDI WRAV101

Prompt the user to enter a temperature in Celsius or Fahrenheit

Prompt the user to select a conversion type (Celsius to Fahrenheit or Fahrenheit


to Celsius)

Perform the selected conversion

Display the result

n)Grade calculator:
Tasks:

Prompt the user to enter the number of assignments

Prompt the user to enter the weight of each assignment

Prompt the user to enter the grades for each assignment

Calculate the overall grade using the weighted average formula

Display the overall grade and letter grade based on a standard grading scale

o) Simple login system:


Tasks:

Prompt the user to enter a username and password

Check if the username and password match a predefined set of credentials

Display a success message if the credentials are correct, or an error message if


they are incorrect

p) Guess the number game:


Tasks:

Generate a random number between 1 and 100

Prompt the user to guess the number

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

Display the number of attempts it took to guess correctly

q)Palindrome checker:
8
SIMLINDILE SIMIEY MZONDI WRAV101

Tasks:

Prompt the user to enter a word or phrase

Check if the word or phrase is a palindrome (reads the same backward as


forward)

Display a message indicating whether the word or phrase is a palindrome or not

r) Fibonacci sequence generator:


Tasks:

Prompt the user to enter the number of terms in the sequence

Generate the Fibonacci sequence up to the specified number of terms

Display the sequence to the user

You might also like