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

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² ࿐


After you have figured out your storyline, what should be the next thing to
focus on?
1.character devlopment
2. What you want to name your video​

Answers

Answer: 2

A storyline figured out means you should already know the plot, setting, conflict, theme and characters (character development)
Figure out the story line, plan things out


Which tab is used to create a
new e-mail?

O File
O View
O Folder
O Home

Please help!!!!!!!!!!!!!

Answers

Answer:

Mail tab

Explanation:

Please mark as brainliest answer as it will also give you 3 points

File , brainliest answer. Hope this helps

What will the Document search option search through?

Answers

Answer:

hi

Explanation:

nynttnynybynynynumkol0

Isa wants to find out if his co-worker Alexis is available for an event on Wednesday, February 10th. Which calendar
view should he use?

O Schedule View

O Day View

O Week View

O Appointment View


Please help ASAP!!!!!!!!!!!

Answers

Appoint view
Hope this helps

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:

Explain the effects of disposing electronic equipments to the environment ​

Answers

Answer:

When electronics are improperly disposed and end up in landfills, toxic chemicals are released, impacting the earth's air, soil, water and ultimately, human health.

spam and i report
Maurice wants to create a variable to store the name of the second-best taco place. Maurice writes the line of code as 2ndtaco = "Tio Dan's" but gets an error message. What is the problem with Maurice’s code?

A.
There can’t be an apostrophe ' in a variable name.

B.
The equals sign should be a dash.

C.
The type of variable wasn’t specified.

D.
A variable name can’t begin with a number.

Answers

Answer:

option d is the correct answer

Answer:

For your other question I think it's true

Explanation:

place the features or components under the correct location. powerpoint start screen or power point user interface: online templates, dialog box launchers, thumbnail pane, slide pane, themes search field, recent files

Answers

Answer:

PP start screen: Recent Files, Online templates, Themes search field

Pp user interface: Side Pane, Thumbnail pane, Dialog box launches.

Explanation: Edg 2021

Answer:

Answer:

PP start screen: Recent Files, Online templates, Themes search field

Pp user interface: Side Pane, Thumbnail pane, Dialog box launches.

Explanation:

Edg 2021 just took test. Good Luck, Keep Going!!

What is the explanation of line 21-25

Answers

Answer:

The code is checking if a word in the word list matches a certain length and the first letter matches a certain letter... the for loop is what increments through the word list checking each word one by one for the specified conditions. If the word meets the conditions it is added to an array called filteredWordList.

Explanation:

Scientists have put genes into potato plants to make vaccines against cholera and hepatitis B.This type of research is called

Answers

Answer:

Edible vaccines

Explanation:

In the recent years, biotechnologist have developed a new concept known as the edible vaccines. The Edible vaccines are a subunit vaccines. Here the selected genes are first introduced into the plants and then the transgenic plant is induced to make the encoded protein. Foods like potato, corn, banana, soybean, lettuce, legumes and rice are used for these applications.

These edible vaccines can reduce diseases like the cholera, Hepatitis-B, diarrhea and other disease.

Explica la importancia que tiene el plan de trabajo (cronograma) en los proyectos y porque se realiza antes de ejecutar la solución seleccionada. ayuda es para hoy :c

Answers

Answer:

El plan de trabajo permite delimitar la necesidad a la cual se debe responder con una solución (descripción del problema), los hitos que se deben alcanzar (objetivos general y específico), los recursos requeridos para lograr desarrollar y aplicar la solución (marco teórico), los posibles beneficios derivados del proceso exitoso (justificación del proyecto) y una administración racional y realistas de los recursos a disposición en cuanto a disponibilidad, tiempo y personal mediante una secuenciación de tareas (i.e. diagramas de Gantt), todo reduce el componente iterativo inherente a diseño y producción de un producto, permite prever posibles imprevistos y mantener una perspectiva realista y una eficiencia aceptable en cuanto a presupuesto, metodologías y tecnologías a usar.

El plan de trabajo debe incluir principios de ingeniería concurrente para minimizar para manera mejor los posibles imprevistos, usualmente difíciles de manera con principios de ingeniería secuencial.

Explanation:

El plan de trabajo permite delimitar la necesidad a la cual se debe responder con una solución (descripción del problema), los hitos que se deben alcanzar (objetivos general y específico), los recursos requeridos para lograr desarrollar y aplicar la solución (marco teórico), los posibles beneficios derivados del proceso exitoso (justificación) y una administración racional y realistas de los recursos a disposición en cuanto a disponibilidad, tiempo y personal mediante una secuenciación de tareas (i.e. diagramas de Gantt), todo reduce el componente iterativo inherente a diseño y producción de un producto, permite prever posibles imprevistos y mantener una perspectiva realista y una eficiencia aceptable en cuanto a presupuesto, metodologías y tecnologías a usar.

El plan de trabajo debe incluir principios de ingeniería concurrente para minimizar para manera mejor los posibles imprevistos, usualmente difíciles de manera con principios de ingeniería secuencial.

Please please help me
3. Which of the following are the tips for safe internet browsing?

Customize your security settings.
Turn on Two-Factor Authentication whenever possible.
Bookmark important sites.
O All of the above

Answers

Answer:

increase your browser security settings

The tips for safe internet browsing is to customize your security settings. The correct option is A.

What is internet browsing?

Browsing means searching or exploring the internet. Nowadays, people search on the internet for getting information about something. It needs a computer or an electronic device in which there is access to the internet.

Internet is a wireless connection of various computers together. There are different types of internet connections, like Wi-Fi, hotspot, wire internet, etc. It is used in various things like studying, watching movies, etc. which is necessary for this current time.

Safe internet browsing means being safe from internet crimes, like cyber crimes and saving the computer from viruses, and saving your data on the computer. Do not open unknown sites and emails.

Thus, the correct option is A. Customize your security settings.

To learn more about internet browsing, refer to the link:

https://brainly.com/question/9909761

#SPJ5

Select three advantages to using digital video.

A) Digital video appears to have more depth.

B) Digital video can capture a greater range of brightness.

C) Digital video is much less expensive than film.

D) Digital video be easily edited and shared.

E) Digital video can be viewed in real time where it was taken.

Answers

C. E and D, I believe. I apologize if I’m incorrect!

Answer:

Digital video be easily edited and shared., Digital video is much less expensive than film., Digital video can be viewed in real time where it was taken.

Explanation:

what is the effect of flattening layers in image editing?
you can reduce file size by flattening layers. this operation mergers all ___ layers into the background and discards hidden layers.
all ___ areas that remain are filled with white.

first blank
a. black
b. colored
c. transparent

second blank
a. dark
b. visible
c. bright

Answers

The answer to this blanks are black and visible

Answer:

Hello There!!

Explanation:

I believe the answers are:

-First blank=>c. transparent

-Second blank=>b. visible.

hope this helps,have a great day!!

~Pinky~

iii. Write the pseudocode for a program to take two integer inputs and the operator from user and
display the answers of four basic arithmetic operations ( +- */).

Answers

Answer:

The pseudocode is as follows:

Input num1, num2

input operator

print num1 + num2

print num1 - num2

print num1 * num2

if num2 != 0

    print num1 / num2

else

    print "Cannot divide by 0"

Explanation:

This gets input for both numbers

Input num1, num2

This gets input for the operator

input operator

This prints the sum

print num1 + num2

This prints the difference

print num1 - num2

This prints the product

print num1 * num2

This prints the division if the divisor is not 0

if num2 != 0

    print num1 / num2

else

    print "Cannot divide by 0"

What information is automatically generated from the company identifier and product name?

A.
project name
B.
class prefix
C.
bundle identifier
D.
organization name

Answers

I think it’s project name, but I’m not 100% positive

Programming Exercise 11 in Chapter 8 explains how to add large integers using arrays. However, in that exercise, the program could add only integers of, at most, 20 digits. This chapter explains how to work with dynamic integers. Design a class named largeIntegers such that an object of this class can store an integer of any number of digits. Add operations to add, subtract, multiply, and compare integers stored in two objects. Also add constructors to properly initialize objects and functions to set, retrieve, and print the values of objects. Write a program to test your class.

Answers

Answer:

Explanation:

The following is written in Java. It creates a class called largeIntegers that creates objects of the built-in BigInteger class to handle operations on very large numbers. The class contains the add, subtract, multiply, compare, toString methods as well as the getter and setter method for the BigInteger. A test class has been provided and the output can be seen in the attached picture below where two numbers are created and added together. Due to technical difficulties, I have added the code as a txt file below.

Which function below will allow you to change to a different screen?

changeScreen( )

changePage( )

setPage( )

setScreen( )

Answers

Answer:

Option D

Explanation:

The Set Screen command is used to change the screen to any screen you wish. Screen is notified by its ID

The set screen command is used for some user -event and in such cases set screen is added by click event handler.  

The ID to which the screen is to be changed is selected.

Hence, option D is correct

Write a program that takes as input: - the current hour - the number of hours to add and outputs the new hour. For example, if the inputs are 2 (as the current hour) and 51 (as the number of hours to add), your program should output the answer from part (a) of this problem. Note that your program should always output an integer between 1 and 12. We will get you started with this program with the two lines that gather the input from the user. You'll need to write the rest.

Answers

Answer:

The program in Python is as follows:

cTime = int(input("Current Hour: "))

while(cTime <1 ):

   cTime = int(input("Current Hour: "))

aTime = int(input("Additional Hours: "))

while(aTime <0):

   aTime = int(input("Current Hour: "))

