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

  Write an application that creates a one-dimensional array

Write an application that creates and returns a one-dimensional array containing all the elements in two-dimensional array. Store values in a row major format.

  Write a user-defined function that accepts these four points

Write a user-defined function that accepts these four points as input and computes the coefficients a, b, c, and d.

  What is the difference between postindexing and preindexing

Why do bit field instructions number bits from the most significant bit of the effective address of the bit field?

  How much of a disadvantage computer scientists have

Philosophy is deeply rooted in the History of Computers starting with Leibniz and his concept of binary. Leibniz's dream imagines Armchair Philosopher to be left alone with his thoughts while machines take care of all the other menial tasks requir..

  Write a program that reads a word and prints all substrings

Write a program that reads a word and prints all substrings, sorted by length. Write a program that prints all powers of 2 from 20 up to 220.

  What are open markets and closed borders

What are "open markets and closed borders" as it pertains to smuggling, free trade, and border enforcement?

  Write a program that request a student lastname

Write a program that request a student LastName and Social Security Number.

  Write a mips assembly program

Write a MIPS assembly program that will make use of the function count above as follows: Let's assume you are asked to code a car-finding system for a local parking lot: You are provided with the location of all the cars in the parking lot. The infor..

  Questionwrite down an assembly language program that solves

questionwrite down an assembly language program that solves following problem. the albatross company has four

  Find out largest, smallest, and median values of array c

Your program must ask for a number and print "YES" if the number is in array a, otherwise print "not found"

  Illustrates the significant milestones of the internet

This assignment provides you with an opportunity to build a timeline that illustrates the significant milestones of the Internet.

  Describe some illustrations of functional versus

discuss some examples of functional versus nonfunctional requirements.what would exemplify these requirements in a

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