Find Jobs
Hire Freelancers

java short exercise programs

$30-50 USD

In Progress
Posted over 12 years ago

$30-50 USD

Paid on delivery
We are looking for a programmers who knows java to write three short java [login to view URL] programs titles are [login to view URL] Dimensional array Write a program that: Queries the user to enter two integer numbers; one representing the number of rows in a two dimensional array and the other the number of columns. Dynamically create the two dimensional array Iterate through this array and: if the row index = 0, place a '0' in the element if the column index = 0, place an 'a' in the element if both the row index and column index are even place an 'x' in the element if both the row index and column index are odd place a 'y' in the element place a 'b' in all other elements Iterate through the array and count and present to the user the number of each value ('0','a','b','x','y') present in the array. Iterate through the array and display its contents in a logical manner on the standard output device [login to view URL] Class Homework create a Utility class containing three methods that can be called without instantiation. The three classes are: String queryUserForString(String title, String message) A method that displays the message message in a JOptionPane dialog having the title title and returns the string entered by the user. long queryUserForInteger(String title, String message) A method that displays the message message in a JOptionPane dialog having the title title and returns the integer value entered by the user. double queryUserForDouble(String title, String message) A method that displays the message message in a JOptionPane dialog having the title title and returns the floating point value entered by the user. 3. Accumulator Object Create the class definition for this accumulator object. Make sure you: have a constructor that initializes the accumulator to 0 an appropriate mutator method for each instance variable an appropriate accessor method for each instance variable a method called with the prototype void add(int value) that adds the value value to the accumulator only if value is > 0 These are very short programs. We need this in 24hrs to review, and test. Your methods in the programs must be short and straight to the [login to view URL] codes must also be aligned correctly downward for we could read your code. Which means your special characters like the equal(=) sign must all align downward to see your code clearly. your code will be tested to make sure all is working correctly. Happy bidding.
Project ID: 1325402

About the project

5 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
brooklyn, United States
5.0
2
Payment method verified
Member since Dec 5, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.