tTime = cTime + aTime

tTime%=12

print("New:",tTime,"hours")

Explanation:

This gets input for current time

cTime = int(input("Current Hour: "))

The following ensures that the user enters a time greater than 0

while(cTime <1 ):

   cTime = int(input("Current Hour: "))

This gets input for additional time

aTime = int(input("Additional Hours: "))

The following ensures that the user enters a positive time

while(aTime <0):

   aTime = int(input("Current Hour: "))

This calculate the new hours

tTime = cTime + aTime

This gets the hour equivalent between 1 and 12

tTime%=12

This prints the new hour

print("New:",tTime,"hours")

Select three advantages of using Cascading Style Sheets.

A) They make it possible to give specific tags specific rules.

B) They make it simple to design web pages if you do not know HTML.

C) They make it easy to edit multiple parts of the document at once.

D) They provide information about changes made to websites.

E) They cut down on the amount of code needed.

Answers

Answer:

They make it easy to edit multiple parts of the document at once., They cut down on the amount of code needed., They make it possible to give specific tags specific rules.

this sensor is used for burglar alarms
A. temperature
b. humidity
c. movement
d. PH​

Answers

Answer:

C

Explanation:

Have a great summer :)

In cell L2, enter a formula using the IF and AND functions, as well as structured references to determine if Adam Moriarty can be a bunk leader. a. The logical test in the IF function should determine if the staff member’s Service Years is greater than 4 AND the staff member’s Leadership Training status is "Yes". Remember to use a structured reference to the Service Years and the Leadership Training columns. b. The function should return the text Yes if a staff member meets both of those criteria. c. The function should return the text No if a staff member meets none or only one of those criteria.

Answers

Answer:

Enter the following formula in L2

=IF(AND([Service Year]>4,[Leadership Training]="Yes"),"Yes","No")

Explanation:

Analyzing the formula:

[tex]= \to[/tex] Begin the formula with an equal to sign

IF [tex]\to[/tex] This indicates that the formula uses an "IF" function

AND [tex]\to[/tex] This indicates that there are at least 2 conditions in the function; all of which must be true for the function to return true.

The conditions in the formula are:

[Service Year]>4;  and [Leadership Training]="Yes"

Notice that the column names (service year and leadership training) are called and not the cell names (e.g. K2); this is what is referred to as structured referencing.

Having said that, both conditions must be true for the function to return true (because we use the AND clause to join both functions)

The possible results in the formula are:

"Yes","No"

If both conditions are true, then the value of L2 will be "Yes"

If otherwise, then the value of L2 will be "No"

Write 4 types of viruses , explain them briefly.

Answers

I can help with two.

Web Scripting Virus, A sneaky virus that targets popular websites. What this virus does is overwrite code on a website and insert links that can install malicious software on your device. Web scripting viruses can steal your cookies and use the information to post on your behalf on the infected website.

FILE INFECTOR, targeting executable files (.exe), file infector viruses slow down programs and damage system files when a user runs them.

write a program to find area of rectangle​

Answers

Answer:

program by INPUT statement

Explanation:

CLS

REM to find the area of rectangle

INPUT L

INPUT B

LET AOR = L * B

LET " AOR = "; AOR

END                

                                                                                                     Press F5

Area of Rectangle - Python

Assuming that the question needs Python program to find the area of a rectangle. Since we are not given in the Question only by which programming language we write the required program, therefore here we use python program.

Before we write the required program for this question, let's first take some hint for better understanding and know that what we need to do in this program.

Let us take a look at what we need to do in this program.

We know that, the area of rectangle is defined as the product of its length and breadth respectively.

→ Area of rectangle = length * breadth

First we would take user input to accept the values of length and breadth of the rectangle from the user.

We then calculate the area of the rectangle using the required formula of it.

The Program

# Program to find the area of rectangle

# Take user input to accept length

length = float(input("Enter the measure of length: "))

# Take input to accept breadth

breadth = float(input("Enter the measure of breadth: "))

# Calculate the area of rectangle using the formula

area = length * breadth

# Assign the result

print("The area of rectangle is", area, "square units.")

[Hashtag (#) is only a single line comment in Python, It's not printed in the program, I have used them here for understanding the program step-by-step. If you want then you can remove those comments from the program.]

The Output

Enter the measure of length: 5

Enter the measure of breadth: 10

The area of rectangle is 50.0 square units.

how much video does a 10gb video hold i will give brainliest for first correct answer

Answers

Answer:

2,000 songs

Explanation:

In what way, if any, are scripting languages different from markup languages?

A) Markup languages tell the computer what content to present, while scripting languages make things run faster.

B) Markup languages tell a single computer what to do, while scripting languages help computers communicate with each other.

C) Scripting languages tell the computer what content to present, while markup languages make things run faster.

