Write a program in Java to input a letter. If it is an uppercase letter then

encode it by next 5th letter, otherwise encode it with 3rd previous letter in the

ASCII table.​

Answers

Answer 1

Answer:

The program is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 char chr;

 System.out.print("Input Character: ");

 chr = input.next().charAt(0);

 if(Character.isUpperCase(chr) == true){      chr+=5;  }

 else{      chr-=3;  }

 System.out.println("Encode Character: "+chr);

}

}

Explanation:

This declares the character

 char chr;

This prompts for input

 System.out.print("Input Character: ");

This gets the input from the user

 chr = input.next().charAt(0);

This checks for uppercase; if true, it is encoded by the next 5th

 if(Character.isUpperCase(chr) == true){      chr+=5;  }

If lowercase, it is encoded by the previous 3rd

 else{      chr-=3;  }

This prints the encoded character

 System.out.println("Encode Character: "+chr);


Related Questions

The kinetoscope is ___________________ a. a disk with a series of drawings around the edge, showing the same object in slightly different poses. b. a standard communications protocol used to connect computer networks around the world. c. a device that creates the illusion of movement and was the forerunner to the modern projector. d. a portable device for recording audio and video.

Answers

Answer: the answer is c

Answer:

C

Explanation:

The database of viruses that an antivirus software scans for is called​

Answers

Answer:

The anti virus scanner is the answer.

Explain what PowerGaming in FiveM

Answers

powergaming is a style of interacting with games or game-like systems,particularly video games,and role playing games with the aim of maximizing progress towards a specific goal.

You have typed the characters 3rd. Which of the following formatting features should be used to format the 'rd'?

1. superscript
2. Highlight
3. Sub script
4. Italics

Answers

Answer:

1. Superscript

3rd written as 3ʳᵈ

Explanation:

A superscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly above it.

Select the text or number you want.

Steps to apply superscript

1. Select the text or number you want

2. Go to Home and select Superscript X²

3rd written as 3ʳᵈ

The same rule applies to

9th written as 9ᵗʰ

which key helps us exit from the current window​

Answers

Answer:

Control + F4 : it closes the current window

list the importance and impacts of computer in our life . please help me ​

Answers

Answer:

- It has greatly helped our work efficiency

- It makes the work easier and more convenient

- Communication is also made possible through computers

What will the Document search option search through?

Answers

Answer:

hi

Explanation:

nynttnynybynynynumkol0

Telemedicine is the use of medical information exchanged from one site
to another via:
A.Written communication
B.Verbal communication
C.Print communication
D.Electronic communication

Answers

Answer:

D. Electronic communication

Explanation:

Telemedicine is the term given to the method of distributing the services and information related to the health through the means of electronic communication. This practice helps patients in the remote areas or geographically far areas to reach to the medical sources. The patients can get assistance and in touch with the doctors through video-conferencing or telephonic means.

A spreadsheet contains the maximum weight and maximum height for fifty dog breeds. The breeds are located in rows, and the weights and heights are listed in columns. Emily needs to determine the maximum weight of the dog breed in row 43. Which tool could she use to quickly navigate to the information?

Answers

Answer:

a. Locate

Explanation:

Question options (obtained on the net):

a. Locate

b. Sort

c. Filter

d. Replace

Explanation:

The largest value of the weights of the dog breed in row 43 is the maximum weight of the dog breed in the row

The 'MAX' formula or the 'Autosum' tool can be used to give the largest value in a row, or column

To locate the maximum value in MS Excel, the ADDRESS and MATCH and MAX functions are combined and entered into the blank cell on the right, specifying the same range for the MAX and MATCH functions, and a '0' for the MATCH function as well as a '1' for the ADDRESS function as follows;

=ADDRESS(MATCH(MAX(A1:E1), A1:E1, 0), 1)

Therefore, to navigate to the maximum weight, Emily should use a locate(ing) tool navigate to the information on the spread sheet

Answer:

A. Locate

Explanation:

E2020!

help please I would really appreciate

Answers

Answer:

the answer is address bar

Answer:

This is called an address bar

Explanation:

It tells your computer where to send the data and what website you are trying to communicate with.

:)

Please Helppp!!!! What type of lighting works best in the morning and at dusk?

__________ gets its light from the sun or moon and is best for photographs that photographers take in the morning or at dusk.

(I already tried natural because it was in the lesson and it said it was wrong)

Answers

Answer:

solar light

Explanation:

This is because at this time, the sun is in the right place to illuminate the scene from the right angles, without overpowering the photograph. Light is one of the most important factors to take into account when taking a photograph.

Which statement best describes an advantage of using the Subtotal dialog box?

Only one function, Add, can be used to combine data quickly.
Data from multiple workbooks can be combined in a single step.
An option is available that can customize any function available in Excel.
Data can be summarized using a single step rather than by writing multiple formulas.

Answers

Answer: Data from multiple workbooks can be combined in a single step.

Explanation:

The Subtotal command allows the creation of groups automatically and common functions such as COUNT, SUM, and AVERAGE are used in the summarizing of data.

An advantage of using the Subtotal dialog box is that data from multiple workbooks can be combined in a single step. Therefore, the correct option is B.

help,these are true and false and tick and cross ​

Answers

Answer:

1.

a.true

b.false

2a internal

Explanation:

hope it helps you

Do you remember your first 3D movie experience? What was the movie, what was the experience like, and why was it memorable? (If you have not seen a 3D movie ask a friend or family member and report on their experience.)

Answers

Answer:

I went to my first 3d movie when I was 12. I remember thinking that it wouldnt look real or realistic but when I tried it out it was pleasantly surprised on how real it looked.

Explanation:

Q4. What is one of the benefits of using a library in a program?

Answers

Answer:

Simplifies creating a complex program

Explanation:

A professional-looking portfolio gives a clear message. What does it convey?
Ο Α. .
that you like to build up a sales pitch
OB. that you like to flaunt your work
OC. that you are serious about your work
OD.
that you put on a show for effect
Ο Ε.
that you only care about appearances
Reset
Next

Answers

Answer:a

Explanation:

A professional-looking portfolio gives a clear message that you put on a show for effect. Thus, the correct option is D). that you put on a show for effect.

What is a professional portfolio?

Professional portfolio refers to the collection of work and other documents that make clear the abilities of the candidate to the potential employers.  It can be created in both digital and physical format.

A portfolio is an collected album of all work samples and professional documentation that provides proof about the accomplishments, skills, potential and samples of an individual's work.  

In order to give portfolio a professional look, there are several categories to be consider such as Personal Information, Values, Personal Goals and History, Accomplishments and Job History, Skills and Attributes, Education and Training as well.

Learn more about professional portfolio here:-

https://brainly.com/question/20411709

#SPJ2

Um sistema resistivo opera com resistência total de 10K ohms,em uma rede elétrica com tensão de 380V.Qual a intensidade da corrente que passa pelo sistema resistivo?

Answers

Answer:11

Explanation:

.

Which is an example of a crime that might occur in an e-commerce transaction?
A customer’s new purchase is stolen after delivery.
A customer’s credit card information is stolen and used by someone else.
A customer can easily take merchandise without having to pay for it.
A customer pays an unfair price for the merchandise she bought.

Answers

Answer:

A costumers credit card information is stolen and used by someone else.

Answer:

A customer's credit card information is stolen and used by someone else.

Explanation:

Since e-commerce is online sales, the customer can not take merchandise without having to pay for it.

Also the customer can search for the best price.

True or False: Using “OR” between search terms helps narrow down

Answers

the answer is true. nemenekekkelelsps
Yeah the answer is true

consider the following scenario. which portion of a motherboards chipset is most likely to he causing the problem and why? a user reports that her or his mouse is not responding. trying a different mouse foes not fix the problem

Answers

Answer:

Explanation:

Need full question.

Select the four bad password ideas.

A) lists of numbers in order, such as 1234

B) your name or your child's name

C) the word "password"

D) an inside joke you have with yourself

E) the name of the website

F) strings of random numbers

Answers

Answer:

the word "password", the name of the website, lists of numbers in order, such as 1234, your name or your child's name

Answer:

A,C,E,B

Explanation:

Which of these is a Boolean operator?
A. OR
B. YES
C. NO
D. CANCEL

Answers

Answer:

the answer would be A.OR

Explanation:

boolean operator examples are OR,AND NOT,NOT,AND

Answer:

A

Explanation:

it is what it is

Identify the correct way to cite the Occupational Outlook Handbook's "How to Become a Dentist" web page.
A.Occupational Outlook Handbook. "How to Become a Dentist." Bureau of Labor Statistics and US Department of Labor, 2012.
B."Occupational Outlook Handbook." How to Become a Dentist. Bureau of Labor Statistics and US Department of Labor, 29 March 2012. Web. 1 May 2013.
C."How to Become a Dentist." Occupational Outlook Handbook. Bureau of Labor Statistics and US Department of Labor, 29 March 2012. Web. 1 May 2013.
D.How to Become a Dentist, Occupational Outlook Handbook. Bureau of Labor Statistics and US Department of Labor, 2012. Web. 1 May 2013.

Answers

Answer:

C."How to Become a Dentist." Occupational Outlook Handbook. Bureau of Labor Statistics and US Department of Labor, 29 March 2012. Web. 1 May 2013.

Explanation:

When citing an online publication without a known author, the title of the article is first stated and encapsulated in italics. This is then followed by the name of the website or book. The organization responsible for the write-up is indicated. A comma separates the name of the organization and the date when the article was written. 'Web' is written to show that the material was obtained online. Finally, the date that tells when the article was retrieved is noted.

This guideline applies to both the Modern Language Association and the American Psychological Association citation styles.

Answer:

