Loading
Home › Computer Science Help › Simple program in Java
Status: Completed

Simple program in Java

Date Posted: 09/10/2020
Category: Computer Science
Due Date: 09/10/2020
Instruction
Program Main Menu The program should start with the page displaying a message that prompt()s the user to enter either 1, 2, 3, or “Exit”. The following steps dictate what will happen when the user enters a number in the prompt() described above Program 1 – (User enters 1 in the Main Menu to get here) The program should prompt() the user to enter a String. If the user doesn’t enter anything, the program should write “You need to enter something” into the console window and should prompt() them again to enter a String. If the user enters a String, the program should return to “Program – Main Menu”. Program 2 – (User enters 2 in the Main Menu to get here) If the user has already entered a String in step “Program 1”, the program should convert the String into “ROBOT Language”, write “String converted” to the console window, and return to “Program – Main Menu”. If the user hasn’t already entered a String in step “Program 1”, the program should write “You need to first enter a String” to the console window and return to “Program – Main Menu”. Program 3 – (User enters 3 in the Main Menu to get here) If a String has already been converted in step “Program 2”, the “ROBOT Language” version of the String should be written to the console window and the program should clear all Strings and return to “Program – Main Menu”. If a String hasn’t already been converted in step “Program 2”, the program should write “You need to first convert your String” to the console window and return to “Program – Main Menu”. Program Exit – (User enters “Exit” in the Main Menu to get here) If the user enters “Exit” in the Main Menu, the program should write, “Thanks for using the ROBOT Language Converter!” to the console window and stop executing. ROBOT Language Spec ROBOT Language is a pattern-based language as follows: If a word is five or more letters long, add “-bork” to the end of the word If a word is less than five letters long, add “-boink” to the end of the word For example: “The quick brown fox” becomes “The-boink quick-bork brown-bork fox-boink"
Attached
No File uploaded yet.
Tutor Uploads
No File uploaded yet.
Bidders
HavardGraduateWriter 5 years, 11 months ago
Rated 9.42 earned 51369.88 around 1959 assignments.
Hello, I am well conversant with this subject and at a position of delivering the best results on time. Kindly consider my bid and I guarantee you zero disappointments.
$50.00
  • Hello! It's my first time using this so I am not entirely sure on how it works, Homework is due tonight at 11:59. Thank you!
    User_31566 | Oct 09, 2020, 22:05 PM
  • Hi kindly reassign this,my laptophas issues
    HavardGraduateWriter | Oct 09, 2020, 22:10 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
phoniextutor 5 years, 11 months ago
Rated 8.98 earned 50856.21 around 1767 assignments.
Hello my friend, kindly offer me this gracious opportunity to assist you. Pleasure.
$150.00
  • Hello,I just paid another person and they said the could not do it, would you be able to do this?
    User_31566 | Oct 09, 2020, 22:15 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}