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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

ISBN: 0805302441, 978-0805302448

More Books

Students also viewed these Databases questions