Create a program using C# that implements the stream ciphers Cryptographic method . A stream cipher method inputs digits, bits, or characters and encrypts the stream of data. The onetime pad is an example of a stream cipher.
In this formative you have been requested to create an application that will work as the One-time pad (OTP), also called Vernam-cipher or the perfect cipher. This is a crypto algorithm where plaintext is combined with a random key and generate a ciphertext.
Marks allocation
1. The programme should received a string " How are you Isaac " - 10
2. The programme should generate an OTP of the length of the string entered "How are you Isaac "- 10
3. The program should Generate a Ciphertext based on the above example- 30
Using C# and Visual Studio, design and implement a standalone command-line application that
fulfils the following requirements:
1. The user shall be able to enter the following values:
a. Gross monthly income (before deductions).
b. Estimated monthly tax deducted.
c. Estimated monthly expenditures in each of the following categories:
i. Groceries
ii. Water and lights
iii. Travel costs (including petrol)
iv. Cell phone and telephone
v. Other expenses
Write a C# program that displays the current directory and then and size of all files are stored in the directory. Your display should be aesthetically pleasing. Numbers should be number aligned and matted with a separator. Provide headings over the column listings.
Using visual studio (C#) to create a program, name it PRGYOURNAMEFA1, that implements a search and replace function recursively. Your program should allow a user to enter a string , a substring to be replaced in the entered string and a character/s to replace the found substring
Program Structure
1. A main class that implements the logic of the program – name this class TestSearchReplace
2. Add a class named SearchReplace to the main class with two methods, including:
a. SearchSubstring()- return method
b. ReplaceSubString() - void method
The two method should be called using an object in the main class. DONT CREATE THE TWO METHODS IN THE MAIN CLASS
Sample Output
Create a program using C# that implements the stream ciphers Cryptographic method . A stream cipher method inputs digits, bits, or characters and encrypts the stream of data. The onetime pad is an example of a stream cipher.
In this formative you have been requested to create an application that will work as the One-time pad (OTP), also called Vernam-cipher or the perfect cipher. This is a crypto algorithm where plaintext is combined with a random key and generate a ciphertext.
Marks allocation
1. The programme should received a string " How are you Isaac " - 10
2. The programme should generate an OTP of the length of the string entered "How are you Isaac "- 10
3. The program should Generate a Ciphertext based on the above example- 30
1.Create a console program that will perform the following:
•Ask the user to enter five (5) grades
•Compute the average of the grades
•Round of the average using method of Math class
2. Name the project as ComputeAverageApp and the class as ComputeAverageProgram.
Example output:
Enter 5 grades separated by new Line.
90
83
87
98
93
The average is 90.2 and round off to 90.
The miles per gallon (mpg) of a car can be calculated by dividing the miles driven by the number of gallons of gas used. Any time you have division in a computer program you have to check division by zero (the results of division by zero is infinity). If you don't a user could input zero for the number of gallons used and crash your program. You should also always check that any numeric input only accepts numbers and not letters, and that any numeric input is reasonable. For example, miles driven is probably not more than 1000 miles and is also a positive value (negative miles driven makes no sense, as does negative gallons used).
Assignment: Write a program to calculate mpg given miles driven and gallons used. Use exception handling in C# to check for numeric inputs and division by zero. Use appropriate logic to check for the reasonableness of the inputs.
Write a console application that uses at least five different method of math class. Provide a meaningful identifier of the variables are constant. Name the namespace as mathApp and it's class as mathProgram.
Write console application that initializes at least five variables or constant with different data types then display their values. Provide a meaningful identifier of the variable or constant.
Create a console program that will perform the following:
•
Ask the user to enter five (5) grades
•
Compute the average of the grades
•
Round of the average using method of Math class
Example output:
Enter 5 grades separated by new Line.
90
83
87
98
93
The average is 90.2 and round off to 90.