Identify the correct way to cite the Occupational Outlook Handbook's "How to Become a Dentist" web page. awser:C Explanation: How to Become a Dentist." Occupational Outlook Handbook. Bureau of Labor Statistics and US Department of Labor, 29 March 2012. Web. 1 May 2013.

What is the correct representation for ternary form?
A. A.A-B B.A-B-A C. A-B-A-C-A D. A-A-A

Answers

Answer:

C.) A B A

Explanation:

Ternary form, sometimes called song form, is a three-part musical form consisting of an opening section (A), a following section (B) and then a repetition of the first section (A).

what is meant by versatility in terms of features of computer?​

Answers

Answer:

Versatility refers to the capability of a computer to perform different kinds of works with same accuracy and efficiency.

Explanation:

thank me later

Versatility refers to the effort or ability of a computer to carry out different kinds of works and it is done that is done on the same level of accuracy and efficiency.

What is versatility in computer?

Computer is known to be a machine that is said to be versatile machine as it is made up of a lot of field and also involves in Multi-tasking.

Therefore, Versatility refers to the effort or ability of a computer to carry out different kinds of works and it is done that is done on the same level of accuracy and efficiency.

Learn more about Versatility from

https://brainly.com/question/26285269

#SPJ2

If a user has just added a simple triangle shape into a diagram, how can the triangle be adjusted? Check all that
apply.

O by making it bigger

O by adjusting it to be SmartArt

O by making it smaller

O by adjusting it to be different style

O by making it thinner

O by making it thicker

O by adjusting it to be a different color

O by rotating it

Answers

Mark Brainliest please

Answer :

By making it bigger
By adjusting it to be SmartArt

In which generation microprocessor was developed short answer of computer science​

Answers

Explanation:

in fourth generation microprocessor was developed.

may it helped u

who established computer​

Answers

Answer:

Charles Babbage

Explanation:

I studied abt him

What does GUI stands for and what is it function?​

Answers

Answer:

A GUI (graphical user interface) is a system of interactive visual components for computer software. A GUI displays objects that convey information, and represent actions that can be taken by the user. The objects change color, size, or visibility when the user interacts with them.

Answer:

[tex]\huge\boxed{Answer\hookleftarrow}[/tex]

GUI stands for Graphical User Interface.

It's main functions are to :-

present data files & apps in a graphical format (icons) .

GUI is easy to use & enables you to easily exchange information between software using cut and paste or 'drag and drop'.

ʰᵒᵖᵉ ⁱᵗ ʰᵉˡᵖˢ

# ꧁❣ RainbowSalt2²2² ࿐

Select three advantages of cloud computing.

A) large amount of storage capacity

B) no Internet access required

C) great flexibility

D) enhanced security

E) easily managed

Answers

Answer:

easily managed, large amount of storage capacity, great flexibility

Explanation:

Other Questions
What type of microscope can detect density differences and thereby see organelles in living cells 1 tu ha i t A n B vi qung ng l 40km . Khi i n B , tu dng li 20 pht ri i tip 30km n C vi vn tc ln hn vn tc khi i t A n B l 5km/h . Tnh vn tc ca tu khi i trn qung ng AB . Bit thi gian k t khi ti xut pht t A n khi ti C ht tt c 2gio bill changes 450 from his bank to $729 what exchange rate did he get? Please help me, its my last try Regions with warmer temperatures are found at _____________ and their location results in potentially longer growing seasons. lower latitudes higher latitudes higher longitudes lower longitudes This jacket is so thin. It can't possibly keep out the rain."(Use the boomerang method.) Help me please Help me please Help me please 1. A square is lengthened by 6 units in one direction and by 5 units in the otherdirection to make a rectangle, as shown in the diagram. The length of the sideof the original square is x units. What is the area of the whole new rectangle? the pH of orange juice is 4.0. what is the hydrogen ion concentration in orange juice ASAP PLEASE please answer this question Which is an equation of the inverse of y=3/2x? In air an object weighs 15N, when immersed in water it weighs 12N, when immersed in another liquid, it weighs 13N, Calculate the density of the object and that of the other liquid? What are 3 things thathappen to your body when you start exercisingregularly? 5. What does Laura have in common with Dequan and Isabel?a. They all got cut from the soccer team tryouts.b. They all think they are not good enough to play soccerC. They all had to sit on the bench for the full soccer season.d. They all believe that soccer is too difficult for them to play. A Whole New World From Disneys Aladdin 1. What is the extended metaphor in the song? 2. Provide two examples of how imagery is shown in this song. 1. 2. 3. Is this song an example of a monologue? Explain why or why not? 4. Give one example of a simile. 5. Give one example of alliteration.I will give you brainly if you aswer righ away please! Find the measure of the major arc Write the equation of the line passing through the point (2, 1) that is parallel to y=4x+3. Cotton grows in Nepal is transitive or intransitive verb how to find the constant of proportionality on a graph a) Find the model value of the given data:2,3,6,5,4,3,4,6,3