Provide a complete program that performs substitution cipher

Assignment Help Programming Languages
Reference no: EM13757891

Provide a complete program that performs a simple substitution cipher. The program should take plain text and a shift value and produce the encrypted text. Then it should take encrypted text and a shift value and produce the plain text once again. A different encrypted text and shift can be entered so make sure to get input.

Example:

EASTER shifted by 3 to left would become HDVWHU

HWVDHU shifted by 3 to right would become EASTER

This is how the early Caesar Cipher worked.

Provide a main method. It should:

Get input for a string and a shift value

Convert to upper case

Only perform the following items on alphabetic characters between A and Z

Utilize a for loop which uses postfix incrementing operator

Convert character to its ASCII equivalent (type cast)

Shift buy shift value entered above

If you reach end of alphabet, wrap around

Example: A shifted to the left 2 would become Y

Convert back to its character equivalent (type cast)

Output the new character

Get input for a string and a shift value

Perform same steps above to convert the encrypted text back to plain text

Be sure to get input again as a different encrypted text may be entered

Utilize postfix increment/decrement operations and compound assignment operators for all math. Example: x++ or x+=2.

80%

Mimic the sample session precisely.

Reference no: EM13757891

Write a utility that converts dollars to coins

For the program, you will write a utility that converts dollars to coins. It is a simple program that must have the following: Multiple outputs to the screen

Write class which accepts user-s hourly rate of pay

Write down class which accepts the user's hourly rate of pay and number of hours worked. Display user's gross pay, withholding tax (15% of gross pay).

Create access keys for the buttons with the v underlined

Create access keys for the buttons with the "V" underlined for the Update Verse and the F underlined for the Update Font buttons. Create an access key for the "V" underline

Advantages of contemporary languages allow kinds of comments

Many contemporary languages allow two kinds of comments, one in which delimiters are used on both ends (for multiple line comments), and one in which a delimiter marks on

How many school districts are there in your sample

How many school districts are there in your sample? How many schools are there in the district with the largest number of schools? How many schools are there in the district

Write simple program to prompt user for gross salary

Write simple program which will prompt user for his or her gross salary. Your program than will display net salary whereby 11.00% of the gross salary is deducted for EPF

Write class which uses string array or arraylist

Write the class which uses string array or arraylist object to holld five students, array to hold five charters student letter grade) and five arrays of doubles each to hold

Compute the monthly payment on a loan

James wants to buy a motorcycle. Help James compute the monthly payment on a loan, given the loan amount, the annual percentage rate of interest, and the number of monthly p

Reviews

Write a Review

 
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd