2023 1 Create class Account with id balance Person and dateCreated Use a static class variable to store | Assignment Collections

Computer Science 2023 Intro To Java Programming

2023 1 Create class Account with id balance Person and dateCreated Use a static class variable to store | Assignment Collections

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

 

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational