Question: Basic JAVA programming language needs to be used. Both pseudocode and java code is needed. Thank You. Question 1 (35 marks) Your task is to

Basic JAVA programming language needs to be used. Both pseudocode and java code is needed. Thank You.
Question 1 (35 marks) Your task is to design a Number converter in Pseudocode. The functionality should be as follows: Prompt the user with the options to select either Binary, Decimal, Octal or Hexadecimal. Prompt the user to enter in a "numeric-string". (Alphanumeric in the case of Hex) If the user selects either Binary or Decimal, you are required to check if the "numeric-string" is a Real number. - If it is Real, you are just required to convert from Decimal to Binary or convert from Binary to Decimal For all other cases, you will need to then prompt the user what type they would like to output to either Binary, Decimal, Octal or Hexadecimal. Convert the "numeric-string" to the type that the user selected, then output it. Use your discretion as to how you write your menu, we want to see your thought process. You must use the methods shown in the Lecture slides. You may not use any in-built functionality that does this for you. Note: You should work with String's for the most part, then when you want to do the conversion, parse it (see the example code below). Don't do direct conversion for octal/hexadecimal, do the Binary conversion first. Remember Modularity! Question 2 (25 marks) Convert the algorithm that you write for Question 1 into a complete Java program. Note 1: If you have not attempted Question 1, you will not receive any marks for this. Note 2: Remember the common mistakes from the Test. Note 3: Marks will be reduced for the Java not matching the pseudo-code, poor for- matting, not following the Curtin Coding Standard and incorrect Java syntax. Partial marks will be awarded for an incomplete translation. Note 4: The following snippets of java code may be useful to you: 1/ Splitting a number in groups of 5 (from the right) int grouping = 5; String number = "01234567859"; for(int i = number. length(); i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
