Create class account with id balance person and datecreated

Assignment Help JAVA Programming
Reference no: EM131391116

Intro to Java programming

1. Create class Account with id, balance, Person, and dateCreated. Use a static class variable to store the annualInterestRate for all account holders. Provide constructors, setter and getter for the Account class.

Provide method calculateMonthlyInterest to calculate the monthly interest by multiplying the balance by annualInterestRate divided by 12; this interest should be added to balance. Provide a static method modifyInterestRate that sets the anualInterestRate to a new value. Also provide method deposit and withdraw. Provide method toString to print all the information about the account.

Write a driver program to test class Account. Instantiate two Account objects, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively. Set annualInterestRate to 4%.

Display a menu with the following:

System.out.println(1...Check balance);

System.out.println(2...Withdraw);

System.out.println(3...Deposit);
System.out.println(4...Change Annual Interest Rate);
System.out.println(5...Calculate Monthly Interest);
System.out.println(6...Display Account Info);
System.out.println(7...Exit);

Ask the user to select an option and perform that task. Continue display this menu until user type 7 to exit.

2) (Pig Latin) Write an application that encodes English-language phrases into pig Latin. Pig Latin is a form of coded language. There are many different ways to form pig Latin phrases. For simplicity, use the following algorithm:

To form a pig Latin phrase from an English-language phrase, tokenize the phrase into words with String method split. To translate each English word into a pig Latin word, place the first letter of the English word at the end of the word and add the letters "ay.". Thus, the word "jump" becomes "umpjay." The word "the" becomes "hetay." And the word "computer" becomes "omputercay." Blanks between works remain as blanks.

Assume the following:

The English phrase consists of words separated by blanks, there are no punctuation marks and all words have two or more letters. Method printLatinWord should display each word. Each token is passed to method printLatinWord to print the pig Latin word. Enable the user to input the sentence.

3) (Display a Sentence with its Words revered) Write an application that inputs a line of text, tokenizes the line with string method split and outputs the tokens in reverse order. Use space characters as delimiters.
Input:This is a test
Output: sihT si a tset.

Reference no: EM131391116

Questions Cloud

Compare and contrast mitosis and meiosis : Question 1. Compare and contrast mitosis and meiosis (include at least 3 comparisons and 3 differences).
Discuss whether private industry now has a responsibility : Clearly discuss whether private industry now has a responsibility to protect national security through implementing good cybersecurity controls imposed by government regulation.
Explain the relevant law relating to the case : BBAL401 Company law Group Assignment and Presentation. Written Assignment: Identify the facts of the case. Explain the relevant law relating to the case. Discuss the legal arguments raised by the parties in case
What is its grid location and part number : Its low-order address is multiplexed like the 68HC11 in Problem 17-30. What IC and control signal are used to demultiplex the address/data bus (AD0-AD7) into the low-order address bus (A0-A7)?
Create class account with id balance person and datecreated : Create class Account with id, balance, Person, and dateCreated. Use a static class variable to store the annualInterestRate for all account holders. Provide constructors, setter and getter for the Account class.
Directly causes what form of heart disease : If the muscle tissues of the heart are deprived of oxygen too long, the cells begin to die. This directly causes what form of heart disease?
Define your companys target market : For most non-alcoholic beverages, marketing (as opposed to the actual product itself) is key to success. Cola drinks, for example, are fairly undifferentiated, as are many energy drinks, juices, bottled water, and the like. Companies producing the..
Why can not a binary search be applied on the given list : Why can't a binary search be applied on the list below? In separate chaining, the keys that map to the same hash value are stored in a _____. When designing a hash function, we try to _____ the number of collisions.
Description of data collection and analysis methods : HI6007 Assessment Three - FINAL Research Proposal. Description of the research process. Strengthen and improve initial proposal. Description of data collection and analysis methods. Strengthen and improve initial proposal. Description of expected res..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Cognitive-based approaches to understanding motivation

Compare and contrast the need-based and cognitive-based approaches to understanding motivation?

  Question superclass and provide a different implementa

Add a method addText to the Question superclass and provide a different implementa- tion of ChoiceQuestion that calls addText rather than storing an array list of choices.

  Write down a java program that implements a stack of

write a java program which implements a stack of integers. an integer should only be pushed into the stack if it is

  Write a program to play the rock-paper-scissors game

Game Program Write a program to play the rock-paper-scissors game. Two users take turns entering R, P, or S. The program then announces the winner, based on the rule that paper covers rock, rock breaks scissors, scissors cut paper.

  Implement the client and server components

The basic requirements of this assignment are to implement the client and server components as discussed above. The basic protocol of the system is described below: The operations of the client are: SEND_SERVER_MESG: send a basic text message to th..

  Calculates the total annual compensation of a salesperson

Write a Java application using NetBeans Integrated Development Environment IDE that calculates the total annual compensation of a salesperson.

  Design a memory management scheme for a 48 bit architecture

Design a memory management scheme for a 48 bit architecture, using various types of paging and/or segmentation described in this week's readings

  Write java program to enter number of marks

Write a java program called AverageMark.java. This program should allow the user to enter any number of marks and then display the minimum, maximum & average mark.

  Which statement is true about a non-static inner class

Which statement is true about a non-static inner class? Clicking the closing button on the upper-right corner of a frame generates a(n) _____ event.

  Develop a queue class

Print-out of the text file that contains your restaurant information and develop a Queue class. Hint: Check out the sample Queue java source files included with this assignment. Declare a class Party to hold one party.

  Sentence patterns and verb formulas

Provide the sentence pattern. Write out the sentence pattern - then write out the tense of the verb and provide the formula.

  Sudoku game - java program

You will be designing a simple Sudoku Game.  The rules of Sudoku can be found on web. The rules are explained:

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