subject

You will write a program that will provide the X and Y coordinates based off of inputs entered into the console. The program will calculate the coordinate based on the directional commands provided: u-up, d-down, l-left, and r-right. lowercase and uppercase letters will be accepted. Numbers will also be accepted Numbers will also be accepted. Any other letters or characters should be ignored. Up and Down commands will change the y-values and Left and Right commands will change the x-values. A number preceding a letter will represent the number of commands for that direction.
Be sure to javadoc your code where applicable and provide meaningful comments.
A sample output is given below.
Enter your coordinate string command: ur
(1,1)
Enter your coordinate string command: urld
(0,0)
Enter your coordinate string command: uUr
(1,2)
Enter your coordinate string command: 2dd2d54r
(54,-5)
Enter your coordinate string command: 2?%gD
(0,-1)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
question
Computers and Technology, 24.06.2019 13:20
3. ranga ramasesh is the operations manager for a firm that is trying to decide which one of four countries it should research for possible outsourcing providers. the first step is to select a country based on cultural risk factors, which are critical to eventual business success with the provider. ranga has reviewed outsourcing provider directories and found that the four countries in the table that follows have an ample number of providers from which they can choose. to aid in the country selection step, he has enlisted the aid of a cultural expert, john wang, who has provided ratings of the various criteria in the table. the resulting ratings are on a 1 to 10 scale, where 1 is a low risk and 10 is a high risk. john has also determined six criteria weightins: trust, with a weight of 0.3; quality, with 0.2; religious, with 0.1; individualism, with 0.2; time, with 0.1; and uncertainity, with 0.1. using the factor-rating method, which country should ranga select? why? (2 points)
Answers: 3
You know the right answer?
You will write a program that will provide the X and Y coordinates based off of inputs entered into...
Questions
question
Mathematics, 02.03.2021 17:50
question
Health, 02.03.2021 17:50
Questions on the website: 13722367