Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago

Question

d. How were you expected to contribute to family life?

Answered: 1 week ago