Create a method that receives a string of plaintext

Assignment Help Computer Engineering
Reference no: EM132200996

Question :

Write a java program that takes an input string from ‘a' to ‘z' or ‘A' to ‘Z' and transforms it to integers from 0 to 25.

If you encounter a space, it should be mapped to 26. In the program, create a method that receives a string of plaintext corresponding to a line of input, and returns the corresponding numbers as an array of integers.

Note: 'a' and 'A' both correspomd to 0. While 'b' and 'B' both correspond to 1, etc.

Example input 1:

A car

Example output 1:

0 26 2 0 17

Example input 2:

a

B

cD

Example output 2:

0

1

2 3

Reference no: EM132200996

Questions Cloud

What has happened to the share of trade in gdp over time : This exercise is designed to help one find the World Bank's World Development Indicators, extract data, and make sense of the numbers. Go to the database.
Cost function satisfy law of diminishing returns : a. Explain if this cost function satisfy law of diminishing returns.
Amount of labor and k is the amount of capital : Consider the following production function : Q = 10L2K, where Q is the amount of production,L is the amount of Labor and K is the amount of Capital.
What is the maximum change in the money supply : Suppose John deposits 20 million into his checking account, if the reserve requirement ratio is .1, what is the maximum change in the money supply?
Create a method that receives a string of plaintext : Write a java program that takes an input string from ‘a' to ‘z' or ‘A' to ‘Z' and transforms it to integers from 0 to 25.
What is meant by the globalization of markets : What is meant by the 'Globalization of Markets, provide example derives from telecommunication industry
What is the probability of a type i error : The decision rule is adopted to shut down the filling machine if the sample mean weight for a sample of 40 bags is below 49.7.
Calculate the amount of the mortgage payment : Write a Java program that reads the amount of a mortgage payment and the amount still owed - the outstanding balance.
What is the empirical relevance of the h-o theory : What is the empirical relevance of the H-O theory and the new trade theories? What is the relationship between transportation costs and nontraded

Reviews

Write a Review

Computer Engineering Questions & Answers

  Briefly explain the difference mesh, bus, ring, and star top

Briefly explain the difference, including advantages and disadvantages Ethernet, Token Ring, FDDI, and Wireless.

  Povide an example of a company you believe has a good

in a two-page apa formatted paper provide analysis answering the followingnetwork design is a key business decision as

  Implement in java a bus ticket management system

You must design and implement in Java a Bus Ticket Management System corresponding to the scenario - System Development for Business Processes

  Prepare a word document that shows your program plan

Prepare a Word document that shows your program plan description including class diagram and your pseudocode defining program logic.

  A program that count both capitalized and lower case

Write a function named countArticles() that count both capitalized and lower case instances of articles.

  Describe how to process such a drug order of k requests

Describe how to process such a drug order of k requests so that it can be fulfilled in O(k log(n/k)) time, assuming the bottle sizes are stored.

  Write specifications for a function that computes the change

Write specifications (documentation) for a function that computes the change, if any, that you should receive.

  What you must do to turn the data into a usable format

For each of these data sources, explain what you must do to turn this data into a usable format on your computer for analysis.

  Develop a product service idea

After reviewing the assigned reading materials, complete the following activities: Describe the product/service including the benefits of using the product.

  What is the best process to dispose of a cell phone

What is the best way to dispose of the cell phone without leaving your personal information out there for someone else to access? In this disposable society, cell phones are good for about 2 years and you buy a new one. The old one usually ends up..

  Create an manages a 2d array of ints

Creates an manages a 2d array of ints. It has a constructor that takes a 2d array as a parameter and assigns it to the instance variable.

  Create a table with your results

Have a global floating-point Array whose size, ARRAYSIZE - Draw a graph. The X axis will be the number of threads.

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