Program that will ask the user for total debt of customer

Assignment Help JAVA Programming
Reference no: EM13166923

Write a Java program that will ask the user for the (1) name, (2) gender, and (3) total debt of customers. For this program you will need a class named Customer where name should be a String, gender a String, and total debt a double. You also will need to create at least a constructor method.

 

Other requirements:

 

  1. You will need to create an array of Customer objects with a maximum size of 50 elements.
  2. This program should have a method to input each Customer object.
  3. You will need another method for sorting the array of Customer [sorted by total debt (ascending order)].
  4. Create a method that will display the output of the program.
  5. main method that calls the method for all input, a sort method, and a method that reports the sorted list.

 

 

Reference no: EM13166923

Questions Cloud

Need a program that has the user enter a string : Need a program that has the user enter a string. The program will test to see if its a exact palindrome like "civic" or "level". then it should test if its an inexact palindrome like "a nut for a jar of tuna".
Sends data to best_songs.php on a server : Create a form that sends data to best_songs.php on a server. The form should have a text box for your name and a collection of at least four checkboxes representing kinds of songs (real or imaginary) and a radio button to indicate whether the selecte..
The plot thickens : Consider the following correspondence between letters/symbols and numbers: A=1, B=2, C=3, D=4, E=5, F=6, G=7, H=8, I=9, J=10, K=11, L=12, M=13, N=14, O=15, P=16, Q=17, R=18, S=19, T=20, U=21, V=22, W=23, X=24, Y=25, Z=26, a period is equal to 27, a c..
Describe the windows kernel : Describe the Windows kernel, including its two main components.
Program that will ask the user for total debt of customer : Write a Java program that will ask the user for the (1) name, (2) gender, and (3) total debt of customers.
Let t be the degree of a btree : Let t be the degree of a BTree. Suppose the size of each object, including the key, stored in the tree is 90 bytes. Also, suppose the size of a BTreeNode pointer is 4 bytes.
Implement the readlog function : Implement the readLog function below, which is to (1) read the file, (2) populate a vector for each column, and (3) return the number of lines found.
Circuit that has 5 slide switches as inputs : Design and code a circuit that has 5 slide switches as inputs and a push-button. When the button is pressed, the circuit will drive a stepper motor n-steps in the clockwise direction
Reverses all the element of an array : Write a function that reverses all the element of an array.that is,the first element is exchanged with the last element; the second element is exchange with the second to the last element,and so on

Reviews

Write a Review

JAVA Programming Questions & Answers

  Accepts a string as its parameter and returns an integer

Write a method in java named secondHalfLetters that accepts a string as its parameter and returns an integer representing how many of letters in the string come from the second half of the alphabet

  Develop a program that will handle a golfer and his scores

develop a program that will handle a Golfer and his scores. The program will be comprised of two classes: a Golfer class that will manage all the golfer's scores and a Score class.This is a class designed to represent a golfer including his name, hom..

  Write a program called word guessing game.

Write a program called Word Guessing Game. Open the file FourLetterWords.txt and write the contents into an array of Strings (the file has 87 words in it).

  Java application that asks a user to enter two integers

Write a Java application that asks a user to enter two integers (A and B) and then display the results of A/B. Catch any division by zero errors and prompt the user to reenter the value of B. Be sure your code compiles and runs as expected. Name your..

  Pass in the number of gallons on board

public float usefulLoad() // this is the grossWeight - emptyWeight public float usefulLoadWithFuel( in gallons ) // this is the useful load - gallons x 6. The programmer user will pass in the number of gallons on board.

  Program that allows a user to input coordinates

In Java make a program that allows a user to input coordinates as to make a Hexagon via an array, and my professor has set the standards of: Write a class Polygon which draws a hexagon for a set of numbers given by the user.

  Create three classes for a customer

a travel manager and have a job of buying a travel package for a customer. You must create three classes for this programming challenge: Customer, Ticket, and TravelManagerDemo.

  Write java program to print price of table-furniture company

Write down the Java program for furniture company. Ask user to select P for Pine, O for Oak or M for Mahogany. Illustrate the price of table produced with chosen wood.

  Ask the user how many times you want to run

c the algorithm. 2. Then choose a word at random from the array of Strings as the target (Use the integer random number generator)

  Write program in java for total amount of customer-s order

Write down program in Java which would ask for clerk to enter total amount of customer's order. Program will then compute seven percent (7%) sales tax.

  The comparedto method

the comparedTo method. This is the course class I do not understand how to do the compared to method. I need to order the course first by department then by the course number.

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

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