You are to write a program name match. Java that reads input from a java program
ID: 2259417 • Letter: Y
Question
You are to write a program name match. Java that reads input from a java program file, check to see if the comments (//, /*....*/), parenthesis 0, square brackets [] if any, and curly braces {} are correctly used in the program If there is any error, print out a message saying what the error is and which line that error occurred. The program will prompt the user for the input file name from which it must read the input. HiNT: The program should read the characters one at a time. If it encounters a/or a [or a (or a {, it should push it in their respective stack. Then if it encounters a closing character, it must go to the respective stack, pop and match If there is no match for either an opening or closing, then print a message saying that there is no OPENING OR CLOSING corresponding character and then print the line where the closing character occurred. More would be explained in class. Note that in the case of the/character, because this is also used for division, you could just indicate a warning message if only one of the/exist. However, if the token immediately the/is a digit. You don't have to issue a warning. If it is not, then issue a warning message indicating the possibility of a potential error and the line number.Explanation / Answer
constant and zero--> angular acceleration(scalar), angular acceleration(vector)
costant and non zero--> linier spees(scalar), radial acceleration(scalar), angular speed(scalar), angular speed(vector),
non-constant--> linier spees(vector), radial acceleration(vector),
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.