Define a class named yourlastname

Assignment Help Basic Computer Science
Reference no: EM132200872

1. Define a class named YourLastName, with the following methods:

- getString: to get a string from console input

- printString: to print the string in upper case

- encryptString: will return the string encrypted using Caesar's Cipher.

- decryptScript: will return the original string assuming it was encrypted using Caesar's Cipher.

Note: the number of letters on your last name will determine the shift amount on the Caesar's Cipher.

Also please include simple test function to test the class methods.

Reference no: EM132200872

Questions Cloud

What is the equilibrium consumption level : Suppose a consumer maximizes U(C,l) = ln(C) + ln(l), where C is consumption and l is leisure. The maximum time available for work and leisure is 1.
Write a java program that contains a method : The method opens the file specified in the method argument filename and then reads integers from it. This file can contain any number of integers.
What is the process of creating an er diagram : In SQL 9th edition how do I delete a table? And what is the process of creating an ER diagram?
Display a table showing the days and the temperatures : Write a Java program that contains a method named DisplayTemperature. The argument to this method is the number of days and the temperature on the first day.
Define a class named yourlastname : 1. Define a class named YourLastName, with the following methods:
Provide a careful explanation as to why given might be case : Regions under a single insurance policy rather than separate policies. The total premium under the combined policy is less than the total cost.
Write a java program to generate 6 random lottery numbers : Write a Java program to generate 6 random lottery numbers. Your program should generate 5 numbers between 1 and 60.
Write a java program that take as input any change expressed : Write a Java program that takes as input any change expressed in cents and computes the number of half-dollars, quarters, dimes, nickels.
Types of programming errors : Can someone tell me the difference between the following types of programming errors?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Program that allows a user to enter a number

Design the logic for a program that allows a user to enter a number. Display the sum of every number from 1 through the entered number.

  Create effective navigation for the application or site

Create effective navigation for the application or site

  Theories of security management

1. Evaluate the effectiveness of the physical and environmental security measures that the organization you researched used in regard to protecting its assets. Indicate improvements to the organization's security measures where applicable. Justify yo..

  Title-intellectual property

Intellectual property is a term used to describe works of the mind, such as art, books, films, formulas, inventions, music, and processes

  Discuss how to price this option using pdes and monte carlo

Suppose an option pays the maximum value of spot minus the minimum value of spot across a number of dates. Discuss how to price this option using PDEs and Monte Carlo.

  What is the probability that winona studied for it

Testing Winona's chances of passing a precalculus exam are 4/5 if she studies, and only 1/5 if she decides to take it easy. She knows that 2/3 of her class studied for and passed the exam. What is the probability that Winona studied for it?

  Unfortunately only fragments of writing

He was highly regarded in the ancient world, but unfortunately only fragments of his writing have survived.

  Benefits of recursion over simple loops

What are the benefits of recursion over simple loops? Can recursions be used to find specific words, find and replace these words? Would you use a loop or recursion for this?

  Find the number of days the company should operate

Production the James MacGregor Mining Company owns three mines: I, II, and III. Three grades of ore, A, B, and C, are mined at these mines.

  What is a normal profit

What is a normal profit and why would a long run operating business owner still be happy to keep their firm in operation if they were

  Enough evidence to support the claim

A professor claims that the average of scores obtained by Mathematics majors is close to the average of scores obtained by the Computer Science majors.

  Sketch on one diagram for the period

Sketch on one diagram for the period 1900 to 1950 how many people in total have been killed by each disease.

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