D) Scripting languages tell a single computer what to do, while markup languages help computers communicate with each other.

Answers

Answer:

Markup languages tell the computer what content to present, while scripting languages make things run faster. A

Answer:

It's most likely A in edge.

Explanation:

My father works in IT, and I am taking a Fundamentals of Dig. Media class. If I remember correctly, the lesson for markup languages said that markup is used for online documents, like Wiki for example. Thus, I believe it is A.

- Items in a ______ are enclosed in square brackets​

Answers

Answer:

list.

Explanation:

Items in a list are enclosed in square brackets​

In the digital media process, what is one of the differences between the plan/design stage and the create/develop stage?

A) Scripts, storyboards, and flowcharts are created in the plan/design stage, and utilized in the create/develop stage.

B) Scripts, storyboards, and flowcharts are involved with the plan/design stage, but not with the create/develop stage.

C) Scripts, storyboards, and flowcharts are involved with the create/develop stage, but not with the plan/design stage.

D) Scripts, storyboards, and flowcharts are created in the create/develop stage, and utilized in the plan/design stage.

Answers

Answer:

Scripts, storyboards, and flowcharts are created in the plan/design stage, and utilized in the create/develop stage. A

Answer:

A.) Scripts, storyboards, and flowcharts are created in the plan/design stage, but utilized in the create/develop stage.

An example of computer hardware is ? A. keyboard B. app C. web browser D. operating system

Answers

Answer:

D. Operating system

Explanation:

A keyboard is a secondary item like a mouse and is not apart of computer hardware and app is also not a computer hardware because its coding not hardware. Web Browser is a Internet thing not hardware.

Answer:

option A

Explanation:

Computer hardware is the physical parts or components of a computer, such as the monitor, mouse, keyboard.

Other Questions
A 45000 watt crane operating at full power lifts a 2100 kg object vertically for 17.4 seconds. How high has the crane lifted the object? Mark is building a sandbox inside a play area. How much play area remains outside of the sandbox? what is the word capacity mean Claire's music playlist contains songs she bought and songs her mother bought. The ratio of her songs to her mother's songs is 3:2. Which table shows this ratio and two equivalent ratios? Can please send answers with step What does it mean when work is positive?O Velocity is greater than kinetic energyO Kinetic energy is greater than velocityThe environment did work on an object.O An object did work on the environment. Hello, can someone help me pls ????? Give an example that illustrates the importance of chirality in a named biological molecule. What are the coordinates of Point P? Oscar charges $25 for the first hour of tutoring and $15 for each additional hour of fraction of an hour counting as a whole hour. the rates that Latoya charges for x hours of tutoring are modeled with with the function shown. Choose.. will charge (5,10,15,20) more to tutor for 5.5 hours nhit khng i, di p sut 10^4 Pa l, mt lng kh c th tch 10l. Tnh th tch lng kh di p sut 5.10^4 Pa hi guys, which one do u think is correct: It then eats its own eggshell before it starts eating and growing. orIt then eats its own eggshell before to start eating and growing. orIt then eats its own eggshell before starting to eat and grow. tnx QUESTION 3 (a) Ammonium sulphate, (NH),50, is a soluble salt and it is used in agriculture as fertiliser. 5 g of ammonium sulphate is dissolved in 1 litre of water to produce ammonium sulphate solution. (Relative atomie mass: H = 1, N = 14,0 = 16, ) Calculate (1) the number of inoles of dissolved ammonium sulphate(ii) the number of molecules present in the ammonium sulphate solution.(iii) the number of positive ions present in the ammonium sulphate solution (iv) the number of negative ions present in the ammonium sulphate solution (v) the total number of ions present in the ammonium sulphate solution please give answer I will mark as brainliest if you give the right answer For each of the following scenarios, indicate if it would necessarily lead to crowding out or not, and explain your reasoning. Assume a closed economy.Assume that fiscal receipts equal outlays when the Federal Reserve increases the discount rate. Find the value of x. Helpppppppppppppp meeeeeeeee Please help me!!!!If you get the answer right, you will get brainliest, 5 stars, and a thanks. Preview the following writing prompt. Then answer the question that follows.Prompt: doctors are learning more about the series ended injuries suffered by people who play certain Sports. What changes should the sports program in high school next to protect students from head injuries?Piece of writing prompt, which research question would best help you narrow your topic for a five paragraph essay (300 words) ?A. When did Doctor's first discover the head injuries occurred in contact Sports?B. Is it easy to recover from a back injury than it is to recover from a head injury?C. What is just absurd coaches take during games and practices to keep students safe?D. How can schools encourage more students to participate in school sports?E. Why doesn't the human skull provide enough protection to avoid head injuries from school? A railway station measures 200 meters in length. How long is it? A. 10,000 cm B. 12,000 cm C. 15,000 cm D. 20,000 cm The group Young Italy advocated for