Create an object sending the array to the constructor

Assignment Help Computer Engineering
Reference no: EM132200816

Write a JAVA program that asks the user to store 10 numbers in an array. You should then print the array in the order entered and then print in reverse order.

Consideration: Instead of putting all the information in the main, you should use a class called Printlt. The Printlt class should have an instance variable that is an array to hold the numbers.

This instance variable should be initialized in the constructor. You should have a method that will print the array in the order entered.

You will also need a method that will print the array in reverse order. You will need a tester class that asks the user to enter 10 numbers and puts them in an array.

Create an object sending the array to the constructor. Call each of the print methods.

Reference no: EM132200816

Questions Cloud

Calculate the marginal products : Calculate the marginal products MPL and MPK. Calculate M RTSL,K and determine if this is diminishing as good L increases.
Display the total tax due to the user : Write a java program that computes the income tax for an individual. Display the total tax due to the user.
How should output be allocated between the two factories : A firm has two factories to produce widgets. Each factory has production function f(ki, li) = (ki*li)1/2 , i= 1, 2. The factories differ, however.
Explain using the definition of an onto function : 1. Suppose f:Z? Z, with defined by f(x) = 3x2 + 3. Note that both the domain and the target are equal to Z, the set of all integers.
Create an object sending the array to the constructor : Write a JAVA program that asks the user to store 10 numbers in an array. You should then print the array in the order entered and then print in reverse order.
Find interest rate of present worth of the two payment plans : For winners of the California SuperLotto Plus, the choice is between a lump sum and annual payments that increase from 2.5% for the first year to 2.7%.
Assume there is only one mode : Given an array of names (stored as pointers to strings), use c++ program to print out the "mode", i.e., the name that appears the most times in the array
Write a java program to find odd indexes of an array : Write a Java program to find odd indexes of an array. Create a method to fill an array with 5 random elements between 1 and 50.
Show data changing over time and why : Explain what types of graphs would be appropriate to show data changing over time an

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  What indicates the big-o value

What indicates the Big-O value of a given method (or algorithm) - What represent the best-case, average-case and worst-case performance of an algorithm?

  What are the components to building an effective team

How would you build a CSIRT? What are the components to building an effective team? Note: minimum 300 words not including title and reference page.

  Write a css rule that places a background image halfway

Write a CSS rule that places a background image halfway down the page, tiling it horizontally.

  Describe how you would apply project management techniques

Describe how you would apply the project management techniques that you have learned in this chapter to this situation.

  Implement needham-schroeder symmetric key protocol both

implement needham-schroeder symmetric key protocol both original version and fixed version using python.the term

  Write a program segment that displays the last character

Write a program segment that displays the last character on every line of input. Write a program segment that determines and displays total number of elements.

  Explain introduction to relational database and sql

Explain Introduction to relational database and SQL. Introduction to web programming on ASP.NET framework, Visual Studio, and HTML.

  What is the agglomerative clustering tree for given points

What is the agglomerative clustering tree for these points under Single-link clustering, Average-link clustering and Complete-link/furthest-neighbor clustering.

  What can we add to the package table so we know

What can we add to the Package table so we know which PostOffice it's in?

  Find the rest are in the kitchen for the chef''s staff.

throughout Phase One of this project, your job is to set up the Windows Server 2003 and train two of the management staff on its operation.

  Write a program that hints the user to input a different num

Write a program that hints the user to input a different number each time repetitively (both integer and float numbers are acceptable).

  What is your understanding of the term computer

What is your understanding of the term "computer"? Why do we call it computer? Is that what it does? The response must be typed.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd