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

  Estimate the percentage of all smokers who

Assuming it is reasonable to regard this sample as representative of all smokers, estimate the percentage of all smokers who, when given this treatment

  Android approach of requiring the user

From a security standpoint, do you believe the Apple approach of hiding permissions or the Android approach of requiring the user to accept application

  Different training formats for different audiences

What formatting styles can training take? Why would you have different training formats for different audiences?

  Security code review for a system

Discuss how a security code review for a system written in C would be similar to and different from a security code review of a system written in Python or Ruby.

  Find the altitude of the triangle

Each base angle of an isosceles triangle measures 55° 30. Each of the congruent sides is 10 centimeters long.

  Why omitting an input actually describes sequential circuit

explain why omitting an input actually describes a sequential circuit

  Explain the difference between data and information

Give your own best definition of information, and explain the difference between data and information. Your response should be at least 200 words in length. You are required to use at least your textbook as source material for your response. All sour..

  Forwarding table with a partially received lsdb

Explain why a router using link-state routing needs to receive the whole LSDB before creating and using its forwarding table. In other words, why can't the router create its forwarding table with a partially received LSDB?

  Define an accessor method to return the value of temperature

The temperature field should be set to the value 15.0 in the constructor. Define the mutators warmer and cooler, whose effect is to increase or decrease the value of temperature by 5.0° respectively. Define an accessor method to return the value o..

  Determining the testing compatibility

The Director of IT has asked you to consult with her on the best way to test the compatibility of applications on computers across

  What is windows network security

What is Windows Network Security? Necessary steps for implementing security on both a wired and wireless network?

  How much is equilibrium level of income or output

How much is equilibrium level of income or output if Fed decides to set the rate of interest at 10 percent (r=0.10).

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