Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part B: Java Programming Problems. Choose 2 of the following problems. Each solution is worth 20 marks. You are expected to use comments in your
Part B: Java Programming Problems. Choose 2 of the following problems. Each solution is worth 20 marks. You are expected to use comments in your code. Marks will be deducted for incorrect brackets, syntax etc, so be careful as possible (40 marks). 1. Create a new program that: Reads a sentence from a file; Writes the sentence to another file in reverse; and Prints a message to the user in a JOptionPane message box when finished. 2. Write a program that: Allows the user to enter ten numbers from the keyboard; Removes any duplicate numbers (numbers that are the same); and Prints top 5 numbers from highest to lowest. 3. Create a new program that: Counts the number of lines and the number of words in a text file; and Prints the number of lines and the number of words to the terminal
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started