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 03:00
Which action describes an aspect of technological design?
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies.pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
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
English, 03.03.2021 23:20
question
Computers and Technology, 03.03.2021 23:20
question
Geography, 03.03.2021 23:20
question
Mathematics, 03.03.2021 23:20
Questions on the website: 13722363