Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

If you do not already have the Java development kit (JDK) installed, download and install it (Oracle Corporation, 2013b). You may use an integrated development

If you do not already have the Java development kit (JDK) installed, download and install it (Oracle Corporation, 2013b). You may use an integrated development environment (IDE) of your choice if you wish.

Solve the following programming problems in Java. Submit your source files including several test cases to show your solutions work as expected.

Write a program that reverses the order of characters in a string without using API functions. Examples: Enter a string: Northcentral University The reverse of Northcentral University is ytisrevinU lartnechtroN. Enter a string: racecar The reverse of racecar is racecar.

Write a program that reads a list of integers (separated by whitespace and terminated by EOF) and outputs a report showing how many of each number was in the list. The sequencing of the numbers in the output is not important. Example: Enter a list of numbers: 1 2 3 2 3 2 3 4 1 89 1024 You entered 11 numbers. Here is a report on the duplicates: 1: typed 2 times 2: typed 3 times 3: typed 3 times 4: typed 1 time 89: typed 1 time 1024: typed 1 time

Write a program that prompts for the X, Y integer coordinates of two rectangles in the 2D plane and determines if the rectangles overlap. Examples: Enter the X, Y coordinates for one corner of rectangle 1: 0, 0 Enter the X, Y coordinates for another corner of rectangle 1: 5, 15 Enter the X, Y coordinates for one corner of rectangle 2: 1, 1 Enter the X, Y coordinates for another corner of rectangle 2: 6, 12 The rectangles overlap in the 2D plane. Enter the X, Y coordinates for one corner of rectangle 1: 0, 0 Enter the X, Y coordinates for another corner of rectangle 1: 5, 15 Enter the X, Y coordinates for one corner of rectangle 2: 65, 30 Enter the X, Y coordinates for another corner of rectangle 2: 100, 56 The rectangles do not overlap in the 2D plane.

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions